Update EditChannels.plugin.js
This commit is contained in:
parent
7d1bf9897a
commit
6b904a1904
|
@ -2,7 +2,7 @@
|
||||||
* @name EditChannels
|
* @name EditChannels
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 4.4.3
|
* @version 4.4.4
|
||||||
* @description Allows you to locally edit Channels
|
* @description Allows you to locally edit Channels
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -487,10 +487,11 @@ module.exports = (_ => {
|
||||||
let getChannelFromSectionRow = e.instance.props.guildChannels.getChannelFromSectionRow.bind(e.instance.props.guildChannels);
|
let getChannelFromSectionRow = e.instance.props.guildChannels.getChannelFromSectionRow.bind(e.instance.props.guildChannels);
|
||||||
e.instance.props.guildChannels.getChannelFromSectionRow = BDFDB.TimeUtils.suppress((...args) => {
|
e.instance.props.guildChannels.getChannelFromSectionRow = BDFDB.TimeUtils.suppress((...args) => {
|
||||||
let returnValue = getChannelFromSectionRow(...args);
|
let returnValue = getChannelFromSectionRow(...args);
|
||||||
if (returnValue.channel && returnValue.category) returnValue = Object.assign({}, returnValue, {
|
if (returnValue.channel && returnValue.category) {
|
||||||
channel: Object.assign({}, returnValue.channel, {record: this.getChannelData(returnValue.channel.record.id)}),
|
returnValue = Object.assign({}, returnValue);
|
||||||
category: Object.assign({}, returnValue.category, {record: this.getChannelData(returnValue.category.record.id)})
|
returnValue.channel.record = this.getChannelData(returnValue.channel.record.id);
|
||||||
});
|
returnValue.category.record = this.getChannelData(returnValue.category.record.id);
|
||||||
|
}
|
||||||
return returnValue;
|
return returnValue;
|
||||||
}, "Error in getChannelFromSectionRow of ChannelsList!", this);
|
}, "Error in getChannelFromSectionRow of ChannelsList!", this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue