From b67274130e94923bacd19a90acb35146954a071e Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Fri, 19 Aug 2022 18:05:17 +0300 Subject: [PATCH] perms check for reminder callback --- src/structure/client/wrappers/GuildWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/client/wrappers/GuildWrapper.js b/src/structure/client/wrappers/GuildWrapper.js index ce058a3..05df641 100644 --- a/src/structure/client/wrappers/GuildWrapper.js +++ b/src/structure/client/wrappers/GuildWrapper.js @@ -96,7 +96,7 @@ class GuildWrapper { async _reminder({ reminder, user, channel, id }) { channel = await this.resolveChannel(channel); - if (channel) await channel.send({ + if (channel && channel.permissionsFor(this.client.user).has(['ViewChannel', 'SendMessages'])) await channel.send({ content: `<@${user}>`, embeds: [{ title: this.format('GENERAL_REMINDER_TITLE'),