From 1290d759ff8bddd887986b4fa2e887f00f14097a Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 19 Jul 2022 10:59:00 +0300 Subject: [PATCH] forgot if statement --- src/structure/components/commands/administration/Permissions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/components/commands/administration/Permissions.js b/src/structure/components/commands/administration/Permissions.js index 37a0210..4b741a0 100644 --- a/src/structure/components/commands/administration/Permissions.js +++ b/src/structure/components/commands/administration/Permissions.js @@ -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' }; const embed = {