bugfixes
This commit is contained in:
parent
40e41af6ad
commit
12312de869
@ -98,7 +98,7 @@ module.exports = class AutoModeration extends Observer {
|
||||
|
||||
if (command?.name === 'settings') {
|
||||
// NOTE: probably needs a more permanent solution
|
||||
const result = await this.client.registry.components.get('observer:permissions').execute(message, message.command);
|
||||
const result = await this.client.registry.components.get('inhibitor:permissions').execute(message, message.command);
|
||||
if (!result.error) return;
|
||||
}
|
||||
|
||||
|
@ -93,6 +93,7 @@ const Guild = Structures.extend('Guild', (Guild) => {
|
||||
|
||||
const result = await this.client.storage.mongodb.webhooks.findOne({ feature, guild: this.id });
|
||||
if (!result) return false;
|
||||
if (!this.me.hasPermission('MANAGE_WEBHOOKS')) return false;
|
||||
const hooks = await this.fetchWebhooks();
|
||||
const hook = hooks.get(result.hookID);
|
||||
if (!hook) return false;
|
||||
|
Loading…
Reference in New Issue
Block a user