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

[BUG] Commands require Administrator permissions by default #435

Closed
1 task done
eartharoid opened this issue Jun 7, 2023 · 0 comments
Closed
1 task done

[BUG] Commands require Administrator permissions by default #435

eartharoid opened this issue Jun 7, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@eartharoid
Copy link
Member

eartharoid commented Jun 7, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Despite not setting defaultMemberPermissions anywhere, it appears to be 0 rather than null as expected.

image

image

This might be a problem with @eartharoid/dbf.

https://github.com/eartharoid/dbf.js/blob/b51a64e8ddaee501c720e0591827803c858ce4de/src/commands/Command.ts#L29

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS:
- Node:
- NPM:
- Bot: 4.0.3

Anything else?

Setting it to "0" will prohibit anyone in a guild from using the command unless a specific overwrite is configured or the user has admin permissions.

https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-using-default-permissions

@eartharoid eartharoid added bug Something isn't working triage Needs triage labels Jun 7, 2023
@eartharoid eartharoid added this to the v4.1 milestone Jun 7, 2023
@eartharoid eartharoid removed the triage Needs triage label Jun 11, 2023
@github-project-automation github-project-automation bot moved this from Todo to Complete in Discord Tickets Bot Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Complete
Development

No branches or pull requests

1 participant