diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-17 20:03:05 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-06-17 20:03:05 -0400 |
commit | e1c613829950a534d9f45c00a033b83575be3b3c (patch) | |
tree | 2de1e5231217211ae4087c46cc74dc46c584507a /src/listeners/track-manual-punishments | |
parent | 0e87bbd3940d89defcb04926587b35c8f4d1947f (diff) | |
download | tanzanite-e1c613829950a534d9f45c00a033b83575be3b3c.tar.gz tanzanite-e1c613829950a534d9f45c00a033b83575be3b3c.tar.bz2 tanzanite-e1c613829950a534d9f45c00a033b83575be3b3c.zip |
remove global client variable
Diffstat (limited to 'src/listeners/track-manual-punishments')
4 files changed, 4 insertions, 0 deletions
diff --git a/src/listeners/track-manual-punishments/modlogSyncBan.ts b/src/listeners/track-manual-punishments/modlogSyncBan.ts index 45d6f51..a387897 100644 --- a/src/listeners/track-manual-punishments/modlogSyncBan.ts +++ b/src/listeners/track-manual-punishments/modlogSyncBan.ts @@ -37,6 +37,7 @@ export default class ModlogSyncBanListener extends BushListener { } const { log } = await Moderation.createModLogEntry({ + client: this.client, type: ModLogType.PERM_BAN, user: ban.user, moderator: first.executor, diff --git a/src/listeners/track-manual-punishments/modlogSyncKick.ts b/src/listeners/track-manual-punishments/modlogSyncKick.ts index d901f5f..51d3dd8 100644 --- a/src/listeners/track-manual-punishments/modlogSyncKick.ts +++ b/src/listeners/track-manual-punishments/modlogSyncKick.ts @@ -37,6 +37,7 @@ export default class ModlogSyncKickListener extends BushListener { } const { log } = await Moderation.createModLogEntry({ + client: this.client, type: ModLogType.KICK, user: member.user, moderator: first.executor, diff --git a/src/listeners/track-manual-punishments/modlogSyncTimeout.ts b/src/listeners/track-manual-punishments/modlogSyncTimeout.ts index 4619edd..2ce3db2 100644 --- a/src/listeners/track-manual-punishments/modlogSyncTimeout.ts +++ b/src/listeners/track-manual-punishments/modlogSyncTimeout.ts @@ -41,6 +41,7 @@ export default class ModlogSyncTimeoutListener extends BushListener { const newTime = <string | null>timeOut.new ? new Date(<string>timeOut.new) : null; const { log } = await Moderation.createModLogEntry({ + client: this.client, type: newTime ? ModLogType.TIMEOUT : ModLogType.REMOVE_TIMEOUT, user: newMember.user, moderator: first.executor, diff --git a/src/listeners/track-manual-punishments/modlogSyncUnban.ts b/src/listeners/track-manual-punishments/modlogSyncUnban.ts index 34979a5..2207e78 100644 --- a/src/listeners/track-manual-punishments/modlogSyncUnban.ts +++ b/src/listeners/track-manual-punishments/modlogSyncUnban.ts @@ -36,6 +36,7 @@ export default class ModlogSyncUnbanListener extends BushListener { } const { log } = await Moderation.createModLogEntry({ + client: this.client, type: ModLogType.UNBAN, user: ban.user, moderator: first.executor, |