refactor(commands/modertation): nuke's fetch in a single line

This commit is contained in:
Raphael 2025-11-25 15:09:57 +01:00 committed by Raphaël
parent e5dda46040
commit 5b6f5b2ea9

View file

@ -54,9 +54,7 @@ export default {
try {
const newChannel = await oldChannel.clone();
await newChannel.setPosition(pos);
const fetchedChannel = await interaction.client.channels.fetch(
newChannel.id,
);
const fetchedChannel = await interaction.client.channels.fetch(newChannel.id);
if (
!notification && fetchedChannel &&
fetchedChannel.type === ChannelType.GuildText &&