Appearance
Discord
Send messages to Discord users and channels through Sendivent.
Setup
Connect a Discord bot to enable Discord notifications.
- Go to the Discord Developer Portal
- Click New Application, give it a name
- Go to Bot in the sidebar, click Reset Token to generate a bot token
- Copy the token
- Under Privileged Gateway Intents, enable Message Content Intent if you plan to receive messages
- Go to OAuth2 → URL Generator, select
botscope withSend Messagespermission - Use the generated URL to add the bot to your server
- Go to Channels → Discord in your Sendivent dashboard
- Paste the bot token and save
Sendivent verifies the token by calling the Discord API. If verification fails, regenerate the token in the Developer Portal.
Identifiers
Send to individual users (DMs) or channels:
| Type | Format | Example |
|---|---|---|
| User (DM) | Snowflake user ID | 80351110224678912 |
| Channel | Snowflake channel ID | 1045629063945326592 |
Both user IDs and channel IDs are 17-20 digit numeric strings.
Finding a user's Discord ID
- Open Discord Settings → Advanced → Developer Mode (enable it)
- Right-click a user → Copy User ID
Sending to channels
- Ensure the bot has been added to the server and has Send Messages permission in the target channel
- Right-click the channel → Copy Channel ID
- Use the channel ID as a broadcast target in your event configuration
Message format
Discord messages use Markdown formatting:
| Syntax | Result |
|---|---|
**bold** | bold |
*italic* | italic |
`code` | code |
[text](url) | clickable link |
> quote | block quote |
Maximum message length is 2,000 characters.
Troubleshooting
Cannot send messages to this user (50007)
The user has DMs disabled or has blocked the bot. They need to enable DMs in their server privacy settings, or the bot needs to share a server with the user.
No mutual guilds (50278)
The bot and user don't share any servers. Add the bot to a server where the user is a member.
Missing permissions (50001 / 50013)
The bot doesn't have permission to send messages in the target channel. Check the bot's role permissions in the server settings.
Unknown user or channel (10013 / 10003)
The user or channel ID is invalid. Verify you're using the correct Snowflake ID.
Invalid bot token
Regenerate the token in the Discord Developer Portal under your application's Bot settings.
See also
- Routing — Force Discord vs auto-routing
- Deliveries — Statuses and failure reasons
- Templates — Dynamic content with Handlebars