summaryrefslogtreecommitdiff
path: root/src/sys/handler/builder.ts
diff options
context:
space:
mode:
authorMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-17 18:23:51 +0400
committerMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-17 18:23:51 +0400
commitb4bc9e35871ffefaddb8803ea02735cd4c465e45 (patch)
tree12758366ea5bd4a1cab323f206a73a356317498e /src/sys/handler/builder.ts
parentb9251019bf2ad92542fde24b5d06059068455a1e (diff)
edit
Diffstat (limited to 'src/sys/handler/builder.ts')
-rw-r--r--src/sys/handler/builder.ts18
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};
- }
-}