This commit is contained in:
Mirco Wittrien 2022-04-30 17:21:21 +02:00
parent 9e7f36bd6b
commit 151abf5543
2 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@
* @name BDFDB
* @author DevilBro
* @authorId 278543574059057154
* @version 2.3.3
* @version 2.3.4
* @description Required Library for DevilBro's Plugins
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -19,7 +19,7 @@ module.exports = (_ => {
"info": {
"name": "BDFDB",
"author": "DevilBro",
"version": "2.3.3",
"version": "2.3.4",
"description": "Required Library for DevilBro's Plugins"
},
"rawUrl": "https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js"
@ -2425,7 +2425,7 @@ module.exports = (_ => {
originalMethod: originalMethod,
originalMethodName: methodName,
callOriginalMethod: _ => data.returnValue = data.originalMethod.apply(data.thisObject, data.methodArguments),
callOriginalMethodAfterwards: _ => callInstead = true,
callOriginalMethodAfterwards: _ => (callInstead = true, data.returnValue),
stopOriginalMethodCall: _ => stopCall = true
};
if (module.BDFDB_patches && module.BDFDB_patches[methodName]) {

View File

@ -2,7 +2,7 @@
* @name SplitLargeMessages
* @author DevilBro
* @authorId 278543574059057154
* @version 1.7.5
* @version 1.7.6
* @description Allows you to enter larger Messages, which will automatically split into several smaller Messages
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": {
"name": "SplitLargeMessages",
"author": "DevilBro",
"version": "1.7.5",
"version": "1.7.6",
"description": "Allows you to enter larger Messages, which will automatically split into several smaller Messages"
}
};
@ -174,7 +174,7 @@ module.exports = (_ => {
}
isSlowDowned (channel) {
return e.instance.props.channel.rateLimitPerUser && !BDFDB.UserUtils.can("MANAGE_CHANNELS", BDFDB.UserUtils.me.id, channel.id) && !BDFDB.UserUtils.can("MANAGE_MESSAGES", BDFDB.UserUtils.me.id, channel.id);
return channel.rateLimitPerUser && !BDFDB.UserUtils.can("MANAGE_CHANNELS", BDFDB.UserUtils.me.id, channel.id) && !BDFDB.UserUtils.can("MANAGE_MESSAGES", BDFDB.UserUtils.me.id, channel.id);
}
formatText (text) {