API v2 Docs - RSVP Endpoint
The RSVP endpoints allows you to get and edit RSVP status for events in a guild.
rsvp/get
Returns the specified event's RSVP details.
Example Request Body
{
"guild_id": 375357265198317579,
"event_id": "divq9ihqhoq9hbm2tncj8set04"
}
Example Response
{
"on_time": ["130510525770629121"],
"late": ["233611560545812480", "142107863307780097"],
"undecided": [],
"not_going": [],
"limit": -1,
"role_id": null
}
Supported Values in Request
Key |
Value Type |
Info |
Required |
guild_id |
string |
The Guild ID |
True |
event_id |
String |
The Event ID |
True |
Returned Values
Key |
Value Type |
Info |
guild_id |
string |
The ID of the guild the RSVP data be`1`s to |
event_id |
String |
The ID of the event this RSVP object is for |
event_end |
Long |
Unix time of when the event ends |
on_time |
List (of Strings) |
List of users that RSVPed as "on time" |
on_time |
List (of Strings) |
List of users that RSVPed as "on time" |
late |
List (of Strings) |
List of users that RSVPed as "late" |
undecided |
List (of Strings) |
List of users that RSVPed as "unsure"/"undecided" |
not_going |
List (of Strings) |
List of users that RSVPed as "not going" |
limit |
Integer |
Amount of people that can RSVP to the event, `-1` to disable |
role_id |
String? |
The ID of the role to be assigned when RSVPing to the event. `null` if no role is used |
rsvp/update
Updates the specified event's RSVP data.
Example Request Body
{
"guild_id": 375357265198317579,
"event_id": "divq9ihqhoq9hbm2tncj8set04",
"limit": 10,
"role_id": null,
"to_add": {
"on_time": ["130510525770629121"],
"late": ["233611560545812480"]
},
"to_remove": {
"not_going": ["142107863307780097"],
"undecided: ["130510525770629121"]
}
}
Example Response
{
"message": "RSVP successfully updated"
}
Supported Values in Request
Key |
Value Type |
Info |
Required |
guild_id |
string |
The Guild ID |
True |
event_id |
String |
The Event ID |
True |
limit |
Integer |
Amount of people that can RSVP to the event, `-1` to disable |
False |
role_id |
String? |
The ID of the role to assign when RSVPing to the event. `null` or "none" to remove role |
False |
to_add.on_time |
List (of Strings) |
List of users to add that RSVPed as "on time" |
False |
to_add.late |
List (of Strings) |
List of users to add that RSVPed as "late" |
False |
to_add.undecided |
List (of Strings) |
List of users to add that RSVPed as "unsure"/"undecided" |
False |
to_add.not_going |
List (of Strings) |
List of users to remove that RSVPed as "not going" |
False |
to_remove.on_time |
List (of Strings) |
List of users to remove that RSVPed as "on time" |
False |
to_remove.late |
List (of Strings) |
List of users to remove that RSVPed as "late" |
False |
to_remove.undecided |
List (of Strings) |
List of users to remove that RSVPed as "unsure"/"undecided" |
False |
to_remove.not_going |
List (of Strings) |
List of users to remove that RSVPed as "not going" |
False |
Returned Values
Key |
Value Type |
Info |
message |
String |
Status of the update |