diff --git a/src/commands/moderation/repel.ts b/src/commands/moderation/repel.ts index 15685bb..a52fe91 100644 --- a/src/commands/moderation/repel.ts +++ b/src/commands/moderation/repel.ts @@ -130,8 +130,11 @@ const getTextChannels = (interaction: ChatInputCommandInteraction) => { console.error('Interaction is not in a guild'); return []; } - const channels = getPublicChannels(interaction.guild).map((c) => c); - return channels; + const channels = getPublicChannels(interaction.guild).values(); + return [ + interaction.channel as TextChannel, + ...channels.filter((channel) => channel.id !== interaction.channelId), + ]; }; const handleDeleteMessages = async ({