diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-07 20:15:45 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-09-07 20:15:45 -0400 |
commit | 35d03eb54fe81c1d5c0359db67455b82f754e3f4 (patch) | |
tree | 5666ac26f6fee5e06c2c3a523fced614cb6723bf /src/listeners/message | |
parent | 198aeadfc73642498afcb1eb637e0de86ccc9308 (diff) | |
download | tanzanite-35d03eb54fe81c1d5c0359db67455b82f754e3f4.tar.gz tanzanite-35d03eb54fe81c1d5c0359db67455b82f754e3f4.tar.bz2 tanzanite-35d03eb54fe81c1d5c0359db67455b82f754e3f4.zip |
add owner bypasses and prevent blacklisted users from having their dms logged
Diffstat (limited to 'src/listeners/message')
-rw-r--r-- | src/listeners/message/directMessage.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/listeners/message/directMessage.ts b/src/listeners/message/directMessage.ts index 5da55ec..fd1533a 100644 --- a/src/listeners/message/directMessage.ts +++ b/src/listeners/message/directMessage.ts @@ -14,6 +14,7 @@ export default class DirectMessageListener extends BushListener { public override async exec(...[message]: BushClientEvents['messageCreate']): Promise<void> { if (message.channel.type === 'DM') { if (!(message.author.id == client.user!.id) && message.author.bot) return; + if (client.cache.global.blacklistedUsers.includes(message.author.id)) return; const dmLogEmbed = new MessageEmbed().setTimestamp().setFooter(`User ID • ${message.channel.recipient.id}`); if (message.author.id != client.user!.id) { |