I have a discord bot py.
I have a cog file and in that file I already have a class. Within that class I have commands with @app_commands.commands().
I have a database with guilds as key and roles as keys for each guild. The roles are the ones that are permitted to access the commands.
I want to setup the commands in a way that only those authorized can view the slash commands on the dashboard.
Like dyno. Only people who are permitted to use it can view the command on the application command dashboard.
How do I do this?