From b47a4fd0f304376114c10515c2f403935d80e3e9 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sun, 27 Nov 2022 12:12:39 -0800 Subject: [PATCH] Update client.ts --- src/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.ts b/src/client.ts index 52c32e8..6b7c361 100644 --- a/src/client.ts +++ b/src/client.ts @@ -326,7 +326,7 @@ class punishments extends Database { const embedw = new this.client.embed().setColor(this.client.config.embedColor).setTitle(`Case #${warnData.id}: Warn`).setDescription(`${member.user.tag}\n<@${member.user.id}>\n(\`${member.user.id}\`)`).addFields( {name: 'Reason', value: `\`${reason || 'Reason unspecified'}\``} ) - if (moderator !== client.user.id) {return embedw} + if (moderator !== this.client.user.id) {return embedw} } case 'mute': const muteData:Punishment={type, id: this.createId(), member: member.user.id, moderator, time: now}; @@ -352,7 +352,7 @@ class punishments extends Database { const embedm = new this.client.embed().setColor(this.client.config.embedColor).setTitle(`Case #${muteData.id}: Mute`).setDescription(`${member.user.tag}\n<@${member.user.id}>\n(\`${member.user.id}\`)`).addFields( {name: 'Reason', value: `\`${reason || 'Reason unspecified'}\``}, {name: 'Duration', value: `${this.client.formatTime(timeInMillis, 4, {longNames: true, commas: true})}`}) - if (moderator !== client.user.id) {return embedm}; + if (moderator !== this.client.user.id) {return embedm}; } } }