tether developers
Contents

API reference

Members and bans

Who is in a server, and who is not allowed.

List Guild Members

GET/guilds/{guild.id}/membersPeople and bots

The members of a server, by user id, a page at a time.

tether sends every member in GUILD_CREATE, so libraries that chunk or fetch the whole list already have it. Page with after (the last user id you saw).

Path parameters

guild.id
A snowflake id.

Query string

limitinteger · 1 to 1000 · default 1
1 to 1000. Discord's default is 1, and so is tether's.
afterstring
Members with a higher user id.

Response

200 a list of APIGuildMember

[
  {
    "user": {
      "id": "107441200000000200",
      "username": "josh",
      "discriminator": "0",
      "global_name": "Josh",
      "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
      "banner": null,
      "accent_color": null,
      "bot": false,
      "public_flags": 0
    },
    "nick": null,
    "roles": [
      "107441200000000400"
    ],
    "avatar": null,
    "joined_at": "2026-10-01T12:00: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.

Discord

The same as Discord’s List Guild Members.

Get Guild Member

GET/guilds/{guild.id}/members/{user.id}People and bots

One member. @me is you.

Path parameters

guild.id
A snowflake id.
user.id
A user id, or @me.

Response

200 APIGuildMember

{
  "user": {
    "id": "107441200000000200",
    "username": "josh",
    "discriminator": "0",
    "global_name": "Josh",
    "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
    "banner": null,
    "accent_color": null,
    "bot": false,
    "public_flags": 0
  },
  "nick": null,
  "roles": [
    "107441200000000400"
  ],
  "avatar": null,
  "joined_at": "2026-10-01T12:00: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.
UNKNOWN_MEMBER10007 · HTTP 404
That person is not a member of the server.

Discord

The same as Discord’s Get Guild Member.

Modify Guild Member

PATCH/guilds/{guild.id}/members/{user.id}People and bots

Change a member's nickname or roles, time them out, or moderate their voice. @me changes your own nickname.

Each field needs its own permission: nick Manage Nicknames (Change Nickname for yourself), roles Manage Roles, mute Mute Members, deaf Deafen Members, channel_id Move Members (null disconnects), communication_disabled_until Moderate Members. Needs the permission and a role above the target's highest role (the owner is above everyone). A bot's managed role cannot be given or taken (50028). With @me only nick is read.

Path parameters

guild.id
A snowflake id.
user.id
A user id, or @me.

Body

application/json

nickstring | null · max 32 characters
The nickname; null or an empty string clears it.
rolesarray of string · max 250 items
The complete list of role ids (never @everyone).
communication_disabled_untilstring | null
End of a timeout (ISO 8601, at most 28 days away), or null to end one.
muteboolean
Server mute in voice.
deafboolean
Server deafen in voice.
channel_idstring | null
Move to this voice channel, or null to disconnect.

Example request

{
  "nick": "Groove 🎵"
}

Response

200 APIGuildMember

{
  "user": {
    "id": "107441200000000200",
    "username": "josh",
    "discriminator": "0",
    "global_name": "Josh",
    "avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
    "banner": null,
    "accent_color": null,
    "bot": false,
    "public_flags": 0
  },
  "nick": null,
  "roles": [
    "107441200000000400"
  ],
  "avatar": null,
  "joined_at": "2026-10-01T12:00: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.
UNKNOWN_MEMBER10007 · HTTP 404
That person is not a member of the server.
MISSING_PERMISSIONS50013 · HTTP 403
Needs the permission and a role above the target's highest role (the owner is above everyone).
INVALID_ROLE50028 · HTTP 400
The list gives someone a bot's managed role, or takes it from the bot.
TARGET_USER_NOT_CONNECTED_TO_VOICE40032 · HTTP 400
You moved or disconnected someone who is not in voice.

Gateway events it causes

Discord

Like Discord’s Modify Guild Member, with differences.

No flags; no per-server avatar.

Add Guild Member Role

PUT/guilds/{guild.id}/members/{user.id}/roles/{role.id}People and bots

Give someone a role.

Needs Manage Roles and the role below your highest role. Needs the permission and a role above the target's highest role (the owner is above everyone).

Permissions needed

MANAGE_ROLESbit 268435456
Manage roles

Path parameters

guild.id
A snowflake id.
user.id
The person's id.
role.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_MEMBER10007 · HTTP 404
That person is not a member of the server.
UNKNOWN_ROLE10011 · HTTP 404
There is no such role in the server.
MISSING_PERMISSIONS50013 · HTTP 403
You lack a permission the route needs.
INVALID_ROLE50028 · HTTP 400
The role is a bot's managed role.

Gateway events it causes

Discord

The same as Discord’s Add Guild Member Role.

Remove Guild Member Role

DELETE/guilds/{guild.id}/members/{user.id}/roles/{role.id}People and bots

Take a role from someone.

Permissions needed

MANAGE_ROLESbit 268435456
Manage roles

Path parameters

guild.id
A snowflake id.
user.id
The person's id.
role.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_MEMBER10007 · HTTP 404
That person is not a member of the server.
UNKNOWN_ROLE10011 · HTTP 404
There is no such role in the server.
MISSING_PERMISSIONS50013 · HTTP 403
You lack a permission the route needs.
INVALID_ROLE50028 · HTTP 400
The role is a bot's managed role.

Gateway events it causes

Discord

The same as Discord’s Remove Guild Member Role.

Remove Guild Member

DELETE/guilds/{guild.id}/members/{user.id}People and bots

Kick a member.

Needs the permission and a role above the target's highest role (the owner is above everyone).

Permissions needed

KICK_MEMBERSbit 2
Kick members

Path parameters

guild.id
A snowflake id.
user.id
The person's id.

Response

204 no body

Errors

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.
MISSING_PERMISSIONS50013 · HTTP 403
You lack a permission the route needs.

Gateway events it causes

Discord

The same as Discord’s Remove Guild Member.

Get Guild Bans

GET/guilds/{guild.id}/bansPeople and bots

The bans of a server.

Permissions needed

BAN_MEMBERSbit 4
Ban members

Path parameters

guild.id
A snowflake id.

Query string

limitinteger · 1 to 1000 · default 1000
beforestring
afterstring

Response

200 a list of APIBan

[
  {
    "reason": "Spam",
    "user": {
      "id": "107441200000000201",
      "username": "spammer",
      "discriminator": "0",
      "global_name": null,
      "avatar": null,
      "banner": null,
      "accent_color": null,
      "bot": false,
      "public_flags": 0
    },
    "expires_at": null,
    "case_number": 7
  }
]

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.

Discord

Like Discord’s Get Guild Bans, with differences.

A ban also has expires_at (timed bans) and case_number.

Get Guild Ban

GET/guilds/{guild.id}/bans/{user.id}People and bots

One ban.

Permissions needed

BAN_MEMBERSbit 4
Ban members

Path parameters

guild.id
A snowflake id.
user.id
The person's id.

Response

200 APIBan

{
  "reason": "Spam",
  "user": {
    "id": "107441200000000201",
    "username": "spammer",
    "discriminator": "0",
    "global_name": null,
    "avatar": null,
    "banner": null,
    "accent_color": null,
    "bot": false,
    "public_flags": 0
  },
  "expires_at": null,
  "case_number": 7
}

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_BAN10026 · HTTP 404
That person is not banned.

Discord

The same as Discord’s Get Guild Ban.

Create Guild Ban

PUT/guilds/{guild.id}/bans/{user.id}People and bots

Ban someone, and optionally delete what they wrote in the last seven days.

Needs the permission and a role above the target's highest role (the owner is above everyone). tether adds a reason (Discord takes it in a header), whether the person may appeal once, and timed bans.

Permissions needed

BAN_MEMBERSbit 4
Ban members

Path parameters

guild.id
A snowflake id.
user.id
The person's id.

Body

application/json

delete_message_secondsinteger · 0 to 604800 · default 0
Delete their messages from the last N seconds (0 to 604800).
reasonstring | null · max 512 characters
Kept with the ban and shown in the audit log.
can_appealboolean · default true
Whether the person may send one appeal (default true).
duration_secondsinteger | null · 60 to 31536000
A timed ban lifts itself after this long; null or absent is forever.

Example request

{
  "reason": "Spam",
  "delete_message_seconds": 3600
}

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_USER10013 · HTTP 404
No such person.
INVALID_FORM_BODY50035 · HTTP 400
A field is missing, the wrong type or outside its limits.

Gateway events it causes

Discord

Like Discord’s Create Guild Ban, with differences.

delete_message_days is not read; delete_message_seconds is. tether adds reason, can_appeal and duration_seconds to the body.

Remove Guild Ban

DELETE/guilds/{guild.id}/bans/{user.id}People and bots

Lift a ban.

Permissions needed

BAN_MEMBERSbit 4
Ban members

Path parameters

guild.id
A snowflake id.
user.id
The person's 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_BAN10026 · HTTP 404
That person is not banned.

Gateway events it causes

Discord

The same as Discord’s Remove Guild Ban.

Get Member Invites

GET/guilds/{guild.id}/member-invitesPeople and botstether only

Which invite each member joined with.

For people who can manage the server. Members who joined without an invite (the owner, bots, anyone before tracking began) are not listed.

Path parameters

guild.id
A snowflake id.

Response

200 a list of APIMemberInvite

[
  {
    "user_id": "107441200000000200",
    "code": "aB3dE5gH",
    "inviter_id": "107441200000000201"
  }
]

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.

Discord

Only on tether: Discord has no such route.

Invite tracking is tether's.