aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/snowflake.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/info/snowflake.ts')
-rw-r--r--src/commands/info/snowflake.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/info/snowflake.ts b/src/commands/info/snowflake.ts
index f30330a..deaf41c 100644
--- a/src/commands/info/snowflake.ts
+++ b/src/commands/info/snowflake.ts
@@ -1,5 +1,5 @@
import {
- BushCommand,
+ BotCommand,
clientSendAndPermCheck,
colors,
timestamp,
@@ -19,7 +19,7 @@ import {
type Snowflake
} from 'discord.js';
-export default class SnowflakeCommand extends BushCommand {
+export default class SnowflakeCommand extends BotCommand {
public constructor() {
super('snowflake', {
aliases: ['snowflake', 'info', 'sf'],
@@ -50,7 +50,7 @@ export default class SnowflakeCommand extends BushCommand {
// Channel
if (this.client.channels.cache.has(snowflake)) {
const channel = this.client.channels.resolve(snowflake)!;
- const channelInfo = [`**Type:** ${BushChannelType[channel.type] ?? ChannelType[channel.type]}`];
+ const channelInfo = [`**Type:** ${MappedChannelType[channel.type] ?? ChannelType[channel.type]}`];
if (channel.type === ChannelType.DM) {
channelInfo.push(
`**Recipient:** ${escapeMarkdown(channel.recipient?.tag ?? '¯\\_(ツ)_/¯')} (${channel.recipient?.id ?? '¯\\_(ツ)_/¯'})`
@@ -136,7 +136,7 @@ export default class SnowflakeCommand extends BushCommand {
}
}
-enum BushChannelType {
+enum MappedChannelType {
'Text' = 0,
'DM' = 1,
'Voice' = 2,