forked from Galactic/galactic-bot
added embed perm check
This commit is contained in:
parent
183ca1b1a3
commit
a7b0098695
@ -204,7 +204,7 @@ class MessageLogsSetting extends Setting {
|
||||
};
|
||||
|
||||
const perms = channel.permissionsFor(guild.me);
|
||||
const missingPerms = perms.missing(['SEND_MESSAGES', 'VIEW_CHANNEL', 'MANAGE_WEBHOOKS']);
|
||||
const missingPerms = perms.missing(['SEND_MESSAGES', 'VIEW_CHANNEL', 'MANAGE_WEBHOOKS', 'EMBED_LINKS']);
|
||||
|
||||
if(missingPerms.length) return {
|
||||
error: true,
|
||||
|
Loading…
Reference in New Issue
Block a user