API reference
API reference
176 routes, the gateway, and everything they send and take. Shaped like Discord’s API; where tether differs, the route says so.
Every address below is under /api/v1 on the server you talk to, for example https://app.tethr.lol/api/v1/gateway/bot. Send Authorization: Bot <token> as a bot, or Authorization: Bearer <token> as a person. Each route says who may call it, what permission it needs, and what its rate-limit buckets are.
Sections
Gateway and instanceWhere the gateway is, and what this server has switched on. 3 routes.UsersThe account behind a token, its servers and settings. 8 routes.BotsMaking bots (their maker's routes) and what a server decides about each bot in it. 13 routes.Slash commandsA bot's application commands, global and per server. 14 routes.OAuth2 and the add linkDiscord's bot authorization link, sign in with tether, and the bot's own application. 6 routes.Servers (guilds)Servers and their channels. In the API a server is a guild. 11 routes.Members and bansWho is in a server, and who is not allowed. 11 routes.RolesRoles and their permissions. 5 routes.ChannelsChannels, direct messages, and who may do what in them. 13 routes.MessagesReading, sending, editing and deleting messages. 9 routes.ReactionsEmoji under messages. 6 routes.Pins and sticky messagesPinned messages, and the message stuck to the bottom of a channel. 7 routes.PollsVoting in polls and ending them. 3 routes.ThreadsPublic threads in text channels. 11 routes.FilesUploading, downloading and refreshing links to files. 3 routes.Custom emojiA server's own emoji. 5 routes.Scheduled eventsEvents a server plans, who is interested, and how they start and end. 8 routes.StickersA server's own stickers, and sending them in messages. 6 routes.InvitesInvite links to servers. 6 routes.ModerationThe audit log, ban appeals, warnings and locks. 10 routes.InteractionsAnswering buttons, menus and slash commands, and follow-ups. 6 routes.The playerA music bot's player in a voice channel. 3 routes.PicturesAvatars, icons, banners, emoji and stickers, as the CDN would serve them. 9 routes.