Update to Knub30.0.0-beta.37 and Eris 0.15, first pass
This commit is contained in:
parent
84da543205
commit
f6be4f4af6
133 changed files with 6507 additions and 380 deletions
|
@ -27,8 +27,12 @@ export function canActOn(pluginData: GuildPluginData<any>, member1: Member, memb
|
|||
return allowSameLevel ? ourLevel >= memberLevel : ourLevel > memberLevel;
|
||||
}
|
||||
|
||||
export function hasPermission(pluginData: AnyPluginData<any>, permission: string, matchParams: ExtendedMatchParams) {
|
||||
const config = pluginData.config.getMatchingConfig(matchParams);
|
||||
export async function hasPermission(
|
||||
pluginData: AnyPluginData<any>,
|
||||
permission: string,
|
||||
matchParams: ExtendedMatchParams,
|
||||
) {
|
||||
const config = await pluginData.config.getMatchingConfig(matchParams);
|
||||
return helpers.hasPermission(config, permission);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue