Fix unnecessary not, breaking entire bot
This commit is contained in:
parent
6673d3c294
commit
c03d329c3d
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ function requestReply(
|
|||
* @returns if the request can be replied to
|
||||
*/
|
||||
function canReplyToRequest(request: apiRequest) {
|
||||
return !(request.guild?.members.me?.permissionsIn(request.channel as GuildTextBasedChannel).has("SendMessages") ?? true);
|
||||
return (request.guild?.members.me?.permissionsIn(request.channel as GuildTextBasedChannel).has("SendMessages") ?? true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue