Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is command permsission handled? #448

Open
0x32-l3git opened this issue Nov 14, 2023 · 1 comment
Open

Where is command permsission handled? #448

0x32-l3git opened this issue Nov 14, 2023 · 1 comment
Labels
bug-unverified Something isn't work

Comments

@0x32-l3git
Copy link

0x32-l3git commented Nov 14, 2023

I am trying to add an override so the owner IDs (config.js) can do any moderator feature without permissions.
I have tried to edit ModUtils.js with no avail.

const memberInteract = (issuer, target) => {
  if (MODERATION.OWNER_IDS.includes(issuer.id)) return true;
  const { guild } = issuer;
  if (guild.ownerId === issuer.id) return true;
  if (guild.ownerId === target.id) return false;
  return issuer.roles.highest.position > target.roles.highest.position;
};
@0x32-l3git 0x32-l3git added the bug-unverified Something isn't work label Nov 14, 2023
@saiteja-madha
Copy link
Owner

Command permissions and validations are done here: https://github.com/saiteja-madha/discord-js-bot/blob/main/src/handlers/command.js#L15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-unverified Something isn't work
Projects
None yet
Development

No branches or pull requests

2 participants