From eea70afcb2a525a070ce586ac20ea7d1bd6efff5 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 7 Dec 2022 11:53:48 +0100 Subject: [PATCH] Update EditChannels.plugin.js --- Plugins/EditChannels/EditChannels.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/EditChannels/EditChannels.plugin.js b/Plugins/EditChannels/EditChannels.plugin.js index 261cb33ae4..aea00a4b59 100644 --- a/Plugins/EditChannels/EditChannels.plugin.js +++ b/Plugins/EditChannels/EditChannels.plugin.js @@ -2,7 +2,7 @@ * @name EditChannels * @author DevilBro * @authorId 278543574059057154 - * @version 4.4.9 + * @version 4.5.0 * @description Allows you to locally edit Channels * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -765,7 +765,7 @@ module.exports = (_ => { if (!channel) return new BDFDB.DiscordObjects.Channel({}); let data = change && changedChannels[channel.id]; if (data) { - let nativeObject = new BDFDB.DiscordObjects.Channel(channel); + let nativeObject = new (fallbackData && fallbackData.constructor || BDFDB.DiscordObjects.Channel)(channel); nativeObject.name = data.name || nativeObject.name; return nativeObject; }