API reference
Scheduled events
Events a server plans, who is interested, and how they start and end.
List Scheduled Events for Guild
/guilds/{guild.id}/scheduled-eventsPeople and botsThe server's planned and going events that you can see.
An event in a voice channel is listed only to people who can see the channel; an event somewhere else to every member. Completed and canceled events are not listed. tether adds user_interested: whether you marked it.
Path parameters
guild.id- A snowflake id.
Query string
with_user_count"true" | "false"
Response
200 a list of APIGuildScheduledEvent
[
{
"id": "107441200000000560",
"guild_id": "107441200000000001",
"channel_id": "107441200000000011",
"creator_id": "107441200000000200",
"creator": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"name": "Game night",
"description": "Bring snacks.",
"scheduled_start_time": "2030-01-04T20:00:00.000Z",
"scheduled_end_time": "2030-01-04T22:30:00.000Z",
"privacy_level": 2,
"status": 1,
"entity_type": 2,
"entity_id": null,
"entity_metadata": null,
"user_count": 6,
"image": null,
"icon": null,
"recurrence_rule": null,
"user_interested": false
}
]
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
Discord
Like Discord’s List Scheduled Events for Guild, with differences.
Adds user_interested and starts events by itself.
Create Guild Scheduled Event
/guilds/{guild.id}/scheduled-eventsPeople and botsPlan an event in a voice channel (entity_type 2) or somewhere else (3).
An event starts by itself at scheduled_start_time. A voice event ends at scheduled_end_time, or when its voice channel has been empty for 15 minutes after it started; one somewhere else needs entity_metadata.location and a scheduled_end_time. Stage events (entity_type 1) are refused until tether has stage channels. recurrence_rule takes Discord's subset: every day, every weekday or weekend, every week or every other week on the weekday it starts on, every month on the same weekday of the month, every year on its date; start must equal scheduled_start_time. image is a data URI (a still 16:9 cover). icon is tether's own addition: a data URI for a small square picture (cropped from the middle, at most 128×128) that the app shows on the server list while the event is going on. The server may have 100 planned and going events.
Permissions needed
CREATE_EVENTSbit 17592186044416- Create events
Path parameters
guild.id- A snowflake id.
Body
application/json
channel_idstring | null- The voice channel, for
entity_type2. entity_metadataobject | null{location}, forentity_type3.namestring · 1 to 100 charactersrequiredprivacy_level2 · default 2- Always 2 (only the server sees it).
scheduled_start_timestringrequiredscheduled_end_timestring | nulldescriptionstring | null · max 1000 charactersentity_typeinteger · 1 to 3requiredimagestring | null · max 5592534 characters- A picture as a data URI, or
null. Checked like every picture. iconstring | null · max 5592534 characters- Tether: a square icon as a data URI, or
null. Checked like every picture. recurrence_ruleobject | null
Example request
{
"name": "Game night",
"scheduled_start_time": "2030-01-04T20:00:00.000Z",
"scheduled_end_time": "2030-01-04T22:30:00.000Z",
"entity_type": 2,
"channel_id": "107441200000000011",
"description": "Bring snacks."
}
Response
{
"id": "107441200000000560",
"guild_id": "107441200000000001",
"channel_id": "107441200000000011",
"creator_id": "107441200000000200",
"creator": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"name": "Game night",
"description": "Bring snacks.",
"scheduled_start_time": "2030-01-04T20:00:00.000Z",
"scheduled_end_time": "2030-01-04T22:30:00.000Z",
"privacy_level": 2,
"status": 1,
"entity_type": 2,
"entity_id": null,
"entity_metadata": null,
"user_count": 6,
"image": null,
"icon": null,
"recurrence_rule": null,
"user_interested": false
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
MISSING_ACCESS50001 · HTTP 403- You are in the server but cannot see the channel (VIEW_CHANNEL).
INVALID_FORM_BODY50035 · HTTP 400- A field is missing or outside its limits, the start is not in the future, a repeat is not one of the accepted ones, or
entity_typeis 1. MAX_SCHEDULED_EVENTS90260 · HTTP 400- The server already has 100 planned and going events.
IMAGE_REFUSED90255 · HTTP 400- The cover or the icon matched the image check.
Rate limits
eventCreatePerUserGuildbucket f63e2cba- 20 per 3600 seconds, counted per user. See Rate limits.
Gateway events it causes
Discord
Like Discord’s Create Guild Scheduled Event, with differences.
No stage events. Starts by itself; a repeating event rolls to its next time.
Get Guild Scheduled Event
/guilds/{guild.id}/scheduled-events/{event.id}People and botsOne event, with user_count and user_interested.
Path parameters
guild.id- A snowflake id.
event.id- A snowflake id.
Query string
with_user_count"true" | "false"
Response
{
"id": "107441200000000560",
"guild_id": "107441200000000001",
"channel_id": "107441200000000011",
"creator_id": "107441200000000200",
"creator": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"name": "Game night",
"description": "Bring snacks.",
"scheduled_start_time": "2030-01-04T20:00:00.000Z",
"scheduled_end_time": "2030-01-04T22:30:00.000Z",
"privacy_level": 2,
"status": 1,
"entity_type": 2,
"entity_id": null,
"entity_metadata": null,
"user_count": 6,
"image": null,
"icon": null,
"recurrence_rule": null,
"user_interested": false
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
UNKNOWN_GUILD_SCHEDULED_EVENT10070 · HTTP 404- There is no such event in the server, or it is in a voice channel you cannot see.
Discord
The same as Discord’s Get Guild Scheduled Event.
Modify Guild Scheduled Event
/guilds/{guild.id}/scheduled-events/{event.id}People and botsChange an event, start it early (status 2), end it (3) or cancel it (4).
Needs Manage Events, or Create Events for an event you made. Starting early tells the interested people (once for each time the event is held, however often it is started and ended). For an event in a voice channel the permissions count as they are in that channel. Canceling a repeating event cancels it for all its times. A going event cannot change its start, kind or channel. A completed or canceled event cannot be changed.
Permissions needed
MANAGE_EVENTSbit 8589934592- Manage events
Path parameters
guild.id- A snowflake id.
event.id- A snowflake id.
Body
application/json
channel_idstring | nullentity_metadataobject | nullnamestring · 1 to 100 charactersprivacy_level2scheduled_start_timestringscheduled_end_timestring | nulldescriptionstring | null · max 1000 charactersentity_typeinteger · 1 to 3statusinteger · 1 to 4- 2 starts a planned event now, 3 ends a going one, 4 cancels.
imagestring | null · max 5592534 characters- A new cover as a data URI, or
nullto remove it. iconstring | null · max 5592534 characters- Tether: a new icon as a data URI, or
nullto remove it. recurrence_ruleobject | null
Example request
{
"name": "Movie night"
}
Response
{
"id": "107441200000000560",
"guild_id": "107441200000000001",
"channel_id": "107441200000000011",
"creator_id": "107441200000000200",
"creator": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"name": "Game night",
"description": "Bring snacks.",
"scheduled_start_time": "2030-01-04T20:00:00.000Z",
"scheduled_end_time": "2030-01-04T22:30:00.000Z",
"privacy_level": 2,
"status": 1,
"entity_type": 2,
"entity_id": null,
"entity_metadata": null,
"user_count": 6,
"image": null,
"icon": null,
"recurrence_rule": null,
"user_interested": false
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
UNKNOWN_GUILD_SCHEDULED_EVENT10070 · HTTP 404- There is no such event in the server, or it is in a voice channel you cannot see.
CANNOT_UPDATE_FINISHED_EVENT180000 · HTTP 400- The event is completed or canceled.
INVALID_FORM_BODY50035 · HTTP 400- A field is missing, the wrong type or outside its limits.
IMAGE_REFUSED90255 · HTTP 400- The cover or the icon matched the image check.
Rate limits
eventChangePerUserGuildbucket 38f2b97a- 30 per 3600 seconds, counted per user. See Rate limits.
Gateway events it causes
Discord
Like Discord’s Modify Guild Scheduled Event, with differences.
Adds icon.
Delete Guild Scheduled Event
/guilds/{guild.id}/scheduled-events/{event.id}People and botsDelete an event.
Needs Manage Events, or Create Events for an event you made.
Permissions needed
MANAGE_EVENTSbit 8589934592- Manage events
Path parameters
guild.id- A snowflake id.
event.id- A snowflake id.
Response
204 no body
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
UNKNOWN_GUILD_SCHEDULED_EVENT10070 · HTTP 404- There is no such event in the server, or it is in a voice channel you cannot see.
Rate limits
eventChangePerUserGuildbucket 38f2b97a- 30 per 3600 seconds, counted per user. See Rate limits.
Gateway events it causes
Discord
The same as Discord’s Delete Guild Scheduled Event.
Get Guild Scheduled Event Users
/guilds/{guild.id}/scheduled-events/{event.id}/usersPeople and botsThe people who are interested, by user id.
limit is at most 100. before and after are user ids, as on Discord.
Path parameters
guild.id- A snowflake id.
event.id- A snowflake id.
Query string
limitinteger · 1 to 100 · default 100with_member"true" | "false"beforestringafterstring
Response
200 a list of APIGuildScheduledEventUser
[
{
"guild_scheduled_event_id": "107441200000000560",
"user": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
}
}
]
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
UNKNOWN_GUILD_SCHEDULED_EVENT10070 · HTTP 404- There is no such event in the server, or it is in a voice channel you cannot see.
INVALID_FORM_BODY50035 · HTTP 400- A field is missing, the wrong type or outside its limits.
Discord
The same as Discord’s Get Guild Scheduled Event Users.
Mark Interested
/guilds/{guild.id}/scheduled-events/{event.id}/users/@mePeople onlytether onlyMark yourself interested in an event. People only.
Interested people are told when the event starts. Marking twice is fine. tether's own app uses this route; Discord's clients use the same address.
Path parameters
guild.id- A snowflake id.
event.id- A snowflake id.
Response
204 no body
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
UNKNOWN_GUILD_SCHEDULED_EVENT10070 · HTTP 404- There is no such event in the server, or it is in a voice channel you cannot see.
CANNOT_UPDATE_FINISHED_EVENT180000 · HTTP 400- The event is completed or canceled.
BOTS_CANNOT_USE_ENDPOINT20001 · HTTP 403- A bot token was used on a route for people.
Rate limits
eventInterestPerUserbucket 1030d932- 60 per 60 seconds, counted per user. See Rate limits.
Gateway events it causes
Discord
Only on tether: Discord has no such route.
Discord's own app has this route; its API docs do not list it.
Take Interest Back
/guilds/{guild.id}/scheduled-events/{event.id}/users/@mePeople onlytether onlyTake your interest in an event back. People only.
Path parameters
guild.id- A snowflake id.
event.id- A snowflake id.
Response
204 no body
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
UNKNOWN_GUILD_SCHEDULED_EVENT10070 · HTTP 404- There is no such event in the server, or it is in a voice channel you cannot see.
UNKNOWN_GUILD_SCHEDULED_EVENT_USER10071 · HTTP 404- You were not interested.
BOTS_CANNOT_USE_ENDPOINT20001 · HTTP 403- A bot token was used on a route for people.
Rate limits
eventInterestPerUserbucket 1030d932- 60 per 60 seconds, counted per user. See Rate limits.
Gateway events it causes
Discord
Only on tether: Discord has no such route.
Discord's own app has this route; its API docs do not list it.