perms check for reminder callback
This commit is contained in:
parent
4c5755e315
commit
b67274130e
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user