discord-music-bot
discord-music-bot copied to clipboard
Sync permissions
As mentioned here. The majority of discord bots require roles access management. This is already possible for slash-commands. And slash-create already supports it.
For now only defaultPermission property works fine. Defining permissions in permissions
object would not work as syncing permissions requires one extra step after commands sync.
This PR fixes these issues. Now you would be able to use permissions
object to restrict or allow access for specific roles or users.