aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev/__template.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/dev/__template.ts')
-rw-r--r--src/commands/dev/__template.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands/dev/__template.ts b/src/commands/dev/__template.ts
index 6adba08..7ea1784 100644
--- a/src/commands/dev/__template.ts
+++ b/src/commands/dev/__template.ts
@@ -1,4 +1,5 @@
import { BushCommand, type ArgType, type BushMessage, type BushSlashMessage, type OptionalArgType } from '#lib';
+import { ApplicationCommandOptionType } from 'discord.js';
export default class TemplateCommand extends BushCommand {
public constructor() {
@@ -15,7 +16,7 @@ export default class TemplateCommand extends BushCommand {
type: 'string',
prompt: 'What would you like to set your first argument to be?',
retry: '{error} Pick a valid argument.',
- slashType: 'STRING'
+ slashType: ApplicationCommandOptionType.String
},
{
id: 'optional_argument',
@@ -24,7 +25,7 @@ export default class TemplateCommand extends BushCommand {
prompt: 'What would you like to set your second argument to be?',
retry: '{error} Pick a valid argument.',
optional: true,
- slashType: 'STRING'
+ slashType: ApplicationCommandOptionType.String
}
],
slash: false, //set this to true