How do I check if user has permission to execute command
What the title says. I found
I want to check if the user's combined permissions (from all roles and individual overrides) are sufficient to invoke the command. Do I really have to iterate through every single channel in the guild and every single role on the user and call
ApplicationCommandPermissionsManager#has and tried it with but all that method does is to check if that specific user has an override in the permissions.I want to check if the user's combined permissions (from all roles and individual overrides) are sufficient to invoke the command. Do I really have to iterate through every single channel in the guild and every single role on the user and call
has() all those times to figure this out? Surely not, because that wouldn't even cover admin permissions AFAIK.