mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 14:38:49 +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
|
ephemeral: true
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} 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.warn('Error while sending ephemereal message about insufficient permissions to send message in channel.');
|
||||||
logger.debug(error);
|
logger.debug(error);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in new issue
Block a user