From 5b6f5b2ea95ff807914fe0e12f19bfa70f52211e Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 25 Nov 2025 15:09:57 +0100 Subject: [PATCH] refactor(commands/modertation): nuke's fetch in a single line --- src/commands/moderation/nuke.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/commands/moderation/nuke.ts b/src/commands/moderation/nuke.ts index bdc0e81..979ff2e 100644 --- a/src/commands/moderation/nuke.ts +++ b/src/commands/moderation/nuke.ts @@ -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 &&