Skip to content

Commit f816285

Browse files
committed
""urlaub""
1 parent 402a51f commit f816285

File tree

7 files changed

+75
-4
lines changed

7 files changed

+75
-4
lines changed
5.63 KB
Loading
69.1 KB
Loading
15.5 KB
Loading
23.9 KB
Loading
29.9 KB
Loading

docs/linked-roles.md

Lines changed: 74 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,83 @@ this guide, but you can also click "Continue" there, since you are already here
6464

6565
Next, SCNX will prompt you to select which Discord credentials you want to use for Linked Roles. If you are using other
6666
SCNX products, like [Modmail](./modmail/intro) or the [Custom Bot](./custom-bot/custom-commands), you can select them
67-
from this list and [skip to step 3](#step-3). If you are not using any other product, please follow [these instructions](#step-2-app).
67+
from this list and [skip to step 3](#step-3). If you are not using any other product, please
68+
follow [these instructions](#step-2-app).
6869

6970
![SCNX prompting user to select credential source](@site/docs/assets/linked-roles/setup/select-credentials.png)
7071

7172
### Creating a Discord bot application {#step-2-app}
7273

73-
If you are not using the credentials of another product, you'll need to create a new app in your Discord Developer Dashboard.
74+
If you are not using the credentials of another product, you'll need to create a new app in your Discord Developer
75+
Dashboard.
7476

75-
## 3. Configuring Linked Roles {#step-3}
77+
To do so, visit the [Discord Developer Portal](https://discord.com/developers/applications). There, create a new
78+
application by clicking on "New Application" on the upper-right side of your Developer Portal. A modal will open. Enter
79+
the name of the application (you can change this later), read & accept
80+
the [Discord Developer Terms of Service](https://discord.com/developers/docs/policies-and-agreements/terms-of-service)
81+
and the [Discord Developer Policy](https://discord.com/developers/docs/policies-and-agreements/developer-policy) (these
82+
policies also apply to your use of the Discord API as part of SCNX) and create your bot by confirming with "Create".
83+
84+
![This screenshot shows how to create a new application in the Discord Developer Portal](@site/docs/assets/setup/custom-bot-1.png)
85+
86+
Next, open the "Bot"-Settings in the navigation bar on the left-hand side.
87+
There, you can configure the avatar and username.
88+
89+
The final step in the Developer Dashboard is to generate a token and copy it. To do so, open the "Bot" page of your
90+
application
91+
and click on "Reset token" (still on the Bot page) and confirm your request in the modal. You might get asked
92+
to enter a 2FA-Code for your Discord-Account.
93+
94+
Once done, please **copy the token of your bot and enter it on SCNX**.
95+
96+
![This screenshot shows how to generate and copy the Bot Secret](@site/docs/assets/setup/custom-bot-3.png)
97+
98+
Once done, SCNX will check your token and synchronize data with Discord. Once done, you can continue
99+
with [the next step](#step-3).
100+
101+
## 3. Save redirect URL {#step-3}
102+
103+
Once your credentials are checked and SCNX has synchronized some Linked-Role data with Discord, you'll need to open the
104+
Oauth2 page of your Discord Developer Portal. The easiest way to do so is to click on the link that is visible on SCNX.
105+
Alternatively, you can click on "Oauth2" tab in your developer dashboard.
106+
107+
![This screenshots shows how the user should click on "Open Oauth2 panel"](@site/docs/assets/linked-roles/setup/click-on-oauth2-page.png)
108+
109+
Once you've opened the Oauth2 page, you'll need to copy and paste the redirect URL from your SCNX Dashboard. Doing this
110+
is easy: Simply click on the URL shown in SCNX (this will copy the URL to your clipboard). If you are wondering, the
111+
redirect URL should look something like this:
112+
`https://linked-roles.scnx.app/api/b4e5e89a-1c92-11f0-b688-03c2706e348f/callback` (the middle part might change based on
113+
your server).
114+
115+
![This screenshots shows which value the user should copy from the dashboard](@site/docs/assets/linked-roles/setup/copy-redirect-url.png)
116+
117+
Go back to the "Oauth2"-Page
118+
in your Discord Developer Portal. There, scroll to "Redirects", click on "Add another" and paste the URL you just copied
119+
in the text field. Remember to save your changes!
120+
121+
![This screenshot shows where to paste the copied redirect URL](@site/docs/assets/linked-roles/setup/enter-redirect-url.webp)
122+
123+
## 4. Enter Client Secret {#step-4}
124+
125+
:::warning Confusion avoidance warning
126+
There's a big difference between your **Bot Token** and **Client Secret**. Please double-check which value you are
127+
entering to avoid issues later. For this step, you'll need the **Client Secret**, not the Bot Token.
128+
:::
129+
130+
Once you've entered and saved the Redirect URL, please stay on the "Oauth2 page". Below "Client Information", generate
131+
the Client secret, by clicking on "Reset Secret" below the "Client Secret" field. Discord might ask you to verify your
132+
account by entering a 2FA code. Once this is done, you'll be able to copy the Client-ID. Enter the copied value in your
133+
SCNX Dashboard and click on "Create Linked-Roles" to finish setup.
134+
135+
![This screenshot shows how to copy the client secret](@site/docs/assets/linked-roles/setup/copy-client-secret.png)
136+
137+
## 5. Time to party 🎉 {#step-5}
138+
139+
:::info Don't worry
140+
Your new Linked Role Bot won't stay online unless
141+
:::
142+
143+
Finally, finish setup by inviting the Linked Roles Bot to your server. Do so by clicking "Invite Linked-Roles-Bot" in
144+
the dashboard. Once done, you can continue by creating your first Linked Role. To learn more about that, continue in our [Role management documentation](./linked-roles/role-managment#create-linked-scnx-role), where we explain how to create your Linked Roles on SCNX and on Discord.
145+
146+
![This screenshot shows the success message after setup](@site/docs/assets/linked-roles/setup/success-party-time.png)

src/css/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ a.card:hover {
103103
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
104104
}
105105

106-
img {
106+
.theme-doc-markdown img {
107107
padding: 2px;
108108
border-radius: 15px;
109109
background-color: #0d1524;

0 commit comments

Comments
 (0)