Fix unnecessary not, breaking entire bot

This commit is contained in:
Wroclaw 2023-07-24 03:52:37 +02:00
parent 6673d3c294
commit c03d329c3d

View file

@ -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);
}
/**