forked from Galactic/galactic-bot
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 }) {
|
async _reminder({ reminder, user, channel, id }) {
|
||||||
channel = await this.resolveChannel(channel);
|
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}>`,
|
content: `<@${user}>`,
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: this.format('GENERAL_REMINDER_TITLE'),
|
title: this.format('GENERAL_REMINDER_TITLE'),
|
||||||
|
Loading…
Reference in New Issue
Block a user