mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
...
This commit is contained in:
1 parent
4af65b4a1a
commit
20cc1bcafb
1 file changed
+4
-1
@@ -754,7 +754,10 @@ export class CommandHandler extends EventEmitter {
|
||||
if (req.ownerOnly && !isOwner) return false;
|
||||
if (req.permissions.length > 0 && !isOwner) {
|
||||
const guild = msg.message?.guild ?? null;
|
||||
if (!guild) continue;
|
||||
if (!guild) {
|
||||
this.replyHandler(this.t(permGuildId, "cmdBuilder.requirement.permission"), msg);
|
||||
return false;
|
||||
}
|
||||
|
||||
const member = guild.members.get(authorId) ?? null;
|
||||
if (member?.permissions) {
|
||||
|
||||
Reference in new issue
Block a user