From 9f705a0e5a90177784d45d20200dbaa46a569e78 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 13 Dec 2021 20:22:20 -0500 Subject: fix more bugs --- src/commands/dev/eval.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/commands/dev') 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 @@ -15,6 +15,15 @@ export default class EvalCommand extends BushCommand { usage: ['eval [--depth #] [--sudo] [--silent] [--delete] [--proto] [--hidden] [--ts]'], 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.', @@ -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, -- cgit