aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moulberry-bush
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 18:47:13 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 18:47:13 -0400
commit80d5b5b11ae261945dc725a0a80115922003afcf (patch)
tree16c9f251b4d53456b4b5340c0203d35fd5870859 /src/commands/moulberry-bush
parentcca0b7a03bcd61af12b7f9bff51276f6c70beeb3 (diff)
downloadtanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.gz
tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.tar.bz2
tanzanite-80d5b5b11ae261945dc725a0a80115922003afcf.zip
refactor: this.client -> client
Diffstat (limited to 'src/commands/moulberry-bush')
-rw-r--r--src/commands/moulberry-bush/report.ts6
1 files changed, 3 insertions, 3 deletions
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<unknown> {
- 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 = <TextChannel>this.client.channels.cache.get('782972723654688848');
+ const reportChannel = <TextChannel>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.');