From ad7eee01ae96ddc6a483c72d09261ca5e43908de Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 6 Aug 2021 11:06:08 -0400 Subject: upgrade to discord.js v13 release (plus fix last minute breaking chanages) --- src/commands/dev/eval.ts | 2 +- src/commands/skyblock-reborn/chooseColor.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands') diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 1475173..19667dd 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -59,7 +59,7 @@ export default class EvalCommand extends BushCommand { if (!message.author.isOwner()) return await message.util.reply(`${util.emojis.error} Only my developers can run this command.`); if (message.util.isSlash) { - await (message as BushSlashMessage).interaction.defer({ ephemeral: args.silent }); + await (message as BushSlashMessage).interaction.deferReply({ ephemeral: args.silent }); } args.code = args.code.replace(/[“”]/g, '"').replace(/```*(?:js|ts)?/g, ''); diff --git a/src/commands/skyblock-reborn/chooseColor.ts b/src/commands/skyblock-reborn/chooseColor.ts index a912954..4be2243 100644 --- a/src/commands/skyblock-reborn/chooseColor.ts +++ b/src/commands/skyblock-reborn/chooseColor.ts @@ -148,7 +148,7 @@ export default class ChooseColorCommand extends BushCommand { ephemeral: true }); } - if (message.util.isSlash) await (message.interaction as CommandInteraction).defer(); + if (message.util.isSlash) await (message.interaction as CommandInteraction).deferReply(); // new Array( // roleColorMap.map(obj => obj.name.toLowerCase()), // roleColorMap.map(obj => obj.value) -- cgit