Skip to content

Commit 402a51f

Browse files
committed
we work to earn the right to work to earn the right to live
1 parent 1850b69 commit 402a51f

File tree

9 files changed

+129
-12
lines changed

9 files changed

+129
-12
lines changed
614 KB
Loading
48.7 KB
Loading

docs/linked-roles.md

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,74 @@
22
description: Setting up Linked Roles might take a few minutes, but by following this guide, you can get started easily.
33
---
44

5-
# Setup Linked Roles on your Discord
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 create your own Modmail on SCNX, please make sure 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 follow [these instructions](#step-2-app).
68+
69+
![SCNX prompting user to select credential source](@site/docs/assets/linked-roles/setup/select-credentials.png)
70+
71+
### Creating a Discord bot application {#step-2-app}
72+
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+
75+
## 3. Configuring Linked Roles {#step-3}

docs/linked-roles/claim-roles.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
1+
---
2+
sidebar_position: 2
3+
description: Follow this guide to claim a Linked Role that has been assigned to you.
4+
---
5+
16
# How to claim a linked role
27

8+
Once you've been assigned a role, claiming it in Discord is easy! Follow this guide to claim your Linked Role.
9+
310
:::success Share me!
4-
You can share this guide with your members so they know how to get their roles!
5-
:::
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-managment#create-linked-scnx-role), [configure it on Discord](./role-managment#linked-role-on-discord)
19+
and then [assign the role](./user-managment#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+
To get started, please click on the name of the server in Discord. There you'll be able to select the option "Linked-Roles".

docs/linked-roles/intro.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ role [can be removed via the SCNX Dashboard](./user-managment#remove-role).
3535
Linked Roles can be displayed in the chat next to the username
3636
by [configuring chat permissions](./role-managment#display-in-chat). While a user can have multiple Linked Roles, only
3737
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.
3839

3940
To [claim a Linked Role](./claim-roles), users will need to authorize their account with your custom Discord application
4041
using a
@@ -64,6 +65,5 @@ The following features are available on SCNX:
6465
* Authorization with your custom Discord App.
6566
* Multiple themes available for the [authorization page](./settings#authorization-page).
6667
* Off-Brand options available with the [Professional Plan](./../scnx/guilds/plans).
67-
* You can set up Linked Roles that can be claimed by any user.
68-
69-
### Authorization page {#scnx-authorization}
68+
* You can set up [public linked roles](./role-managment#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.

docs/linked-roles/role-managment.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44

55
## Set up Linked Role on Discord {#linked-role-on-discord}
66

7-
## Display Linked Role in chat {#display-in-chat}
7+
## Display Linked Role in chat {#display-in-chat}
8+
9+
## Public roles {#public-roles}

docs/linked-roles/settings.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Linked Roles Configuration
22

3-
## Authorization page {#authorization-page}
3+
## Authorization page {#authorization-page}
4+
5+
![Authorization page themes](@site/docs/assets/linked-roles/authentification-page.jpg)

src/components/Video.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ import {faArrowCircleRight} from '@fortawesome/pro-solid-svg-icons';
77

88
export default function Video({url}) {
99
const [allowed, setAllowed] = useState(false);
10-
const urlData = new URL(url);
10+
if (url.includes('youtu.be')) url = url.replace('youtu.be', 'youtube.com')
11+
const urlData = new URL(url.replaceAll('www.', ''));
1112

1213
useEffect(() => {
1314
if (localStorage.getItem(`scootkit.privacy.consent-${urlData.hostname}`) === '1') setAllowed(true);
1415
}, [urlData]);
1516

16-
if (!allowed && urlData.hostname === 'youtu.be') return <div style={{width: '640px', height: '360px', justifyContent: 'center'}}
17+
if (!allowed && urlData.hostname === 'youtube.com') return <div style={{width: '640px', height: '360px', justifyContent: 'center'}}
1718
className="card flex items-center">
1819
<div>
1920
<div style={{textAlign: 'center'}}><FontAwesomeIcon icon={faYoutube} style={{fontSize: '60px'}}/></div>
@@ -42,7 +43,7 @@ export default function Video({url}) {
4243
</div>
4344
</div>;
4445

45-
return <div>
46-
<ReactPlayer url={url} controls={true}/>
46+
return <div className='player-wrapper'>
47+
<ReactPlayer url={url} className='react-player' controls={true}/>
4748
</div>;
4849
}

src/css/custom.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,26 @@ a.card:hover {
103103
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
104104
}
105105

106+
img {
107+
padding: 2px;
108+
border-radius: 15px;
109+
background-color: #0d1524;
110+
}
111+
106112
.DocSearch-Logo a {
107113
display: none !important;
114+
}
115+
116+
.player-wrapper {
117+
position: relative;
118+
padding-top: 360px;
119+
border-radius: 5px;
120+
}
121+
122+
.react-player {
123+
position: absolute;
124+
top: 0;
125+
left: 0;
126+
border-radius: 20px;
127+
overflow: hidden;
108128
}

0 commit comments

Comments
 (0)