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

check for missing permissions before doing things #1

Open
niklasp opened this issue Feb 7, 2024 · 0 comments
Open

check for missing permissions before doing things #1

niklasp opened this issue Feb 7, 2024 · 0 comments
Milestone

Comments

@niklasp
Copy link
Collaborator

niklasp commented Feb 7, 2024

e.g.

if (message.channel.permissionsFor(message.guild.me).has("MANAGE_MESSAGES")) {
    // The bot has permission to manage messages in the channel
} else {
    // The bot does not have permission
}
@niklasp niklasp added this to the v2 milestone Feb 9, 2024
@ikhaled28 ikhaled28 mentioned this issue Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant