diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-26 18:45:31 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-26 18:45:31 -0400 |
commit | cca0b7a03bcd61af12b7f9bff51276f6c70beeb3 (patch) | |
tree | 2b2adebc166ac033520e5b582773e63fbdc5ddb9 /src/commands/moderation/warn.ts | |
parent | 13ba1ad552047eb9386e91d542a975c4bef58b08 (diff) | |
download | tanzanite-cca0b7a03bcd61af12b7f9bff51276f6c70beeb3.tar.gz tanzanite-cca0b7a03bcd61af12b7f9bff51276f6c70beeb3.tar.bz2 tanzanite-cca0b7a03bcd61af12b7f9bff51276f6c70beeb3.zip |
refactor: this.client.util -> util
Diffstat (limited to 'src/commands/moderation/warn.ts')
-rw-r--r-- | src/commands/moderation/warn.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/commands/moderation/warn.ts b/src/commands/moderation/warn.ts index d5bf009..c5b4f43 100644 --- a/src/commands/moderation/warn.ts +++ b/src/commands/moderation/warn.ts @@ -61,7 +61,7 @@ export default class WarnCommand extends BushCommand { ): Promise<unknown> { const member = message.guild.members.cache.get(user.id) as BushGuildMember; const useForce = force && message.author.isOwner(); - const canModerateResponse = this.client.util.moderationPermissionCheck(message.member, member, 'warn', true, useForce); + const canModerateResponse = util.moderationPermissionCheck(message.member, member, 'warn', true, useForce); const victimBoldTag = `**${member.user.tag}**`; if (canModerateResponse !== true) { @@ -76,19 +76,17 @@ export default class WarnCommand extends BushCommand { switch (response) { case 'error creating modlog entry': return message.util.reply( - `${this.client.util.emojis.error} While warning ${victimBoldTag}, there was an error creating a modlog entry, please report this to my developers.` + `${util.emojis.error} While warning ${victimBoldTag}, there was an error creating a modlog entry, please report this to my developers.` ); case 'failed to dm': return message.util.reply( - `${this.client.util.emojis.warn} **${member.user.tag}** has been warned for the ${this.client.util.ordinal( + `${util.emojis.warn} **${member.user.tag}** has been warned for the ${util.ordinal( caseNum )} time, however I could not send them a dm.` ); case 'success': return message.util.reply( - `${this.client.util.emojis.success} Successfully warned **${member.user.tag}** for the ${this.client.util.ordinal( - caseNum - )} time.` + `${util.emojis.success} Successfully warned **${member.user.tag}** for the ${util.ordinal(caseNum)} time.` ); } } |