Reaction Roles Routes
These are the API routes to do with the reaction roles on the project.
Create a new reaction role
POST /reaction/add
This will create a new discord reaction role.
Headers
Content-Type
application/json
Authorization
<key>
Body
reactionRoleId
UUIDv4
The database Id of the reaction role
guildId
string
The id of the guild where the reaction role is added
channelId
string
The id of the discord channel for the reaction role
messageId
string
The id of the message for the reaction
reactionId
string
The reaction id required for the reaction role
roleId
string
This is the discord role id that is given or removed for the reactions interaction
Response
{
"created": boolean
}{
"error": {
"code": 400,
"message": "Could not create a new reaction role"
},
"catchError": "string"
}If authorization header not provided:
{
"error": {
"code": 403
"message": "Please specify an authorization key!"
}
}If invalid authorization key:
{
"error": {
"code": 403,
"message": "Invalid authorization Key!"
}
}Delete button
DELETE /reaction/remove
This will delete the reaction role when given the correct body.
Headers
Content-Type
application/json
Authorization
<key>
Body
messageId
string
The id of the message for the reaction role
channelId
string
The id of the discord channel for the reaction role
reactionId
string
The reaction id required for the reaction role
guildId
string
The id of the guild where the reaction role is added
Response
If authorization header not provided:
If invalid authorization key:
Get Button
GET /reaction/get/[ Discord Message Id ]/[ Discord Channel Id ]/[ Reaction Id ]/[ Discord Guild Id ]
This will respond with button information
Headers
Content-Type
application/json
Authorization
<key>
Request
Discord Message Id
string
The id of the message for the reaction role
Discord Channel Id
string
The id of the discord channel for the reaction role
Reaction Id
string
The reaction id required for the reaction role
Discord Guild Id
string
The id of the guild where the reaction role is added
Response
If authorization header not provided:
If invalid authorization key:
Does Button Exist
GET /reaction/exist/[ Discord Button Id ]/[ Discord Channel Id ]/[ Message Id ]/[ Discord Guild Id ]
This will respond with button information
Headers
Content-Type
application/json
Authorization
<key>
Request
Discord Button Id
string
The custom id of the discord button
Discord Channel Id
string
The id from the discord channel
Discord Message Id
string
The id from the discord message
Discord Guild Id
string
The id from the discord guild
Response
If authorization header not provided:
If invalid authorization key:
Last updated