Skip to content

Commit 5972ce9

Browse files
committed
šŸ› fix: include the current channel in the list of channels to delete messages from
1 parent 137b48e commit 5972ce9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ā€Žsrc/commands/moderation/repel.tsā€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ const getTextChannels = (interaction: ChatInputCommandInteraction) => {
131131
return [];
132132
}
133133
const channels = getPublicChannels(interaction.guild).map((c) => c);
134-
return channels;
134+
return [
135+
interaction.channel as TextChannel,
136+
...channels.filter((c) => c.id !== interaction.channelId),
137+
];
135138
};
136139

137140
const handleDeleteMessages = async ({

0 commit comments

Comments
Ā (0)