fix: allow guildannouncement's to be used for the highlight channel
willow hai@wlo.moe
Thu, 05 Jun 2025 22:47:37 +0100
1 files changed,
2 insertions(+),
1 deletions(-)
M
src/interactions/commands/config.ts
→
src/interactions/commands/config.ts
@@ -220,7 +220,8 @@ guild: GuildType,
) { const channel = interaction.options.getChannel("channel", true); - if (channel.type !== ChannelType.GuildText) { + const allowedTypes = [ChannelType.GuildText, ChannelType.GuildAnnouncement]; + if (!allowedTypes.includes(channel.type)) { await interaction.reply({ content: "❌ highlight channel must be a text channel.", flags: ["Ephemeral"],