discord-music-bot icon indicating copy to clipboard operation
discord-music-bot copied to clipboard

Sync permissions

Open Ch1sKey opened this issue 3 years ago • 0 comments

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. image

Ch1sKey avatar Sep 25 '21 18:09 Ch1sKey