Example of a Discord Activity built with the fastest 3D engine for the web.
Retrieve a "Discord Client ID" and "Discord Client Secret" via the Discord Developer Portal, by creating a new app.
- Copy the
example.env
as.env
- Replace the
DISCORD_CLIENT_ID
andDISCORD_CLIENT_SECRET
in the.env
file with your app's. npm i
to install package dependencies
- Run via
cd server && npm run dev
andcd server && npm run tunnel
- Update URL mapping of your Discord app to map
/
to the URL provided by the cloudflare tunnel. - Open
DiscordActivityExample.wlp
in Wonderland Editor. - Enable developer mode on your Discord client.
The npm server run via npm run dev
will reverse proxy Wonderland Editor's webserver and websockets
through the cloudflare tunnel.