Send notifications to Discord
This guide explains how to send the notifications of Casdoor to a Discord channel through a bot.
Learning outcomes
- Get a bot token and a channel ID from Discord.
- Add Discord as a notification provider in Casdoor.
What you need
- A Discord server on which you may add a bot
- Administrator access to the Casdoor admin console
Prepare Discord
-
In the Discord Developer Portal, create an application, open the Bot tab, and copy the token of the bot.

-
Invite the bot to your server.
-
In Discord, right-click the channel for the messages and select Copy Channel ID.

Add the provider in Casdoor
-
In the Casdoor admin console, go to Identity > Providers and add a provider.
-
Set Category to
Notificationand Type toDiscord. -
Fill in the fields:
Касдор Discord Секретний ключ Bot token Chat ID Channel ID Зміст (необов'язково) 
-
Click Send Testing Notification, and save the provider.