forgot if statement

This commit is contained in:
Erik 2022-07-19 10:59:00 +03:00
parent 79fbf9a181
commit 1290d759ff
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -336,7 +336,7 @@ class PermissionsCommand extends SlashCommand {
} }
} }
await guild.updatePermissions(); if(update) await guild.updatePermissions();
if(!fields.length) return { index: 'COMMAND_PERMISSIONS_NO_PERMS' }; if(!fields.length) return { index: 'COMMAND_PERMISSIONS_NO_PERMS' };
const embed = { const embed = {