aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/guild
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-29 21:16:30 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-29 21:16:30 -0400
commit1c6d451ffd63f9805b978e8565807e8a6b528681 (patch)
tree97ae6b3746b42ed21eb0fc3a3888bbfca36a1806 /src/listeners/guild
parent7990abdb511eeec2a114b124a3628b10bfefc342 (diff)
downloadtanzanite-1c6d451ffd63f9805b978e8565807e8a6b528681.tar.gz
tanzanite-1c6d451ffd63f9805b978e8565807e8a6b528681.tar.bz2
tanzanite-1c6d451ffd63f9805b978e8565807e8a6b528681.zip
added a rudimentary automod, fixed a bunch of stuff, added some more listeners
Diffstat (limited to 'src/listeners/guild')
-rw-r--r--src/listeners/guild/syncUnban.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/listeners/guild/syncUnban.ts b/src/listeners/guild/syncUnban.ts
index 389aae6..00f260c 100644
--- a/src/listeners/guild/syncUnban.ts
+++ b/src/listeners/guild/syncUnban.ts
@@ -12,8 +12,8 @@ export default class SyncUnbanListener extends BushListener {
public async exec(...[ban]: ClientEvents['guildBanRemove']): Promise<void> {
const bans = await ActivePunishment.findAll({
where: {
- user: ban.user,
- guild: ban.guild,
+ user: ban.user.id,
+ guild: ban.guild.id,
type: ActivePunishmentType.BAN
}
});