interactions
Last updated 4 October 2026
Interactions are how people talk to your bot: slash commands, buttons and select menus. Each one arrives as an event with a one-time token for your reply.
Slash commands
Register your commands once. They show up when people type / in a server where your bot is.
PUT https://paw-talk.xyz/api/v1/applications/@me/commands [ { "name": "ping", "description": "Check the bot is alive" }, { "name": "roll", "description": "Roll a dice" } ]
Replying
When someone uses a command, your bot gets INTERACTION_CREATE with an id and a token.
POST /interactions/{id}/reply { "token": "...", "content": "Pong!" }
POST /interactions/{id}/reply { "token": "...", "content": "Only you can see this", "ephemeral": true }
Buttons & menus
Add components to a reply or to any bot message.
{ "token": "...", "content": "Pick one:", "components": [
{ "type": "buttons", "buttons": [
{ "custom_id": "yes", "label": "Yes", "style": "success" },
{ "style": "link", "label": "Docs", "url": "https://example.com" }
]},
{ "type": "select", "custom_id": "pet", "options": [
{ "label": "Fox", "value": "fox" }, { "label": "Cat", "value": "cat" }
]}
]}| Button style | Looks like |
|---|---|
primary | Main action (accent colour) |
secondary | Grey |
success | Green |
danger | Red |
link | Opens a url - no click event |
Handling clicks
A click arrives as INTERACTION_CREATE with type: "component", the custom_id, and for menus the chosen values. Answer it, or edit the message the button was on:
POST /interactions/{id}/components { "token": "...", "content": "Thanks for voting!", "components": [] }
Time limits
/interactions/{id}/followup.