diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-05 15:20:08 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-03-05 15:20:08 -0500 |
commit | 1947c715f5ff846316b2d921b78f1a71a2892d1b (patch) | |
tree | f6bdc2d28537fd63f7e8c26db1cb4928cb9c9f13 /src/listeners/message | |
parent | 3c56bbcf795725b65192409b3211d92c097f8c82 (diff) | |
download | tanzanite-1947c715f5ff846316b2d921b78f1a71a2892d1b.tar.gz tanzanite-1947c715f5ff846316b2d921b78f1a71a2892d1b.tar.bz2 tanzanite-1947c715f5ff846316b2d921b78f1a71a2892d1b.zip |
chore: upgrade deps
Diffstat (limited to 'src/listeners/message')
-rw-r--r-- | src/listeners/message/blacklistedFile.ts | 2 | ||||
-rw-r--r-- | src/listeners/message/directMessage.ts | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/listeners/message/blacklistedFile.ts b/src/listeners/message/blacklistedFile.ts index 38803f5..77c4971 100644 --- a/src/listeners/message/blacklistedFile.ts +++ b/src/listeners/message/blacklistedFile.ts @@ -146,7 +146,7 @@ export default class BlacklistedFileListener extends BushListener { void client.console.warn( 'blacklistedFile', `Failed to delete <<${foundFiles.map((f) => f.description).join(' and ')}>> sent by <<${message.author.tag}>> in <<${ - message.channel.type === ChannelType.DM ? `${message.channel.recipient.tag}'s DMs` : message.channel.name + message.channel.type === ChannelType.DM ? `${message.channel.recipient?.tag}'s DMs` : message.channel.name }>>.` ); } diff --git a/src/listeners/message/directMessage.ts b/src/listeners/message/directMessage.ts index df4d578..575fbda 100644 --- a/src/listeners/message/directMessage.ts +++ b/src/listeners/message/directMessage.ts @@ -14,7 +14,7 @@ export default class DirectMessageListener extends BushListener { if (message.channel.type === ChannelType.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 Embed().setTimestamp().setFooter({ text: `User ID • ${message.channel.recipient.id}` }); + const dmLogEmbed = new Embed().setTimestamp().setFooter({ text: `User ID • ${message.channel.recipientId}` }); if (message.author.id != client.user!.id) { dmLogEmbed @@ -27,8 +27,8 @@ export default class DirectMessageListener extends BushListener { } else { dmLogEmbed .setAuthor({ - name: `To: ${message.channel.recipient.username}`, - iconURL: `${message.channel.recipient.displayAvatarURL()}` + name: `To: ${message.channel.recipient?.username}`, + iconURL: `${message.channel.recipient?.displayAvatarURL()}` }) .setDescription(`**DM:**\n${message}`) .setColor(util.colors.red) |