Developers
Docs
Everything a bot author needs: start to finish, and then every route.
Getting startedMake a bot, add it to a server, and point discord.py or discord.js at tether with three addresses.Coming from DiscordWhat is the same, what is different, and what to check when a Discord bot is quiet on tether.Slash commandsRegister commands with Discord's routes, and answer them when people run them from the / menu.Buttons and interactionsEmbeds and buttons in messages, and how to answer a press, a menu choice or a command in time.Rich posts for botsCards, rows, setting fields, pickers and On/Off switches, built from Discord's components v2 with tether's extras.FilesSend files the way discord.py and discord.js do, with the size and type rules, and what happens when they are crossed.ThreadsPublic threads in text channels, with Discord's routes and events, and what is not offered.StickersA server's own stickers: Discord's routes, sending them in a message, and what tether leaves out.Scheduled eventsPlan, 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.VoiceA bot joins a voice channel with gateway opcode 4 and gets a LiveKit address and token, not Discord's voice protocol.The music playertether ships the player, not a music bot. Any bot can drive it through one route and a few interactions.Rate limitsDiscord's headers and 429 body, tether's own buckets, and the 50-a-second limit for bots.ErrorsWhat an error answer looks like, and the codes a bot meets most often.Privacy for botsWhat a bot can and cannot see, who decides, and what people are told when they add one.ChangelogWhat changed in API v1, newest first. Within v1 changes are additive only.