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
5 changes: 4 additions & 1 deletion src/commands/moderation/repel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ const getTextChannels = (interaction: ChatInputCommandInteraction) => {
return [];
}
const channels = getPublicChannels(interaction.guild).map((c) => c);
return channels;
return [
interaction.channel as TextChannel,
...channels.filter((c) => c.id !== interaction.channelId),
];
};

const handleDeleteMessages = async ({
Expand Down