Tovább a tartalomhoz

Discord Bot Token

Ez a tartalom még nem érhető el a jelenlegi nyelven.


Section titled “Why does Cookie API need my Bot’s Token?”

Cookie API needs your bot’s token for tasks such as retrieving messages from a specified channel via the Transcript Endpoint. To accomplish this, temporary access to your Discord bot is necessary, as the process involves interacting directly with Discord’s servers. Additionally, the token is used to authenticate requests, allowing us to gather relevant details like channel names, server names, and other essential information. Rest assured, this access is strictly temporary and used solely for these specific functions.

How can I include my Bot Token in my requests?

Section titled “How can I include my Bot Token in my requests?”

For endpoints that interact with the Discord API, you can provide your bot token in three ways:

Provide your bot token directly in the request body:

{
"bot_token": "your_actual_token_here"
}

Register your bot token on the dashboard, then use a placeholder variable in your requests:

{
"bot_token": "{BOT_TOKEN}"
}

Supported placeholders:

  • {BOT_TOKEN} or {TOKEN_SECRET} - uses your default bot
  • {BOT:<bot_id>} - uses a specific bot by ID (e.g., {BOT:123456789})

Setting a default bot: Click the default button next to any bot on the dashboard to automatically use it when calling endpoints with {BOT_TOKEN} or {TOKEN_SECRET}.

Replace the bot_token parameter with bot_id to select a specific bot:

{
"bot_id": "123456789"
}