From 53ac0688a2857b4233bf148fb537dd8ec5766c6a Mon Sep 17 00:00:00 2001 From: Ben McAvoy Date: Tue, 19 Mar 2024 12:58:31 +0000 Subject: [PATCH] Update locations from where you get fields for `.env` --- Creating-Discord-Activities-with-raylib.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Creating-Discord-Activities-with-raylib.md b/Creating-Discord-Activities-with-raylib.md index 5eccc6a..d512652 100644 --- a/Creating-Discord-Activities-with-raylib.md +++ b/Creating-Discord-Activities-with-raylib.md @@ -9,7 +9,7 @@ Official Discord documentation on the process can be found [here](https://discor ## Discord setup -First create a discord application on [Discord](https://discord.com/developers/applications) and get it's `Application ID` and `Bot token`. These will be important later so put them somewhere safe. +First create a discord application on [Discord](https://discord.com/developers/applications). ## Template setup @@ -21,7 +21,10 @@ cd raylib-activities cp example.env .env ``` -You will notice some fields in your `.env` file that has been newly created. You can fill these in with your `Application ID` for `CLIENT_ID` and your bot token for `CLIENT_SECRET`. +You will notice some fields in your `.env` file that has been newly created. We will now fill these out. + +To get `VITE_DISCORD_CLIENT_ID` from `OAuth2 > CLIENT ID > Copy` +To get `DISCORD_CLIENT_SECRET` from `OAuth2 > CLIENT SECRET > Reset Secret` You can now enter the `client` directory and set it up like so: