Update locations from where you get fields for `.env`

master
Ben McAvoy 1 year ago
parent
commit
53ac0688a2
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      Creating-Discord-Activities-with-raylib.md

+ 5
- 2
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:

Loading…
Cancel
Save