All docs

Discord API setup

DungeonJam streams audio into a Discord voice channel using a bot account that you control. Follow these steps to create the bot and connect it to the app.

  1. 1

    Open Discord Developer Portal

    Navigate to the Discord Developer Portal and sign in with your Discord account.

  2. 2

    Create a new application

    Click the New Application button in the top right corner.

  3. 3

    Name your bot

    Fill in a default name for your new Discord bot and confirm.

  4. 4

    Open OAuth2 settings

    Navigate to OAuth2 settings page under the Overview tab on the left side panel.

  5. 5

    Select bot scope

    Find the OAuth2 URL Generator section and check the bot option.

  6. 6

    Configure bot permissions

    Under Bot permissions, select Connect and Speak permissions in the Voice permissions column.

  7. 7

    Generate invitation link

    Scroll down, copy the Generated URL, and open it in a new browser tab.

  8. 8

    Authorize bot on your server

    Select the Discord server where the bot should be added and authorize it.

  9. 9

    Return to Developer Portal

    Head back to the Discord Developer Portal.

  10. 10

    Open Bot settings

    Navigate to Bot settings page under the Overview tab.

  11. 11

    Reset Bot Token

    Find the Token section and click Reset token.

  12. 12

    Copy Bot Token

    Copy the generated Bot Token.

  13. 13

    Open DungeonJam settings

    Open DungeonJam, navigate to the Settings page.

  14. 14

    Add Discord API key

    Click Create token, enter a label, and paste the token into the Discord API key field.

  15. 15

    Save and connect

    Click Save, and toggle the connection switch to connect the bot.

  16. 16

    Select destination voice channel

    Once connected, click on the Destination control in the left panel (currently showing Playing locally) and select the voice channel where the bot should join.

  17. 17

    Start streaming!

    You are ready to stream audio directly into Discord!

Security note: Never share your bot token or commit it to source control. Treat it like a password — anyone who has it can act as your bot.