aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-28 18:54:18 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-28 18:54:18 -0400
commit6974a5859658b966954a59411a800223b7542df8 (patch)
tree9f1b4eae137d3253e1530bd30b78ab73b985c9ca /src/commands/dev
parentb581073e0deb4f96510d72001513db64f3cc01ab (diff)
downloadtanzanite-6974a5859658b966954a59411a800223b7542df8.tar.gz
tanzanite-6974a5859658b966954a59411a800223b7542df8.tar.bz2
tanzanite-6974a5859658b966954a59411a800223b7542df8.zip
fix breaking changes and bump dependencies
Diffstat (limited to 'src/commands/dev')
-rw-r--r--src/commands/dev/eval.ts15
-rw-r--r--src/commands/dev/reload.ts3
-rw-r--r--src/commands/dev/setLevel.ts5
3 files changed, 10 insertions, 13 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
}
]
diff --git a/src/commands/dev/reload.ts b/src/commands/dev/reload.ts
index 07218f2..656bb34 100644
--- a/src/commands/dev/reload.ts
+++ b/src/commands/dev/reload.ts
@@ -1,4 +1,3 @@
-import { ApplicationCommandOptionType } from 'discord-api-types';
import { BushCommand } from '../../lib/extensions/BushCommand';
import { BushMessage } from '../../lib/extensions/BushMessage';
import { BushSlashMessage } from '../../lib/extensions/BushSlashMessage';
@@ -24,7 +23,7 @@ export default class ReloadCommand extends BushCommand {
typing: true,
slashOptions: [
{
- type: ApplicationCommandOptionType.BOOLEAN,
+ type: 'BOOLEAN',
name: 'fast',
description: 'Whether to use esbuild for fast compiling or not',
required: false
diff --git a/src/commands/dev/setLevel.ts b/src/commands/dev/setLevel.ts
index 7e07ce0..6c8131a 100644
--- a/src/commands/dev/setLevel.ts
+++ b/src/commands/dev/setLevel.ts
@@ -1,4 +1,3 @@
-import { ApplicationCommandOptionType } from 'discord-api-types';
import { User } from 'discord.js';
import { BushCommand } from '../../lib/extensions/BushCommand';
import { BushMessage } from '../../lib/extensions/BushMessage';
@@ -37,13 +36,13 @@ export default class SetLevelCommand extends BushCommand {
ownerOnly: true,
slashOptions: [
{
- type: /* 'USER' */ ApplicationCommandOptionType.USER,
+ type: /* 'USER' */ 'USER',
name: 'user',
description: 'The user to change the level of',
required: true
},
{
- type: /* 'INTEGER' */ ApplicationCommandOptionType.INTEGER,
+ type: /* 'INTEGER' */ 'INTEGER',
name: 'level',
description: 'The level to set the user to',
required: true