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

Name
Value

Content-Type

application/json

Authorization

<key>

Body

Name
Type
Description

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
}

Delete button

DELETE /reaction/remove

This will delete the reaction role when given the correct body.

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Body

Name
Type
Description

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

Get Button

GET /reaction/get/[ Discord Message Id ]/[ Discord Channel Id ]/[ Reaction Id ]/[ Discord Guild Id ]

This will respond with button information

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Request

Name
Type
Description

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

Does Button Exist

GET /reaction/exist/[ Discord Button Id ]/[ Discord Channel Id ]/[ Message Id ]/[ Discord Guild Id ]

This will respond with button information

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Request

Name
Type
Description

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

Last updated