Getting started
Lamma for developers
Build apps, bots and webhooks for Lamma servers.
Lamma lets you build apps: bots that join servers, answer slash commands and react to what happens there. It also has webhooks, secret links that post into a channel without signing in. Both use a small, versioned API that is close to Discord's on purpose, so most bot code feels familiar.
#What you can build
- Bots that read and send messages, add reactions and keep track of a server's channels, roles and members. See Apps and installs.
- Slash commands that people pick by typing
/in the message box. See Slash commands. - Mod-log and welcome bots that hear about joins, leaves, bans and audit log entries. See Gateway events.
- Webhooks that post updates from your own service into a channel. See Webhooks.
- Link cards that design how your website's links look when someone shares them. See Link cards.
#How it fits together
| Piece | What it does | Address |
|---|---|---|
| REST API | Read servers, channels and messages; send, edit and react | https://lammapp.sa/v1 |
| Gateway | A WebSocket that pushes events to your bot as they happen | wss://lammapp.sa/v1/gateway |
| Webhooks | Post into one channel with a secret URL | https://lammapp.sa/api/webhooks/{id}/{secret} |
| SDKs | lamma.js and lamma.py, shaped like discord.js and discord.py |
Every app works through its own bot account, and Lamma's permission checks apply to it like to anyone else. An app only joins a server when someone who manages that server approves exactly what it asks for.
#Privacy comes first
Some things are never offered to apps, because Lamma keeps them between people:
- Direct messages, presence (online status and activity) and typing.
- Servers the app isn't installed in, and channels its bot can't see.
- Message text, unless the app is approved for it or the message mentions the bot.
Read the developer rules before you ship.
#Next steps
- Build your first bot in a few minutes.
- Coming from Discord? Follow Migrate from discord.js or Migrate from discord.py.
- Using an AI assistant? Every page has a Copy page menu, and llms.txt lists all pages for AI tools.