# Discord Integration
# Create a bot account
- Make sure you're logged on to the Discord website (opens new window).
- Navigate to the application page (opens new window).
- Click on the "New Application" button.
- Give the application a name (for example "Kitsu") and click "Create".
- Create a Bot User by navigating to the “Bot” tab and clicking “Add Bot”.
- Click “Yes, do it!” to continue.
It's possible to add an icon for the bot by clicking on the icon next to "Username". It will be the same icon used when the bot chat.
Make sure that Public Bot is ticked if you want others to invite your bot.
- Make sure that Server Members Intent is ticked to allow the bot to see other members of a server.
Copy the token using the "Copy" button.
Copy the token in "Settings" of Kitsu and in the text field "Discord token (optional)" and after click on "Save settings".
# Inviting your bot
So you’ve made a Bot User but it’s not actually in any server.
To add the bot in a server, follow these steps:
- Make sure you're logged on to the Discord website (opens new window).
- Navigate to the application page (opens new window).
- Click on your bot’s page.
- Go to the “OAuth2” tab and after "URL Generator".
- In "Scopes", tick only "bot".
- In "Bot permissions" tick only "Send Messages".
- Now the resulting URL can be used to add your bot to a server. Copy and paste the URL into your browser, choose a server to invite the bot to, and click “Authorize”.
Note: The person adding the bot needs “Manage Server” permissions to do so.
Note: The users who wants to have notifications enabled have to be in a same server than the bot.
# Enable notifications
Each user can set in their profiles the notification push to Discord. They have to switch the "Discord notifications enabled" field to "Yes" and enter their "Discord username" (they're in the form username#number).
You're done!