(cb: (ctx: ExecutedCommandContext, target: InteractionUser) => any)
| 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 | /** |
no outgoing calls
no test coverage detected