diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-06-28 18:54:18 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-06-28 18:54:18 -0400 |
commit | 6974a5859658b966954a59411a800223b7542df8 (patch) | |
tree | 9f1b4eae137d3253e1530bd30b78ab73b985c9ca /src/commands/dev/eval.ts | |
parent | b581073e0deb4f96510d72001513db64f3cc01ab (diff) | |
download | tanzanite-6974a5859658b966954a59411a800223b7542df8.tar.gz tanzanite-6974a5859658b966954a59411a800223b7542df8.tar.bz2 tanzanite-6974a5859658b966954a59411a800223b7542df8.zip |
fix breaking changes and bump dependencies
Diffstat (limited to 'src/commands/dev/eval.ts')
-rw-r--r-- | src/commands/dev/eval.ts | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 04c5158..7f6a713 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -1,7 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import { exec } from 'child_process'; import { Constants } from 'discord-akairo'; -import { ApplicationCommandOptionType } from 'discord-api-types'; import { CommandInteraction, MessageEmbed, MessageEmbedOptions, Util } from 'discord.js'; import { transpile } from 'typescript'; import { inspect, promisify } from 'util'; @@ -80,43 +79,43 @@ export default class EvalCommand extends BushCommand { { name: 'code', description: 'The code you would like to evaluate.', - type: ApplicationCommandOptionType.STRING, + type: 'STRING', required: true }, { name: 'sel_depth', description: 'How deep to display the output.', - type: ApplicationCommandOptionType.INTEGER, + type: 'INTEGER', required: false }, { name: 'sudo', description: 'Whether or not to override checks.', - type: ApplicationCommandOptionType.BOOLEAN, + type: 'BOOLEAN', required: false }, { name: 'silent', description: 'Whether or not to make the response silent', - type: ApplicationCommandOptionType.BOOLEAN, + type: 'BOOLEAN', required: false }, { name: 'typescript', description: 'Whether or not to compile the code from typescript.', - type: ApplicationCommandOptionType.BOOLEAN, + type: 'BOOLEAN', required: false }, { name: 'hidden', description: 'Whether or not to show hidden items.', - type: ApplicationCommandOptionType.BOOLEAN, + type: 'BOOLEAN', required: false }, { name: 'show_proto', description: 'Show prototype.', - type: ApplicationCommandOptionType.BOOLEAN, + type: 'BOOLEAN', required: false } ] |