aboutsummaryrefslogtreecommitdiff
path: root/src/commands/fun
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/fun')
-rw-r--r--src/commands/fun/eightBall.ts3
-rw-r--r--src/commands/fun/minesweeper.ts11
2 files changed, 8 insertions, 6 deletions
diff --git a/src/commands/fun/eightBall.ts b/src/commands/fun/eightBall.ts
index b4d2fbe..ff06fe5 100644
--- a/src/commands/fun/eightBall.ts
+++ b/src/commands/fun/eightBall.ts
@@ -1,4 +1,5 @@
import { BushCommand, type BushMessage, type BushSlashMessage } from '#lib';
+import { ApplicationCommandOptionType } from 'discord.js';
export default class EightBallCommand extends BushCommand {
public constructor() {
@@ -16,7 +17,7 @@ export default class EightBallCommand extends BushCommand {
match: 'rest',
prompt: 'What question would you like answered?',
retry: '{error} Invalid question.',
- slashType: 'STRING'
+ slashType: ApplicationCommandOptionType.String
}
],
slash: true,
diff --git a/src/commands/fun/minesweeper.ts b/src/commands/fun/minesweeper.ts
index 6878c05..b9737a3 100644
--- a/src/commands/fun/minesweeper.ts
+++ b/src/commands/fun/minesweeper.ts
@@ -1,6 +1,7 @@
import { BushCommand, type ArgType, type BushMessage, type BushSlashMessage } from '#lib';
import { Minesweeper } from '@notenoughupdates/discord.js-minesweeper';
import assert from 'assert';
+import { ApplicationCommandOptionType } from 'discord.js';
assert(Minesweeper);
export default class MinesweeperCommand extends BushCommand {
@@ -20,7 +21,7 @@ export default class MinesweeperCommand extends BushCommand {
retry: '{error} Choose a valid number of rows',
optional: true,
default: 9,
- slashType: 'INTEGER'
+ slashType: ApplicationCommandOptionType.Integer
},
{
id: 'columns',
@@ -30,7 +31,7 @@ export default class MinesweeperCommand extends BushCommand {
retry: '{error} Choose a valid number of columns',
optional: true,
default: 9,
- slashType: 'INTEGER'
+ slashType: ApplicationCommandOptionType.Integer
},
{
id: 'mines',
@@ -40,7 +41,7 @@ export default class MinesweeperCommand extends BushCommand {
retry: '{error} Choose a valid number of mines',
optional: true,
default: 10,
- slashType: 'INTEGER'
+ slashType: ApplicationCommandOptionType.Integer
},
{
id: 'spaces',
@@ -48,7 +49,7 @@ export default class MinesweeperCommand extends BushCommand {
match: 'flag',
flag: '--spaces',
prompt: 'Would you like there to be spaces?',
- slashType: 'BOOLEAN',
+ slashType: ApplicationCommandOptionType.Boolean,
optional: true
},
{
@@ -57,7 +58,7 @@ export default class MinesweeperCommand extends BushCommand {
match: 'flag',
flag: '--revealFirstCell',
prompt: 'Would you like to automatically reveal the first cell?',
- slashType: 'BOOLEAN',
+ slashType: ApplicationCommandOptionType.Boolean,
optional: true
}
],