Skip to content

Commit 3c5a2b5

Browse files
authored
Refactor/checkin status (#66)
1 parent a7559df commit 3c5a2b5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/bot/commands/checkin/handlers/checkin-status.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { ChatInputCommandInteraction, Client, GuildMember } from 'discord.js'
1+
import type { ChatInputCommandInteraction, Client, GuildMember, TextChannel } from 'discord.js'
22
import { registerCommand } from '@commands/registry'
3-
import { AUDIT_FLAME_CHANNEL, FLAMEWARDEN_ROLE } from '@config/discord'
3+
import { FLAMEWARDEN_ROLE } from '@config/discord'
44
import { getBot, sendReply } from '@utils/discord'
55
import { DiscordBaseError } from '@utils/discord/error'
66
import { log } from '@utils/logger'
@@ -23,7 +23,7 @@ registerCommand({
2323
if (!interaction.inCachedGuild())
2424
throw new CheckinStatusError(CheckinStatus.ERR.NotGuild)
2525

26-
const channel = await CheckinStatus.assertAllowedTextChannel(interaction.guild, interaction.channelId, AUDIT_FLAME_CHANNEL)
26+
const channel = interaction.channel as TextChannel
2727
CheckinStatus.assertTextChannel(channel)
2828
const bot = await getBot(interaction.guild)
2929
CheckinStatus.assertMissPerms(bot, channel)

0 commit comments

Comments
 (0)