Servers
Orbit calls them servers. The API calls them guilds.
User
| Field | Type | Notes |
|---|---|---|
id | string | |
username | string | Unique, lowercase |
display_name | string | The name people see |
avatar | string or null | |
bot | boolean | true for bots |
Server
| Field | Type | Notes |
|---|---|---|
id | string | |
name | string | |
owner_id | string | |
default_permissions | number | What every member can do |
permissions | number | What your bot can do here |
timed_out_until | number | Only there while your bot is timed out |
created_at | number | |
description | string | Up to 300 characters, may be empty |
icon | string or null | |
banner | string or null | |
system_channel_id | string or null | Where new members are welcomed |
counts | object | members, online and in_voice, only in GET /guilds |
Channel
| Field | Type | Notes |
|---|---|---|
id | string | |
guild_id | string | |
kind | string | text, announcement, voice or category |
name | string | |
topic | string | |
position | number | |
parent_id | string or null | The category it's in |
slowmode_seconds | number | 0 when off |
user_limit | number | Voice channels only |
permissions | number | What your bot can do here |
created_at | number |
Member
| Field | Type | Notes |
|---|---|---|
user | User | |
presence | string | online, idle, dnd or offline |
activity | object | What they're doing, if they share it |
joined_at | number | |
role_ids | array | |
is_owner | boolean | |
mute | boolean | Muted in voice by a moderator |
timed_out_until | number | Only there while they're timed out |
Roles have id, guild_id, name, permissions, position, color (0xRRGGBB) and hoist.
Endpoints
GET/users/@me
Your bot.
GET/users/{user_id}
Someone's profile: user, bio, created_at, presence and a bit more.
GET/guilds
The servers your bot is in.
GET/guilds/{guild_id}
GET/guilds/{guild_id}/channels
The channels your bot can see.
GET/guilds/{guild_id}/roles
GET/guilds/{guild_id}/members
DELETE/guilds/{guild_id}/members/@me
Leaves the server. Returns 204.
Channels
POST/guilds/{guild_id}/channels
{ "name": "help", "kind": "text", "topic": "Ask here", "parent_id": null, "private": false }Only name is needed. kind is text (the default), announcement, voice or category. A private channel is hidden from everyone, your bot included, unless a role or override lets them see it. Returns 201 with the channel.
PATCH/channels/{channel_id}
Change any of name, topic, slowmode_seconds and user_limit.
DELETE/channels/{channel_id}
PUT/guilds/{guild_id}/channels/order
[{ "id": "…", "position": 0, "parent_id": null }]All of these need MANAGE_CHANNELS.
Roles
PUT/guilds/{guild_id}/members/{user_id}/roles/{role_id}
DELETE/guilds/{guild_id}/members/{user_id}/roles/{role_id}
Gives a member a role, or takes it away. Needs MANAGE_ROLES, and the role has to be below your bot's highest role. Returns 204.
Timeouts
PUT/guilds/{guild_id}/members/{user_id}/timeout
{ "seconds": 600, "reason": "Spam" }A timed-out member can only read. seconds is 60 to 2419200 (28 days), and reason is optional.
DELETE/guilds/{guild_id}/members/{user_id}/timeout
Ends it early. Both need MODERATE_MEMBERS and only work on members below your bot. They return 204.
Kicks and bans
DELETE/guilds/{guild_id}/members/{user_id}
Kicks a member. Needs KICK_MEMBERS.
GET/guilds/{guild_id}/bans
PUT/guilds/{guild_id}/bans/{user_id}
DELETE/guilds/{guild_id}/bans/{user_id}
Lists bans, bans someone, or lifts a ban. Needs BAN_MEMBERS. A ban also removes the member and keeps them out.
Kicks, bans and timeouts only work on members below your bot (see role order). Both take an optional {"reason": "..."} of up to 200 characters and return 204.