Androz2091 / discord-music-bot

The perfect music bot for your Discord server! 🤘
238 stars 128 forks source link

Sync permissions #65

Open Ch1sKey opened 2 years ago

Ch1sKey commented 2 years ago

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