added embed perm check

This commit is contained in:
Erik 2021-05-05 17:46:01 +03:00
parent 183ca1b1a3
commit a7b0098695

View File

@ -204,7 +204,7 @@ class MessageLogsSetting extends Setting {
}; };
const perms = channel.permissionsFor(guild.me); 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 { if(missingPerms.length) return {
error: true, error: true,