tether developers
Contents

Docs

Scheduled events

Plan, start and end events in a server: Discord's routes and fields, the repeat rules tether accepts, who may do what, and the events a bot gets.

A scheduled event is something a server plans: a game night in a voice channel, a birthday somewhere else. tether has Discord's guild scheduled events: the same routes, the same fields, the same statuses and the same gateway events. They differ in the few places listed at the end of this page.

An event is in a voice channel (entity_type 2) or somewhere else (3, with a place in entity_metadata.location). There are no stage channels in tether, so entity_type 1 is refused with 400 and a field error on entity_type. privacy_level is always 2 (only the server's members see it).

The event object

{
  "id": "107441200000000700",
  "guild_id": "107441200000000001",
  "channel_id": "107441200000000120",
  "creator_id": "107441200000000010",
  "name": "Game night",
  "description": "Bring snacks.",
  "scheduled_start_time": "2026-11-06T21:00:00.000Z",
  "scheduled_end_time": null,
  "privacy_level": 2,
  "status": 1,
  "entity_type": 2,
  "entity_id": null,
  "entity_metadata": null,
  "user_count": 6,
  "image": null,
  "recurrence_rule": null,
  "user_interested": false
}

APIGuildScheduledEvent has creator (the person who made it) in the answers of the routes. image is the hash of the cover picture, served at /api/v1/guild-events/<id>/<hash> (public, cached for a year, like server icons). icon is tether's own addition (Discord's events have none): the hash of a small square picture (at most 128×128), served at /api/v1/guild-events/<id>/icons/<hash>. The app shows it on the server list while the event is going on; with no icon it uses the cover, cropped square. user_count is in the routes' answers and in GUILD_CREATE; it is how many members are interested now.

user_interested is tether's own addition: whether the account asking is interested. It is in the routes' answers and in the event list of GUILD_CREATE, never in an event the gateway sends to everyone (a bot is never interested).

status is Discord's: 1 scheduled, 2 active, 3 completed, 4 canceled. An event that is completed or canceled is not in the list any more and is deleted 30 days later.

Routes

What Route
List a server's events List Guild Scheduled Events
Plan one Create Guild Scheduled Event
One event Get Guild Scheduled Event
Change, start, end or cancel one Modify Guild Scheduled Event
Delete one Delete Guild Scheduled Event
Who is interested Get Guild Scheduled Event Users
Mark yourself interested Add Interest (people only)
Take it back Remove Interest (people only)

Marking interest is for people: a bot gets 403 there, because "interested" is a person's own choice.

import aiohttp
from datetime import datetime, timedelta, timezone

async def plan_game_night(token: str, guild_id: str, channel_id: str):
    start = datetime.now(timezone.utc) + timedelta(days=3)
    body = {
        'name': 'Game night',
        'description': 'Bring snacks.',
        'entity_type': 2,
        'channel_id': channel_id,
        'privacy_level': 2,
        'scheduled_start_time': start.isoformat(),
    }
    async with aiohttp.ClientSession() as s:
        r = await s.post(
            f'https://app.tethr.lol/api/v1/guilds/{guild_id}/scheduled-events',
            headers={'Authorization': f'Bot {token}'},
            json=body,
        )
        return await r.json()

Limits

name is 1 to 100 characters, description up to 1000, entity_metadata.location 1 to 100. A voice event needs channel_id (a voice channel); an event somewhere else needs entity_metadata.location and a scheduled_end_time. A start has to be in the future when the event is made. An end has to be after the start. A server may have 100 planned or active events at once; past that the answer is 400 with code 90260 (MAX_SCHEDULED_EVENTS). Making events is limited to 20 an hour for each person or bot and server; changing, starting, ending, canceling and deleting them to 30 an hour for each person or bot and server (see Rate limits).

image is a data URI (data:image/png;base64,...) of a PNG, JPEG, GIF or WebP up to 4 MB. tether re-makes it as a picture of its own (nothing but the picture is kept) and runs it through the same image check as the other pictures people upload (see Errors, 90255). image: null takes the cover away.

Who may

