Skip to content

Add a Discord Channel

What You Need Before You Start

RequirementPurpose
Discord accountUsed to create a server, channel, and developer application.
A Discord serverThe bot must join a server before it can access a channel.
A text channelImages and files will be sent to this channel.
Discord Developer PortalUsed to create an application, create a bot, and get the Bot Token.

Where to Add It

  1. Open System Settings.
  2. Go to Upload Settings.
  3. Click Add Channel in the upper-right corner.
  4. Select Discord.

Field Reference

FieldWhat It DoesRequired
Channel nameA friendly name for this channel, such as "Discord Primary".Required
Bot TokenThe Discord bot token.Required
Channel IDThe ID of the target text channel.Required
Proxy URL (optional)Use this only if Discord CDN access is unstable. Enter the full URL, including https://.Optional

Setup Steps

1. Create a Discord Server and Text Channel

  1. Open Discord.
  2. Create a new server, or use an existing server you own.
  3. Create a text channel in that server.

Create a server

2. Create a Bot in the Discord Developer Portal

  1. Open the Discord Developer Portal: https://discord.com/developers/applications
  2. Click New Application.
  3. Enter an application name and create it.
  4. Open the Bot page from the left sidebar.
  5. Generate or reset the token on the Bot page.
  6. Save the token.

This token is the Bot Token you need to enter in ImgBed.

View the bot token

  1. Open the OAuth2 page from the left sidebar.
  2. Under scopes, select bot.
  3. In the permission area, enable these permissions:
PermissionRequired
View ChannelsYes
Send MessagesYes
Attach FilesYes
Read Message HistoryYes
  1. At the bottom of the page, confirm that the integration type is Guild Install.
  2. Copy the generated URL.
  3. Open that URL in your browser.
  4. Select the target server.
  5. Complete the authorization flow.

Select bot permissions in OAuth2

Invite the bot to the channel

4. Enable Developer Mode and Copy the Channel ID

  1. Click the gear icon next to your avatar in the lower-left corner of Discord.
  2. Open Advanced from the left sidebar.
  3. Enable Developer Mode.
  4. Return to the target text channel.
  5. Right-click the channel name.
  6. Click Copy Channel ID.

The copied number is the Channel ID required by ImgBed.

Enable developer mode

Copy the channel ID

5. Fill in the Discord Channel in ImgBed

Return to the channel configuration dialog and fill in the fields as follows:

UI FieldValue
Channel nameA custom channel name, for example DiscordPrimary.
Bot TokenThe token saved from the Bot page in the Discord Developer Portal.
Channel IDThe channel ID you copied from Discord.
Proxy URL (optional)Only if needed, for example https://your-proxy.example.com.

Click Save when you are done.

Add the Discord channel configuration

How to Verify It

CheckHow to Verify
Channel card appearsAfter saving, the Upload Settings page should show a Discord channel card.
Channel can be enabledThe Active switch should stay on.
Configuration is savedThe detail view should show that the Bot Token and Channel ID were saved.
Upload worksUpload a test image and confirm that it appears in the target Discord text channel.

Quick Checklist

text
Create a Discord server
-> Create a text channel
-> Create a bot in the Discord Developer Portal
-> Save the Bot Token from the Bot page
-> In OAuth2, select bot, View Channels, Send Messages, Attach Files, and Read Message History
-> Copy the generated URL and authorize the bot for the target server
-> Make sure the target text channel grants the same permissions
-> Enable Developer Mode
-> Right-click the target text channel and copy the Channel ID
-> Enter the Bot Token and Channel ID in ImgBed
-> Save and upload a test image

References

  1. Discord Developers Getting Started: https://docs.discord.com/developers/quick-start/getting-started
  2. Discord Help - Where can I find my User/Server/Message ID: https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID

Released as user documentation for CloudFlare ImgBed.