Orbit Developers

Servers

Orbit calls them servers. The API calls them guilds.

User

FieldTypeNotes
idstring
usernamestringUnique, lowercase
display_namestringThe name people see
avatarstring or null
botbooleantrue for bots

Server

FieldTypeNotes
idstring
namestring
owner_idstring
default_permissionsnumberWhat every member can do
permissionsnumberWhat your bot can do here
timed_out_untilnumberOnly there while your bot is timed out
created_atnumber
descriptionstringUp to 300 characters, may be empty
iconstring or null
bannerstring or null
system_channel_idstring or nullWhere new members are welcomed
countsobjectmembers, online and in_voice, only in GET /guilds

Channel

FieldTypeNotes
idstring
guild_idstring
kindstringtext, announcement, voice or category
namestring
topicstring
positionnumber
parent_idstring or nullThe category it's in
slowmode_secondsnumber0 when off
user_limitnumberVoice channels only
permissionsnumberWhat your bot can do here
created_atnumber

Member

FieldTypeNotes
userUser
presencestringonline, idle, dnd or offline
activityobjectWhat they're doing, if they share it
joined_atnumber
role_idsarray
is_ownerboolean
mutebooleanMuted in voice by a moderator
timed_out_untilnumberOnly 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.