Check if guild member can use slash command.
I want to send ephemeral reply message with listed only slash commands (commands mentions), that guild member can use, and skip slash commands that member can not use in specific guild. That message is supposed to look different for every member, base on role and member permission overrides set up by guild administrator.
My goal is to create command check similar to this chart: https://cdn.discordapp.com/attachments/697138785317814292/1042878162901672048/flowchart-for-new-permissions.png
I figured out i can fetch command overrides like this:
but it returns collection of overrides for channels, roles and users.
Is there any better way to check if member has permission to use slash command, instead of check if any member's role has permission to use slash command, and then if that specific member has permission?
My goal is to create command check similar to this chart: https://cdn.discordapp.com/attachments/697138785317814292/1042878162901672048/flowchart-for-new-permissions.png
I figured out i can fetch command overrides like this:
but it returns collection of overrides for channels, roles and users.
Is there any better way to check if member has permission to use slash command, instead of check if any member's role has permission to use slash command, and then if that specific member has permission?
