diff options
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/dev/eval.ts | 12 | ||||
-rw-r--r-- | src/commands/info/help.ts | 2 | ||||
-rw-r--r-- | src/commands/info/links.ts | 2 |
3 files changed, 13 insertions, 3 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 5b30d96..2393a9b 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -16,6 +16,15 @@ export default class EvalCommand extends BushCommand { examples: ['eval message.channel.delete()'], args: [ { + id: 'code', + description: 'The code you would like to evaluate.', + match: 'rest', + prompt: 'What would you like to eval?', + retry: '{error} Invalid code to eval.', + slashType: 'STRING', + only: 'slash' + }, + { id: 'sel_depth', description: 'How deep to inspect the output.', match: 'option', @@ -96,7 +105,8 @@ export default class EvalCommand extends BushCommand { match: 'rest', prompt: 'What would you like to eval?', retry: '{error} Invalid code to eval.', - slashType: 'STRING' + slashType: 'STRING', + only: 'text' } ], slash: true, diff --git a/src/commands/info/help.ts b/src/commands/info/help.ts index 455ad5f..eac48a6 100644 --- a/src/commands/info/help.ts +++ b/src/commands/info/help.ts @@ -1,7 +1,7 @@ import { BushCommand, BushMessage, BushSlashMessage } from '#lib'; import { MessageActionRow, MessageButton, MessageEmbed } from 'discord.js'; -const packageDotJSON = await import('../../../package.json').catch(() => null); +const packageDotJSON = await import('../../../package.json', { assert: { type: 'json' } }).catch(() => null); export default class HelpCommand extends BushCommand { public constructor() { diff --git a/src/commands/info/links.ts b/src/commands/info/links.ts index 3f82245..79f1041 100644 --- a/src/commands/info/links.ts +++ b/src/commands/info/links.ts @@ -1,6 +1,6 @@ import { BushCommand, type BushMessage, type BushSlashMessage } from '#lib'; import { MessageActionRow, MessageButton } from 'discord.js'; -import packageDotJSON from '../../../package.json'; +import packageDotJSON from '../../../package.json' assert { type: 'json' }; export default class LinksCommand extends BushCommand { public constructor() { |