Skip to content

Commit 7df2cdb

Browse files
committed
🔨 refactor: replace .map() with .values()
1 parent 1d5e5bf commit 7df2cdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/commands/moderation/repel.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const getTextChannels = (interaction: ChatInputCommandInteraction) => {
130130
console.error('Interaction is not in a guild');
131131
return [];
132132
}
133-
const channels = getPublicChannels(interaction.guild).map((c) => c);
133+
const channels = getPublicChannels(interaction.guild).values();
134134
return [
135135
interaction.channel as TextChannel,
136136
...channels.filter((channel) => channel.id !== interaction.channelId),

0 commit comments

Comments
 (0)