anjanms / DubAPI

A Node.js API for creating queup.net bots.
MIT License
20 stars 10 forks source link

add new endpoints, events and role (plus rights) #39

Closed Al3366 closed 6 months ago

Al3366 commented 6 months ago

This PR adds some new endpoints, realtime events and a new role.

I've updated the rights for each role to currently reflect the role rights on QueUp's API. With the DJ role, it never had the set-dj right. This role allows users to join a locked room queue, but it's automatically removed when the room queue is unlocked.

I've not added any logic, but the roomModSettings accepts the following in the body of a request:

action: slowMode, allowGuestsToChat and allowGuestsToEmbed value: boolean