Permission Bit What it allows
Create Events 44 Plan events, and change, start, end, cancel or delete your own
Manage Events 33 The same for anyone's events

Both are Discord's. For an event in a voice channel they count as they are in that channel (a channel's permission overwrites can take either away), and planning one needs View Channel and Connect there; an event somewhere else counts server-wide. A voice event is only seen by members who can see its channel (View Channel); it is in their lists and events, and not in anyone else's. If it moves to another channel, the people who can't see it there get GUILD_SCHEDULED_EVENT_DELETE. Someone who leaves, is kicked or is banned stops being interested in the server's events.

Starting and ending

PATCH with status changes where an event is in its life. The allowed moves are Discord's: 1 to 2 (start it now), 2 to 3 (end it), and 1 or 2 to 4 (cancel it). Asking for the status it already has, or any other move, is 400; changing a finished event is 400 with code 180000 (CANNOT_UPDATE_FINISHED_EVENT).

tether also moves events by itself, once a minute:

  • A scheduled event starts at its start time (GUILD_SCHEDULED_EVENT_UPDATE with status 2).
  • An active event ends at its end time, if it has one. A voice event with no end time ends when its voice channel has been empty for 15 minutes.
  • A repeating event that ends is not completed: it rolls to its next time and stays 1 scheduled, with the same id and the same people interested.

When a scheduled event starts, the people who are interested get a notification (and a push to a phone that is away): "Game night is starting", with the server's name and the place. Never the description. A device that has "Show message text" off gets only "An event is starting" and the server's name. Each time an event is held is pushed once, however often it is started and ended by hand.

Repeating events

recurrence_rule is Discord's object. tether takes the same choices Discord's own apps offer, and nothing else:

What frequency interval Other fields
Every day 3 1
Every weekday, every weekend 3 1 by_weekday [0,1,2,3,4] or [5,6]
Every week on a day 2 1 by_weekday is the day the event starts on
Every other week 2 2 by_weekday is the day the event starts on
Every month on the nth day 1 1 by_n_weekday [{ "n": 1, "day": 4 }] (that day)
Every year 0 1 by_month and by_month_day (the start's date)

start must equal scheduled_start_time, end and count are null (an event repeats until it is canceled), and days count from Monday = 0. Anything else is 400 with a field error on recurrence_rule.

Days and times are worked out in UTC. An event that starts at 21:00 in someone's time zone repeats at the same moment of UTC; when their clocks change it moves by an hour for them. (tether's own apps write the repeat choices in the person's own weekday and time.)

Events

Under the GUILD_SCHEDULED_EVENTS intent (bit 16):

Event When
GUILD_SCHEDULED_EVENT_CREATE An event was planned
GUILD_SCHEDULED_EVENT_UPDATE It changed, started, ended, was canceled or rolled
GUILD_SCHEDULED_EVENT_DELETE It was deleted (also when its voice channel was)
GUILD_SCHEDULED_EVENT_USER_ADD Someone marked themselves interested
GUILD_SCHEDULED_EVENT_USER_REMOVE Someone took it back

A server's open events are in guild_scheduled_events of GUILD_CREATE (the placeholder [] of old). The audit log records GUILD_SCHEDULED_EVENT_CREATE (100), _UPDATE (101) and _DELETE (102); starting and ending by the clock are not recorded, because nobody did them.

https://<the server's address>/events/<server id>/<event id> opens an event in tether's own apps. A message that contains one shows a card with the cover, the time, the place, the description and an Interested button, for the first three links of a message (like invite links, they do not also get a link preview). The card is drawn by the app from the event, so it is as current as the event; for someone who can't see the event it says so and shows nothing of it.

What is different from Discord

  • No stage events: entity_type 1 is refused.
  • 100 events a server (Discord's limit is the same), and user_interested is added (see above).
  • A repeat is one of Discord's own choices (above), worked out in UTC.
  • A voice event with no end time ends after its channel has been empty for 15 minutes.
  • GET .../users answers with the interested people who are still in the server; someone who left is not counted in user_count either.
  • A cover is re-made by tether, and passes the image check.