Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/moderation/repel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const getTextChannels = (interaction: ChatInputCommandInteraction) => {
console.error('Interaction is not in a guild');
return [];
}
const channels = getPublicChannels(interaction.guild).map((c) => c);
const channels = getPublicChannels(interaction.guild).values();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

return [
interaction.channel as TextChannel,
...channels.filter((channel) => channel.id !== interaction.channelId),
Expand Down