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/commands/info | |
parent | 3c56bbcf795725b65192409b3211d92c097f8c82 (diff) | |
download | tanzanite-1947c715f5ff846316b2d921b78f1a71a2892d1b.tar.gz tanzanite-1947c715f5ff846316b2d921b78f1a71a2892d1b.tar.bz2 tanzanite-1947c715f5ff846316b2d921b78f1a71a2892d1b.zip |
chore: upgrade deps
Diffstat (limited to 'src/commands/info')
-rw-r--r-- | src/commands/info/snowflake.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/commands/info/snowflake.ts b/src/commands/info/snowflake.ts index c64a286..d9ca5fc 100644 --- a/src/commands/info/snowflake.ts +++ b/src/commands/info/snowflake.ts @@ -44,8 +44,14 @@ export default class SnowflakeCommand extends BushCommand { const channel = client.channels.resolve(snowflake)!; const channelInfo = [`**Type:** ${BushChannelType[channel.type]}`]; if (channel.isDM()) { - channelInfo.push(`**Recipient:** ${util.discord.escapeMarkdown(channel.recipient.tag)} (${channel.recipient.id})`); - snowflakeEmbed.setTitle(`:snowflake: DM with ${util.discord.escapeMarkdown(channel.recipient.tag)} \`[Channel]\``); + channelInfo.push( + `**Recipient:** ${util.discord.escapeMarkdown(channel.recipient?.tag ?? '¯\\_(ツ)_/¯')} (${ + channel.recipient?.id ?? '¯\\_(ツ)_/¯' + })` + ); + snowflakeEmbed.setTitle( + `:snowflake: DM with ${util.discord.escapeMarkdown(channel.recipient?.tag ?? '¯\\_(ツ)_/¯')} \`[Channel]\`` + ); } else if ( channel.isCategory() || channel.isNews() || |