MCPcopy Create free account
hub / github.com/Botloader/botloader / build

Method build

components/runtime/src/ts/commands.ts:861–877  ·  view source on GitHub ↗
(cb: (ctx: ExecutedCommandContext, target: InteractionUser) => any)

Source from the content-addressed store, hash-verified

859 }
860
861 build(cb: (ctx: ExecutedCommandContext, target: InteractionUser) => any): Command {
862 const built: Command = {
863 name: this.name,
864 kind: "User",
865 description: "",
866 ackMode: this.ackMode,
867 cb: cb as any,
868 ackMessageFlags: this.ackMessageFlags,
869 defaultMemberPermissions: this.defaultMemberPermissions,
870 };
871
872 if (this.onBuilt) {
873 this.onBuilt(built);
874 }
875
876 return built;
877 }
878 }
879
880 /**

Callers 15

commands.tsFile · 0.45
runFunction · 0.45
setup_metricsFunction · 0.45
create_extensionsFunction · 0.45
spawn_vm_threadFunction · 0.45
tags.tsFile · 0.45
welcome.tsFile · 0.45
polls.tsFile · 0.45
leveling.tsFile · 0.45
moderation.tsFile · 0.45
ping.tsFile · 0.45
giveaways.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected