permission fix
This commit is contained in:
parent
6debf865e4
commit
781c0a83d5
|
@ -2,7 +2,7 @@
|
|||
* @name BDFDB
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 2.2.5
|
||||
* @version 2.2.6
|
||||
* @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.2.5",
|
||||
"version": "2.2.6",
|
||||
"description": "Required Library for DevilBro's Plugins"
|
||||
}
|
||||
};
|
||||
|
@ -3209,7 +3209,7 @@ module.exports = (_ => {
|
|||
if (!BDFDB.DiscordConstants.Permissions[permission]) BDFDB.LogUtils.warn([permission, "not found in Permissions"]);
|
||||
else {
|
||||
let channel = Internal.LibraryModules.ChannelStore.getChannel(channelId);
|
||||
if (channel) return Internal.LibraryModules.PermissionRoleUtils.can(BDFDB.DiscordConstants.Permissions[permission], id, channel);
|
||||
if (channel) return Internal.LibraryModules.PermissionRoleUtils.can(BDFDB.DiscordConstants.Permissions[permission], id, channel) || Internal.LibraryModules.PermissionRoleUtils.can({permission: BDFDB.DiscordConstants.Permissions[permission], user: id, context: channel});
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
|
|
@ -97,8 +97,8 @@
|
|||
"NotificationSettingsUtils": {"props": ["setDesktopType", "setTTSType"]},
|
||||
"NotificationUtils": {"props": ["makeTextChatNotification", "shouldNotify"]},
|
||||
"PlatformUtils": {"props": ["isWindows", "isLinux"]},
|
||||
"PermissionRoleUtils": {"props": ["can", "ALLOW", "DENY"]},
|
||||
"PermissionUtils": {"props": ["getChannelPermissions", "can"]},
|
||||
"PermissionRoleUtils": {"props": ["canEveryone", "can"]},
|
||||
"PreferencesContext": {"props": ["AccessibilityPreferencesContext"]},
|
||||
"QueryUtils": {"props": ["AutocompleterQuerySymbols", "AutocompleterResultTypes"]},
|
||||
"ReactionEmojiUtils": {"props": ["getReactionEmojiName", "getReactionEmojiName"]},
|
||||
|
|
Loading…
Reference in New Issue