The forms project grants access to various routes based on the names of the user’s roles in the configured server. For instance, if a user has a role called Helpers
in the guild, they will have a Helpers
scope that grants access to routes or forms requiring it.
If your user account does not appear to have the right roles, that can be caused by an outdated roles list.
Your roles are automatically refreshed occasionally (every hour, or when your token is refreshed), but you can force them to refresh by making a DELETE request to /member/
with the following body:
{"user_id": 12345678910}
The list of available roles might also need to be refreshed. It is automatically refreshed daily but can be triggered manually by making a PATCH request to /roles
.
The following is a list of routes locked behind roles
Route | Role |
---|---|
POST /forms |
Helpers |
GET /forms |
Admins |