Bots

Disband bots are self-hosted integrations. You run the code, Disband relays messages to and from it. Disband never hosts or executes your bot's code.

How it works

  1. Create a bot in Settings → Bots (or the Developers portal) and pick the scopes it needs. You get a token back — it is shown once.
  2. Generate an invite link — targeted to a specific server, or a general invite that anyone can use (the recipient picks the server).
  3. The server owner (or a channel manager) opens the link and approves. The bot becomes a member of the server.
  4. You run one of the client libraries somewhere (a server, a cloud function, your laptop) and it connects to Disband with the token.

Scopes

A bot's reach in a server is the intersection of the scopes you requested when creating it and the scopes the owner approved for that specific server:

Scope Description
messages.read Receive message events on the gateway and read messages/channels.
messages.write Send and reply to messages in channels the bot can see.
messages.delete Delete messages the bot can see.
messages.react Add and remove reactions on messages.
members.read List the members of servers the bot has joined.
channels.read List channels and categories.
channels.manage Create, rename, and delete channels — also needs the manage_channels role in the server.
webhooks.manage Create, edit, and delete webhooks.

Token authentication

Every API call is authenticated with the bot token:

Authorization: Bot <token>

Bot tokens are hashed at rest — the raw token is never stored or retrievable. If it leaks (or you no longer need the bot), revoke it in Settings → Bots; revocation kills the token immediately.

Customizing your bot

Bots can be customized from the Developers portal (/developers/applications):

When creating an invite, enable General invite to generate a link that anyone can use. The recipient signs in to Disband, picks a space they manage, and approves the bot there. Great for distributing bots publicly or in documentation.

Targeted invites (the default) lock the invite to a specific server and require the bot owner to be a member of that server.

Limits & safety

Install the clients

# JavaScript / TypeScript
npm install @disband/bot

# Python
pip install disband-bot

No zip downloads — install directly from npm and PyPI.

Pick a path