aboutsummaryrefslogtreecommitdiff
path: root/src/commands/utilities/hash.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/utilities/hash.ts')
-rw-r--r--src/commands/utilities/hash.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/commands/utilities/hash.ts b/src/commands/utilities/hash.ts
index 7e892f5..7cc59f3 100644
--- a/src/commands/utilities/hash.ts
+++ b/src/commands/utilities/hash.ts
@@ -1,7 +1,9 @@
import { BushCommand, type BushMessage } from '#lib';
import assert from 'assert';
import crypto from 'crypto';
+import { ApplicationCommandOptionType } from 'discord.js';
import got from 'got';
+
assert(crypto);
assert(got);
@@ -20,7 +22,7 @@ export default class HashCommand extends BushCommand {
type: 'url',
prompt: 'What url would you like to find the hash of?',
retry: '{error} Enter a valid url.',
- slashType: 'STRING'
+ slashType: ApplicationCommandOptionType.String
}
],
clientPermissions: (m) => util.clientSendAndPermCheck(m),