all repos — stealth-developers @ 9f1af9877277b5923c2695e03cbb499d7fb665e3

fix: allow guildannouncement's to be used for the highlight channel
willow hai@wlo.moe
Thu, 05 Jun 2025 22:47:37 +0100
commit

9f1af9877277b5923c2695e03cbb499d7fb665e3

parent

c5869ac3e5e314f4661c207e5c989f0918da7c18

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/interactions/commands/config.tssrc/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"],