mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 06:28:53 +00:00
Update permissionValidator.js
This commit is contained in:
1 parent
3658c94a95
commit
5434df7ecf
1 file changed
+1
-1
@@ -50,7 +50,7 @@ exports.cannotSendMessageInChannel = async (interaction) => {
|
||||
ephemeral: true
|
||||
});
|
||||
} catch (error) {
|
||||
if(error.message == "The reply to this interaction has already been sent or deferred.") {
|
||||
if(error.message == 'The reply to this interaction has already been sent or deferred.') {
|
||||
logger.warn('Error while sending ephemereal message about insufficient permissions to send message in channel.');
|
||||
logger.debug(error);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user