Update EditChannels.plugin.js

This commit is contained in:
Mirco Wittrien 2022-11-05 16:16:32 +01:00 committed by GitHub
parent 4c8ddaad3c
commit 997947ee82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* @name EditChannels
* @author DevilBro
* @authorId 278543574059057154
* @version 4.4.4
* @version 4.4.5
* @description Allows you to locally edit Channels
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -487,10 +487,10 @@ module.exports = (_ => {
let getChannelFromSectionRow = e.instance.props.guildChannels.getChannelFromSectionRow.bind(e.instance.props.guildChannels);
e.instance.props.guildChannels.getChannelFromSectionRow = BDFDB.TimeUtils.suppress((...args) => {
let returnValue = getChannelFromSectionRow(...args);
if (returnValue.channel && returnValue.category) {
if (returnValue) {
returnValue = Object.assign({}, returnValue);
returnValue.channel.record = this.getChannelData(returnValue.channel.record.id);
returnValue.category.record = this.getChannelData(returnValue.category.record.id);
if (returnValue.channel && returnValue.channel.record) returnValue.channel.record = this.getChannelData(returnValue.channel.record.id);
if (returnValue.category && returnValue.category.record) returnValue.category.record = this.getChannelData(returnValue.category.record.id);
}
return returnValue;
}, "Error in getChannelFromSectionRow of ChannelsList!", this);