tether developers
Contents

API reference

Bots

Making bots (their maker's routes) and what a server decides about each bot in it.

Create Bot

POST/users/@me/botsPeople onlyApp token with “bots”tether only

Make a new bot account. The answer carries its token, shown this once.

A new bot is private (only you can add it), with no About text, no permissions and no prefix; change that with Modify Bot. You may own up to 20 bots. The token is <id in base64>.<secret> and only its hash is stored: if you lose it, reset it.

Who can call it

  • A person, with a session token.
  • An app token with the scope bots: Make, change and delete your bots, and see which servers they are in

Body

application/json

usernamestring · 2 to 32 charactersrequired
The bot's name, unique like any username (2 to 32 letters, digits, _ and .).

Example request

{
  "username": "groove"
}

Response

201 APIBotWithToken

{
  "id": "107441200000000300",
  "username": "groove",
  "discriminator": "0",
  "global_name": null,
  "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
  "banner": null,
  "accent_color": null,
  "bot": true,
  "public_flags": 0,
  "owner_id": "107441200000000200",
  "player": false,
  "description": "Plays music in voice channels.",
  "bot_public": false,
  "default_permissions": "3147776",
  "default_prefix": "g!",
  "guild_count": 2,
  "token": "MTA3NDQxMjAwMDAwMDAwMzAw.sample-token-shown-once-when-you-make-a-bot"
}

Errors

MAX_BOTS90004 · HTTP 400
You already own 20 bots.
INVALID_FORM_BODY50035 · HTTP 400
The name is taken, or not allowed (errors.username; NAME_NOT_ALLOWED for a name that looks like tether staff or is against the rules).
BOTS_CANNOT_USE_ENDPOINT20001 · HTTP 403
A bot token was used.

Rate limits

botCreatePerUserbucket fed71bca
10 per 3600 seconds, counted per user. See Rate limits.

Discord

Only on tether: Discord has no such route.

Discord makes bots in its developer portal; tether's portal uses this route.

List Bots

GET/users/@me/botsPeople onlyApp token with “bots”tether only

The bots you made.

Who can call it

  • A person, with a session token.
  • An app token with the scope bots: Make, change and delete your bots, and see which servers they are in

Response

200 a list of APIBotUser

[
  {
    "id": "107441200000000300",
    "username": "groove",
    "discriminator": "0",
    "global_name": null,
    "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
    "banner": null,
    "accent_color": null,
    "bot": true,
    "public_flags": 0,
    "owner_id": "107441200000000200",
    "player": false,
    "description": "Plays music in voice channels.",
    "bot_public": false,
    "default_permissions": "3147776",
    "default_prefix": "g!",
    "guild_count": 2
  }
]

Errors

BOTS_CANNOT_USE_ENDPOINT20001 · HTTP 403
A bot token was used: only a bot's maker can manage it.

Discord

Only on tether: Discord has no such route.

Get Bot

GET/users/@me/bots/{bot.id}People onlyApp token with “bots”tether only

One of your bots.

Who can call it

  • A person, with a session token.
  • An app token with the scope bots: Make, change and delete your bots, and see which servers they are in

Path parameters

bot.id
The bot's id (also its application id).

Response

200 APIBotUser

{
  "id": "107441200000000300",
  "username": "groove",
  "discriminator": "0",
  "global_name": null,
  "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
  "banner": null,
  "accent_color": null,
  "bot": true,
  "public_flags": 0,
  "owner_id": "107441200000000200",
  "player": false,
  "description": "Plays music in voice channels.",
  "bot_public": false,
  "default_permissions": "3147776",
  "default_prefix": "g!",
  "guild_count": 2
}

Errors

UNKNOWN_USER10013 · HTTP 404
You did not make a bot with that id.

Discord

Only on tether: Discord has no such route.

Modify Bot

PATCH/users/@me/bots/{bot.id}People onlyApp token with “bots”tether only

Change a bot's name, picture, About text, who may add it, and what its add link asks for.

Every field is optional but at least one is needed. The picture is an image data URI that the server decodes and re-encodes like any avatar. default_permissions and default_prefix are what the add link asks for and registers in every server the bot is added to (see Adding a bot).

Who can call it

  • A person, with a session token.
  • An app token with the scope bots: Make, change and delete your bots, and see which servers they are in

Path parameters

bot.id
The bot's id (also its application id).

Body

application/json

usernamestring · 2 to 32 characters
The bot's name.
avatarstring | null · max 5592534 characters
An image data URI, or null to clear.
descriptionstring · max 400 characters
The About text, at most 400 characters.
bot_publicboolean
true: anyone who manages a server may add it. false (the default): only you.
playerboolean
true marks a music bot, which may drive the player (The music player).
default_permissionsstring
The permissions the add link asks for, a decimal bitfield. Bits tether does not know are dropped.
default_prefixstring | null · 1 to 8 characters
The prefix its commands start with (1 to 8 characters, no spaces), or null for none.

Example request

{
  "description": "Plays music in voice channels.",
  "bot_public": true,
  "default_prefix": "g!"
}

Response

200 APIBotUser

{
  "id": "107441200000000300",
  "username": "groove",
  "discriminator": "0",
  "global_name": null,
  "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
  "banner": null,
  "accent_color": null,
  "bot": true,
  "public_flags": 0,
  "owner_id": "107441200000000200",
  "player": false,
  "description": "Plays music in voice channels.",
  "bot_public": false,
  "default_permissions": "3147776",
  "default_prefix": "g!",
  "guild_count": 2
}

Errors

UNKNOWN_USER10013 · HTTP 404
You did not make a bot with that id.
INVALID_FORM_BODY50035 · HTTP 400
The name is taken (USERNAME_ALREADY_TAKEN) or not allowed (NAME_NOT_ALLOWED), or a field is outside its limits.

Rate limits

avatarChangePerUserbucket 1a6ee4e8
10 per 3600 seconds, counted per user. See Rate limits.

Gateway events it causes

Discord

Only on tether: Discord has no such route.

Reset Bot Token

POST/users/@me/bots/{bot.id}/token/resetPeople onlyApp token with “bots”tether only

Make a new token. The old one stops working at once, and the bot's live gateway connections close.

No body is needed. The new token is in the answer, shown this once.

Who can call it

  • A person, with a session token.
  • An app token with the scope bots: Make, change and delete your bots, and see which servers they are in

Path parameters

bot.id
The bot's id (also its application id).

Response

200 APIBotWithToken

{
  "id": "107441200000000300",
  "username": "groove",
  "discriminator": "0",
  "global_name": null,
  "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
  "banner": null,
  "accent_color": null,
  "bot": true,
  "public_flags": 0,
  "owner_id": "107441200000000200",
  "player": false,
  "description": "Plays music in voice channels.",
  "bot_public": false,
  "default_permissions": "3147776",
  "default_prefix": "g!",
  "guild_count": 2,
  "token": "MTA3NDQxMjAwMDAwMDAwMzAw.sample-token-shown-once-when-you-make-a-bot"
}

Errors

UNKNOWN_USER10013 · HTTP 404
You did not make a bot with that id.

Discord

Only on tether: Discord has no such route.

Delete Bot

DELETE/users/@me/bots/{bot.id}People onlyApp token with “bots”tether only

Delete a bot: its tokens stop working, it leaves every server and its managed roles go.

What it said stays: its messages keep an author, shown as a deleted bot.

Who can call it

  • A person, with a session token.
  • An app token with the scope bots: Make, change and delete your bots, and see which servers they are in

Path parameters

bot.id
The bot's id (also its application id).

Response

204 no body

Errors

UNKNOWN_USER10013 · HTTP 404
You did not make a bot with that id.

Discord

Only on tether: Discord has no such route.

List Bot Servers

GET/users/@me/bots/{bot.id}/guildsPeople onlyApp token with “bots”tether only

The servers a bot is in: id, name, icon and how many members.

Who can call it

  • A person, with a session token.
  • An app token with the scope bots: Make, change and delete your bots, and see which servers they are in

Path parameters

bot.id
The bot's id (also its application id).

Response

200 a list of APIBotGuild

[
  {
    "id": "107441200000000001",
    "name": "The crew",
    "icon": null,
    "member_count": 14
  }
]

Errors

UNKNOWN_USER10013 · HTTP 404
You did not make a bot with that id.

Discord

Only on tether: Discord has no such route.

Make Bot Leave Server

DELETE/users/@me/bots/{bot.id}/guilds/{guild.id}People onlyApp token with “bots”tether only

Make your bot leave a server, whatever its role there. Its managed role goes with it.

The audit log names you. The bot gets GUILD_DELETE over its gateway.

Who can call it

  • A person, with a session token.
  • An app token with the scope bots: Make, change and delete your bots, and see which servers they are in

Path parameters

bot.id
The bot's id (also its application id).
guild.id
A snowflake id.

Response

204 no body

Errors

UNKNOWN_USER10013 · HTTP 404
You did not make a bot with that id.
UNKNOWN_GUILD10004 · HTTP 404
The server does not exist, or you are not in it.
UNKNOWN_MEMBER10007 · HTTP 404
That person is not a member of the server.

Gateway events it causes

Discord

Only on tether: Discord has no such route.

List Server Bots

GET/guilds/{guild.id}/botsPeople and botstether only

The bots in a server, with what the server decided about each (prefix, reading rule, player).

Any member can read it, a bot included: a bot looks here for the prefix and the reading rule the server gave it.

Path parameters

guild.id
A snowflake id.

Response

200 a list of APIGuildBot

[
  {
    "user": {
      "id": "107441200000000300",
      "username": "groove",
      "discriminator": "0",
      "global_name": null,
      "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
      "banner": null,
      "accent_color": null,
      "bot": true,
      "public_flags": 0
    },
    "settings": {
      "guild_id": "107441200000000001",
      "bot_id": "107441200000000300",
      "prefix": "g!",
      "message_content": false,
      "player": {
        "enabled": true,
        "control": "in_call",
        "control_role_ids": [],
        "hide_in_voice": false
      }
    },
    "maker": {
      "id": "107441200000000200",
      "username": "josh",
      "discriminator": "0",
      "global_name": "Josh",
      "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
      "banner": null,
      "accent_color": null,
      "bot": false,
      "public_flags": 0
    },
    "role_id": "107441200000000301"
  }
]

Errors

UNKNOWN_GUILD10004 · HTTP 404
The server does not exist, or you are not in it.

Discord

Only on tether: Discord has no such route.

Get Server Bot Settings

GET/guilds/{guild.id}/bots/{bot.id}/settingsPeople and botstether only

What one server decided about one bot: its prefix, whether it reads every message, its player settings.

Path parameters

guild.id
A snowflake id.
bot.id
A snowflake id.

Response

200 APIGuildBotSettings

{
  "guild_id": "107441200000000001",
  "bot_id": "107441200000000300",
  "prefix": "g!",
  "message_content": false,
  "player": {
    "enabled": true,
    "control": "in_call",
    "control_role_ids": [],
    "hide_in_voice": false
  }
}

Errors

UNKNOWN_GUILD10004 · HTTP 404
The server does not exist, or you are not in it.

Discord

Only on tether: Discord has no such route.

Discord decides this with the MESSAGE_CONTENT intent; tether lets each server decide (see Privacy for bots).

Modify Server Bot Settings

PATCH/guilds/{guild.id}/bots/{bot.id}/settingsPeople onlytether only

Register a bot's prefix, let it read every message, or set its player.

People who manage the server only: a bot cannot widen its own reading rule. Every change reaches members as GUILD_BOT_SETTINGS_UPDATE.

Permissions needed

MANAGE_GUILDbit 32
Manage server

Path parameters

guild.id
A snowflake id.
bot.id
A snowflake id.

Body

application/json

prefixstring | null · 1 to 8 characters
The prefix whose messages the bot may read (1 to 8 characters, no spaces), or null.
message_contentboolean
true: the bot reads every message in this server.
playerobject
The player's settings for a music bot.
player.enabledboolean
player.control"in_call" | "roles"
player.control_role_idsarray of string · max 25 items
player.hide_in_voiceboolean

Example request

{
  "prefix": "g!"
}

Response

200 APIGuildBotSettings

{
  "guild_id": "107441200000000001",
  "bot_id": "107441200000000300",
  "prefix": "g!",
  "message_content": false,
  "player": {
    "enabled": true,
    "control": "in_call",
    "control_role_ids": [],
    "hide_in_voice": 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.
BOTS_CANNOT_USE_ENDPOINT20001 · HTTP 403
A bot token was used on a route for people.
INVALID_FORM_BODY50035 · HTTP 400
A field is missing, the wrong type or outside its limits.

Gateway events it causes

Discord

Only on tether: Discord has no such route.

Remove Server Bot

DELETE/guilds/{guild.id}/bots/{bot.id}People onlytether only

Remove a bot from a server: it is kicked without a moderation case, and its managed role and settings go.

Anyone with Manage Server may, whatever the rank of the bot's role.

Permissions needed

MANAGE_GUILDbit 32
Manage server

Path parameters

guild.id
A snowflake id.
bot.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_MEMBER10007 · HTTP 404
That person is not a member of the server.

Gateway events it causes

Discord

Only on tether: Discord has no such route.

On Discord you kick the bot like any member.

Add Bot to Server

POST/guilds/{guild.id}/botsPeople onlytether only

Add a bot by its id, without the add page. Same rules as the add link.

The bot joins with a managed role named after it. The role holds permissions, or else the bot's own default_permissions, never more than you hold yourself: bits you lack are left out. A private bot can only be added by its maker; a public one by anyone who manages the server. A connected bot receives GUILD_CREATE straight away. Answers the new member (201), or 200 if the bot was already there.

Permissions needed

MANAGE_GUILDbit 32
Manage server

Path parameters

guild.id
A snowflake id.

Body

application/json

bot_idstringrequired
The bot's id.
permissionsstring
The managed role's permissions (a decimal bitfield); the bot's default when left out.

Example request

{
  "bot_id": "107441200000000300"
}

Response

201 APIGuildMember

{
  "user": {
    "id": "107441200000000300",
    "username": "groove",
    "discriminator": "0",
    "global_name": null,
    "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
    "banner": null,
    "accent_color": null,
    "bot": true,
    "public_flags": 0
  },
  "nick": null,
  "roles": [
    "107441200000000301"
  ],
  "avatar": null,
  "joined_at": "2026-10-02T09:30:00.000Z",
  "deaf": false,
  "mute": false,
  "communication_disabled_until": null,
  "pending": false,
  "flags": 0
}

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.
BOT_NOT_PUBLIC90220 · HTTP 403
The bot is private and you are not its maker.
UNKNOWN_USER10013 · HTTP 404
No such bot.
MAX_ROLES30005 · HTTP 400
The server has too many roles to add the managed role.

Rate limits

botAddPerUserbucket 70d09ffd
30 per 3600 seconds, counted per user. See Rate limits.

Gateway events it causes

Discord

Only on tether: Discord has no such route.

Discord adds bots only through its authorization link; the link works here too.