From 7990abdb511eeec2a114b124a3628b10bfefc342 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 26 Jul 2021 22:53:27 -0400 Subject: chore: add new eslint rule --- src/commands/admin/channelPermissions.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/commands/admin') diff --git a/src/commands/admin/channelPermissions.ts b/src/commands/admin/channelPermissions.ts index c397855..08d0068 100644 --- a/src/commands/admin/channelPermissions.ts +++ b/src/commands/admin/channelPermissions.ts @@ -65,7 +65,7 @@ export default class ChannelPermissionsCommand extends BushCommand { permission: string; state: 'true' | 'false' | 'neutral'; } - ): Promise { + ): Promise { const failedChannels = []; for (const channel of message.guild.channels.cache.array()) { try { @@ -89,9 +89,12 @@ export default class ChannelPermissionsCommand extends BushCommand { paginate.push(new MessageEmbed().setDescription(failure.substring(i, Math.min(failure.length, i + 2000)))); } const normalMessage = `Finished changing perms! Failed channels:`; - util.buttonPaginate(message, paginate, normalMessage); + return await client.util.buttonPaginate(message, paginate, normalMessage); } else { - await message.util.reply({ content: `Finished changing perms! Failed channels:`, embeds: [{ description: failure }] }); + return await message.util.reply({ + content: `Finished changing perms! Failed channels:`, + embeds: [{ description: failure }] + }); } } } -- cgit