Publish Games to Discord
Publish your Codetoy games to Discord for you and your friends to play. Any game made in Codetoy will automatically work in Discord without any changes needed on your end.
NOTE: At the moment Codetoy only supports single player games. Multiplayer support is planned with a broadcast(playerId, payloadBytes) style API.
At the moment multiplayer support is still in development. Join the Codetoy discord to be notified of when it releases.
Pre-requisite
Make something awesome with Codetoy and go to the build's tab. Make a build and get the build URL. This URL is for testing purposes and points to a specific build of your game. If you want people to use the latest version of your game you will need to manually get the latest build URL and paste it into Discord.
Step 1
You need to enable Developer Mode for your Discord account. To enable Developer Mode:
- Go to your User Settings in your Discord client.
- Go to the "Advanced" tab and enable Developer Mode.
Step 2
Head over to discord and create a new app.
In the Activities section of your new app go to URL Mappings and paste your Codetoy build URL into the Target URL under "Root Mappings" (eg. flappy-uOzNQo.codetoy.dev/discord).
Now in the Activities section, go to Settings, then Enable Activities.
Step 3
Restart discord.
Open the discord activities popup in a DM or Discord server with less than 25 people and search for your game, it should show up as long as you have developer mode enabled.
Click "Launch". That's it!
Check the Discord Activities Documentation for how to add your friends as test users, set a logo, or publish your app publicly to activities.