From 4183ffd21dfebe262a73b5516ff9e978b6b39f39 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Wed, 14 Apr 2021 08:47:21 -0400 Subject: [PATCH] Update src/helpers/channels/clone_channel.ts Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com> --- src/helpers/channels/clone_channel.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/helpers/channels/clone_channel.ts b/src/helpers/channels/clone_channel.ts index a6b018215..429129b07 100644 --- a/src/helpers/channels/clone_channel.ts +++ b/src/helpers/channels/clone_channel.ts @@ -15,14 +15,10 @@ export async function cloneChannel(channelId: string, reason?: string) { //If "name" is undefined as specified by types channelToClone.name ??= "new-channel"; - //Merge channel data with reason for createChannel options - const creationData = { - reason, - ...channelToClone, - }; //Create the channel (also handles permissions) return createChannel( channelToClone.guildId!, - creationData as CreateGuildChannel + channelToClone, + reason, ); }