diff options
Diffstat (limited to 'src/commands/info/snowflake.ts')
-rw-r--r-- | src/commands/info/snowflake.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/commands/info/snowflake.ts b/src/commands/info/snowflake.ts index bd0924f..f2ffaa8 100644 --- a/src/commands/info/snowflake.ts +++ b/src/commands/info/snowflake.ts @@ -4,7 +4,6 @@ import { SnowflakeUtil, VoiceChannel, type CategoryChannel, - type Channel, type DeconstructedSnowflake, type DMChannel, type Guild, @@ -46,9 +45,9 @@ export default class SnowflakeCommand extends BushCommand { // Channel if (client.channels.cache.has(snowflake)) { - const channel: Channel = client.channels.cache.get(snowflake)!; + const channel = client.channels.cache.get(snowflake)!; const channelInfo = [`**Type:** ${channel.type}`]; - if ((['DM', 'GROUP_DM'] as const).includes(channel.type)) { + if (['DM', 'GROUP_DM'].includes(channel.type)) { const _channel = channel as DMChannel; channelInfo.push(`**Recipient:** ${util.discord.escapeMarkdown(_channel.recipient.tag)} (${_channel.recipient.id})`); snowflakeEmbed.setTitle( |