From 80d5b5b11ae261945dc725a0a80115922003afcf Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Mon, 26 Jul 2021 18:47:13 -0400 Subject: refactor: this.client -> client --- src/commands/moulberry-bush/report.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands/moulberry-bush') diff --git a/src/commands/moulberry-bush/report.ts b/src/commands/moulberry-bush/report.ts index 11ef269..64dcdff 100644 --- a/src/commands/moulberry-bush/report.ts +++ b/src/commands/moulberry-bush/report.ts @@ -58,7 +58,7 @@ export default class ReportCommand extends BushCommand { } public async exec(message: BushMessage, { member, evidence }: { member: GuildMember; evidence: string }): Promise { - if (message.guild.id != this.client.consts.mappings.guilds.bush) + if (message.guild.id != client.consts.mappings.guilds.bush) return await message.util.reply(`${util.emojis.error} This command can only be run in Moulberry's bush.`); if (!member) return await message.util.reply(`${util.emojis.error} Choose someone to report`); if (member.user.id === '322862723090219008') @@ -105,13 +105,13 @@ export default class ReportCommand extends BushCommand { reportEmbed.addField('Attachment', message.attachments.first().url); } } - const reportChannel = this.client.channels.cache.get('782972723654688848'); + const reportChannel = client.channels.cache.get('782972723654688848'); await reportChannel.send({ embeds: [reportEmbed] }).then(async (ReportMessage) => { try { await ReportMessage.react(util.emojis.success); await ReportMessage.react(util.emojis.error); } catch { - this.client.console.warn('ReportCommand', 'Could not react to report message.'); + client.console.warn('ReportCommand', 'Could not react to report message.'); } }); return await message.util.reply('Successfully made a report.'); -- cgit