//Discord Bot Token

Discord Bot Token

Setup your custom Discord bot for enhanced control

Paid Feature
Discord
Custom Bot

Learn how to create your own custom Discord bot and integrate it with Flake for enhanced control, branding, and dedicated resources. This feature is available exclusively for paid license holders.

Overview

What is a Discord Bot Token?

A Discord bot token is a unique authentication key that allows Flake to interact with your Discord server on behalf of a bot. Think of it as a secure password that gives Flake permission to send messages, manage channels, and perform other actions in your Discord server.

Discord Developer Portal

Create bot application

Bot Token
Flake Platform

Connect with token

Secure Authentication

Your bot token provides secure authentication with Discord's API

Full API Access

Token grants access to all Discord features your bot needs

Easy Integration

Simply paste your token into Flake to connect your Discord server

Permission Control

Configure exactly which permissions your bot requires

Server Management

Manage multiple Discord servers with individual bot tokens

Real-time Updates

Instant synchronization between Discord and Flake platform

Step-by-Step Setup

  • Go to https://discord.com/developers/applications
  • Log in with your Discord account
  • This is where you'll create and manage your bot applications

Ready to connect?

Once you have your bot token, head to your Flake dashboard to add your Discord server.

Required Permissions

Bot Permissions Explained

Understanding what each permission allows your bot to do

Send Messages
Required

Required for the bot to send messages in channels

Read Message History
Required

Allows the bot to read previous messages for context

Manage Messages
Optional

Needed for moderation features like deleting messages

Embed Links
Required

Allows the bot to send rich embed messages

Attach Files
Optional

Required for sending images and file attachments

Use Slash Commands
Required

Enables modern Discord slash commands

Permission Best Practices

  • • Only grant permissions your bot actually needs
  • • You can always add more permissions later if needed
  • • Server admins can override bot permissions on a per-channel basis
  • • Some features won't work without the required permissions

Security Best Practices

Keep It Secret

Never share your bot token publicly or in screenshots

Regenerate If Compromised

If your token is exposed, immediately reset it in the Developer Portal

Use Environment Variables

Store tokens in environment variables, not hardcoded in files

Limit Permissions

Only grant the minimum permissions your bot actually needs

⚠️ Critical Security Warning

Your bot token is like a password that gives full access to your bot. If someone gets your token, they can control your bot and potentially cause damage to your server.

BAD: Sharing token in screenshots, Discord messages, or public repositories
GOOD: Storing token securely in Flake dashboard only

Troubleshooting

I can't see the bot token

Click "Reset Token" to generate a new token. The old token will be invalidated, so make sure to update it in all places where it's used.

Bot isn't responding in my server

Check that the bot has the necessary permissions in your server and that you've enabled the required Gateway Intents in the Developer Portal.

Getting "Unauthorized" errors

This usually means your bot token is incorrect or has been reset. Double-check that you've copied the token correctly and that it hasn't been regenerated.

Bot appears offline

The bot will appear offline until Flake connects to it. Make sure you've added the token to your Flake dashboard and that the connection is successful.

Can't add bot to server

Make sure you have "Manage Server" permissions in the Discord server and that the invite link includes the necessary bot permissions.

Still having issues?

If you're experiencing problems not covered here, our support team is ready to help.