diff options
| author | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-17 18:23:51 +0400 |
|---|---|---|
| committer | MatthieuCoder <matthieu@matthieu-dev.xyz> | 2023-01-17 18:23:51 +0400 |
| commit | b4bc9e35871ffefaddb8803ea02735cd4c465e45 (patch) | |
| tree | 12758366ea5bd4a1cab323f206a73a356317498e /src/sys/handler/builder.ts | |
| parent | b9251019bf2ad92542fde24b5d06059068455a1e (diff) | |
edit
Diffstat (limited to 'src/sys/handler/builder.ts')
| -rw-r--r-- | src/sys/handler/builder.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/sys/handler/builder.ts b/src/sys/handler/builder.ts deleted file mode 100644 index 71732a8..0000000 --- a/src/sys/handler/builder.ts +++ /dev/null @@ -1,18 +0,0 @@ -import {SlashCommandBuilder} from '@discordjs/builders'; -import {type Command, type HandlerFn} from '.'; - -/** - * Simple wrapper around the SlashCommandBuilder provided by Discord.js - */ -export class CommandBuilder extends SlashCommandBuilder { - private _handler: HandlerFn; - - handler(handler: HandlerFn): this { - this._handler = handler; - return this; - } - - build(): Command { - return {json: this.toJSON(), handler: this._handler}; - } -} |
