Skip to content

Commit 4339ab6

Browse files
authored
Linked Roles Docs (#61)
2 parents 8dc729d + 9d5a932 commit 4339ab6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1796
-29
lines changed

.github/workflows/check.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

blog/13-04-2025-newsletter.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Hey there,
1616

1717
The holidays are just around the corner! Easter is coming up, so it's time to prepare an event for your Discord – and it's super easy with SCNX!
1818

19+
<!-- truncate -->
20+
1921
## Easter is Just Around the Corner
2022

2123
Easter is just around the corner, and what could be better than going on an Easter egg hunt together – even if it's digital this year.

docs/assets/linked-roles/add-role.png

24.5 KB
Loading
Loading

docs/assets/linked-roles/claim/1.png

166 KB
Loading

docs/assets/linked-roles/claim/2.png

291 KB
Loading

docs/assets/linked-roles/claim/3.png

269 KB
Loading
307 KB
Loading

docs/assets/linked-roles/reset.png

124 KB
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Binary file not shown.
Loading
Loading

docs/linked-roles.md

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
---
2+
description: Setting up Linked Roles might take a few minutes, but by following this guide, you can get started easily.
3+
---
4+
5+
# Setup Linked Roles on your Discord
6+
7+
Get started with Linked Roles on your Discord to improve your user experience by displaying important roles of users
8+
next to their names.
9+
10+
:::success What is this?
11+
Unsure what Linked Roles are? Linked Roles allow you to display the role of a user next to their username, like this:
12+
13+
![SCNX Linked Roles usage shown on a Discord server, the position of the user is displayed next to their username](https://scnx.app/img/linked-roles-example.png)
14+
15+
If you want to learn more about Linked Roles, you can do so in our [About Linked Roles](./linked-roles/intro) section.
16+
17+
:::
18+
19+
:::warning This feature is Early Access
20+
Linked roles are Early Access. This means that in addition to a paid plan,
21+
a [membership](https://membership.scootkit.com) with Early Access is also required. Early Access helps us invest money &
22+
time in developing new features and products. We plan to make this feature available to everyone with Unlimited /
23+
Professional plan without memberships in late Q2 2025.
24+
:::
25+
26+
<IncludedInPlan data={{PROFESSIONAL: true, UNLIMITED: true, STARTER: false}} additionalDetails={{
27+
UNLIMITED: "Additional Early Access subscription required during Beta trial. Beta will end in Q2 2025.",
28+
PROFESSIONAL: "Additional Early Access subscription required during Beta trial. Beta will end in Q2 2025."}} />
29+
30+
## Video (German) {#video}
31+
32+
Our developer Simon is happy to guide you through this setup process in
33+
our [tutorial video on YouTube](https://www.youtube.com/watch?v=HR3yvTVpkOI). This video is in German right now, but
34+
we're working on an English translation.
35+
36+
<Video url="https://www.youtube.com/watch?v=HR3yvTVpkOI" />
37+
38+
## 0. Pre-Flight-Checklist 🛫 {#step-0}
39+
40+
Before you can enable Linked Roles on your server, please ensure that
41+
42+
* you have [added your Server to SCNX](./setup).
43+
* your server has the paid [Unlimited](./scnx/guilds/plans) (<PlanPrice plan="UNLIMITED" type="MONTHLY"/>)
44+
or [Professional](./scnx/guilds/plans) (<PlanPrice plan="PROFESSIONAL" type="MONTHLY"/>) plan, or consider using a
45+
free trial, if
46+
available for you.
47+
* you are the owner of the server you want to enable this feature
48+
on ([why?](./scnx/guilds/trusted-admins#troubleshooting)) - if you are not the owner, please ask them to enable this
49+
feature for you and grant you access as a [Trusted Admin](./scnx/guilds/trusted-admins).
50+
* you (or one of your trusted admins) have Early Access (purchasable with
51+
a [ScootKit Membership Level 2 or higher](https://membership.scootkit.com)) during the beta trial. After the beta
52+
trial ends (likely in Q2 2025), this requirement will be removed.
53+
* you've got 5-10 minutes of time (our estimate is that this takes around six minutes to finish on a computer, on mobile
54+
it may take
55+
a bit longer) to finish this guide - don't stop in the middle; your progress won't be saved.
56+
57+
## 1. Time to get started {#step-1}
58+
59+
To get started with the setup, please open the [Linked Roles page](https://scnx.app/glink?page=linked-roles/enable) of
60+
your server in the SCNX dashboard. There, click on "Start setup" to get started. You might be shown a video or a link to
61+
this guide, but you can also click "Continue" there, since you are already here :wink:
62+
63+
## 2. Select credentials {#step-2}
64+
65+
Next, SCNX will prompt you to select which Discord credentials you want to use for Linked Roles. If you are using other
66+
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
68+
follow [these instructions](#step-2-app).
69+
70+
![SCNX prompting user to select credential source](@site/docs/assets/linked-roles/setup/select-credentials.png)
71+
72+
### Creating a Discord bot application {#step-2-app}
73+
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.
76+
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 secret. 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 you use another SCNX product with the same credentials.
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
145+
our [Role management documentation](./linked-roles/role-management#create-linked-scnx-role), where we explain how to
146+
create your Linked Roles on SCNX and on Discord. You can also jump
147+
to [the Linked Roles index page](/docs/linked-roles/overview) if you are looking for something else to continue with.
148+
149+
![This screenshot shows the success message after setup](@site/docs/assets/linked-roles/setup/success-party-time.png)

docs/linked-roles/claim-roles.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
sidebar_position: 3
3+
description: Follow this guide to claim a Linked Role that has been assigned to you.
4+
---
5+
6+
# How to claim a Linked Role
7+
8+
Once you've been assigned a role, claiming it in Discord is easy! Follow this guide to claim your Linked Role.
9+
10+
:::success Share me!
11+
You can share this guide with your members so they know how to get their roles!\
12+
Here's the URL to share: [`https://scootk.it/claim-linked-roles`](https://scootk.it/claim-linked-roles).
13+
:::
14+
15+
## Requirements {#requirements}
16+
17+
Before you can claim your Linked Role, an administrator needs to
18+
have [created the Linked Role on SCNX](./role-management#create-linked-scnx-role), [configure it on Discord](./role-management#linked-role-on-discord)
19+
and then [assign the role](./user-management#add-role) to you. If these steps aren't finished, you won't be able to claim
20+
your role.
21+
22+
If you run into issues when following this guide, please contact your server administrator and link them to
23+
our [troubleshooting page](./troubleshooting), where we go into detail on how to fix issues.
24+
25+
## Claim your role on Discord {#claim-role}
26+
27+
:::info This also works on your phone!
28+
While this guide shows the steps on a desktop device, you can follow the same instructions on your phone to claim your
29+
Linked Role.
30+
:::
31+
32+
To get started, please click on the name of the server in Discord. There you'll be able to select the option "Linked
33+
Roles". A modal showing all available roles will now appear. Select the role you want to claim. Next, you will be shown
34+
the requirements you need to pass to claim the role. If you already pass the requirement, you can click on "Finish",
35+
otherwise click on the requirement field to claim your role.
36+
37+
![How to open the Linked Role claim site on Discord](@site/docs/assets/linked-roles/claim/1.png)
38+
39+
Now, the [authorization page](./settings#authorization-page) of the server will open. There, click on "Authorize with
40+
Discord". You will be redirected to Discord to authorize your account. Please make sure you are logging in with the
41+
right account, then click on "Authorise" to finish the request. After that, you will be shown a success message
42+
confirming that the roles have been applied successfully. You can close this window now.
43+
44+
![How to authorize your account](@site/docs/assets/linked-roles/claim/2.png)
45+
46+
Once done, go back to Discord. There, you will be prompted to confirm the connection by clicking on "Done". After that,
47+
you can finally claim the Linked Role by clicking "Finish". Discord will grant you the Linked Role now, which will also
48+
appear in your member profile.
49+
50+
![Final step to claim the role](@site/docs/assets/linked-roles/claim/3.png)
51+
52+
If you want to claim other roles as well, you can do so easily by going following the same instructions - but you won't
53+
need to authenticate again, you can simply claim the role in Discord.
54+
55+
## Issues when claiming roles? {#issues}
56+
57+
If you are running into any issues when you are trying to claim a role, please check
58+
our [troubleshooting guide](./troubleshooting), in particular, the following issues might occur:
59+
60+
* [Error message: "Invalid OAuth2 redirect_url"](./troubleshooting#oauth2-redirect-url).
61+
* [Error message: "No roles were assigned to you"](./troubleshooting#roles-missing)
62+
* [Error message: "Seems like the configuration by the server owner is wrong."](./troubleshooting#generic-api-error).
63+
64+
If you run into other issues or have questions, check or [troubleshooting guide](./troubleshooting) or contact us
65+
on [scnx.app/help](https://scnx.app/help) - we're always happy to help!
66+
67+
## Remove a claimed role {#remove-claimed-role}
68+
69+
Annoyed by your Linked Role? You can either ask an administrator
70+
to [remove the Linked Role](./user-management#remove-role) or you can remove the role yourself.
71+
72+
To do so, open Discord and open your profile on your server. There, hover over the Linked Role you want to remove. You
73+
will see an "X" on the left side. Click on it to remove your Linked Role. If you ever change your mind, you can
74+
always [re-claim your Linked Role](#claim-role) unless an administrator removes it from you.
75+
76+
![How to remove a claimed role](@site/docs/assets/linked-roles/claim/remove-role.png)

docs/linked-roles/intro.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
sidebar_position: 1
3+
description: Linked Roles allow you to easily display the role of a user next to their username in your chat.
4+
---
5+
6+
# About Linked Roles
7+
8+
:::warning This feature is Early Access
9+
Linked roles are Early Access. This means that in addition to a paid plan,
10+
a [membership](https://membership.scootkit.com) with Early Access is also required. Early Access helps us invest money &
11+
time in developing new features and products. We plan to make this feature available to everyone with Unlimited /
12+
Professional plan without memberships in late Q2 2025.
13+
:::
14+
15+
Linked Roles allow you to display the role of a user next to their name on your Discord server. To do this, the user
16+
needs to authorize with your Discord Bot and claim their role manually. Displaying the role next to the username makes
17+
your Discord appear professionally and increases the user experience on your Discord server; your users can see at a
18+
glance that they are talking to a staff member, to a moderator or to an admin.
19+
20+
Here's how Linked-Roles could look on your server:
21+
22+
![SCNX Linked Roles usage shown on a Discord server, the position of the user is displayed next to their username](https://scnx.app/img/linked-roles-example.png)
23+
24+
## How it works {#how-it-works}
25+
26+
To use Linked Roles, you'll need to first [set up Linked Roles](./../linked-roles) on your server. Once done, you
27+
can [create and configure Linked Roles](./role-management) on SCNX and Discord which can
28+
be [assigned to users](./user-management). Once a linked role has been assigned to a user, the user
29+
can [claim the role](./claim-roles) on Discord.
30+
31+
In contrast to actual roles on Discord, Linked Roles can't be directly assigned to members, instead, members will need
32+
to manually [claim roles on Discord](./claim-roles). After a user has claimed a role, the
33+
role [can only be removed via the SCNX Dashboard](./user-management#remove-role).
34+
35+
Linked Roles can be displayed in the chat next to the username
36+
by [configuring chat permissions](./role-management#display-in-chat). While a user can have multiple Linked Roles, only
37+
one can be displayed in a chat. Roles with a higher position on your Discord will be displayed with a higher priority.
38+
Having a Linked Role does not remove the role icon of another role.
39+
40+
To [claim a Linked Role](./claim-roles), users will need to authorize their account with your custom Discord application
41+
using a
42+
[customizable authorization page](./settings#authorization-page). Once done, they'll be redirected back to Discord,
43+
where they can claim their role. Once authorized, future role changes can be claimed without the need of an additional
44+
authorization.
45+
46+
## Linked Roles at SCNX {#scnx}
47+
48+
SCNX makes it easy to set up and manage Linked Roles on your very own Discord - there's no coding required and setup can
49+
be done in a few easy steps in our easy-to-use dashboard.
50+
51+
To use Linked Roles, you need to [add your server to SCNX](./../setup) and have a [paid plan](../scnx/guilds/plans) that
52+
includes access to this feature - you can also try a paid plan for free if you are eligible.
53+
54+
### Features of Linked Roles on SCNX {#scnx-features}
55+
56+
Linked Roles on SCNX makes using Linked Roles on your server easy. While [initial setup](./../linked-roles) takes a few
57+
minutes, later management of [roles](./role-management) and [member roles](./user-management) is straightforward.
58+
Additionally, SCNX
59+
offers multiple features and customizability options.
60+
61+
The following features are available on SCNX:
62+
63+
* Easy management of [Linked Roles](./role-management) in the SCNX Dashboard.
64+
* [Assign and remove](./user-management) roles from users.
65+
* Multiple themes available for the [authorization page](./settings#authorization-page).
66+
* Off-Brand options available with the [Professional Plan](./../scnx/guilds/plans).
67+
* Authorization with your custom Discord App.
68+
* You can set up [public linked roles](./role-management#public-roles) that can be claimed by any user.
69+
* Excellent customer support on [our Discord](https://scootk.it/dc-en) in English and German.

0 commit comments

Comments
 (0)