-
Notifications
You must be signed in to change notification settings - Fork 16
Add guide for finding Discord IDs and mentions #98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
32217be
feabe42
4701e4a
567bf28
b89a4f2
693bfe2
66685c9
7979bb5
845414a
f70e656
e1b988c
656e7fc
380ea03
990ceff
de64143
16a89b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,111 @@ | ||
| # Discord IDs & Mentions | ||
|
|
||
| To configure advanced features on SCNX, you sometimes need specific Discord IDs. These unique identifiers allow our system to precisely target the correct users, channels, or roles. This guide will show you how to find them and how to mention entities using their ID to customize your bot's behavior. | ||
|
|
||
| ## 1. Enable Discord Developer Mode | ||
| Before you can copy IDs, you need to enable the Developer Mode in your Discord client. This is a built-in feature that unlocks advanced context menu options for power users and developers. | ||
|
|
||
| 1. Open your **User Settings** (the gear icon next to your name). | ||
| 2. Go to **Advanced** (located under the "App Settings" category). | ||
| 3. Toggle **Developer Mode** to **On**. | ||
|
|
||
|  | ||
|  | ||
|
|
||
| ## 2. Copying IDs | ||
| Every entity on Discord — whether it's a user, a server, or a single message — has a unique ID. Once Developer Mode is active, you can right-click almost anything to retrieve it. IDs are used by bots to identify entities as they don't change - even if the name of the entity has changed. | ||
|
|
||
| ### Copy User and Bot IDs | ||
| 1. Right-click on the user's name or avatar. | ||
| 2. Select **Copy User ID** at the bottom of the menu. | ||
| 3. The ID is now in your clipboard - you can now paste it into SCNX or elsewhere 🚀 | ||
| * **On Mobile:** Long-press the user's profile, tap the three dots (`...`) in the top right, and select "Copy User ID". | ||
|
|
||
|  | ||
|
|
||
| ### Copy Channel IDs | ||
| 1. Right-click a channel name in your sidebar. | ||
| 2. Select **Copy Channel ID**. | ||
| 3. The ID is now in your clipboard - you can now paste it into SCNX or elsewhere 🚀 | ||
| * **On Mobile:** Long-press the channel name, scroll down, and tap "Copy Channel ID". | ||
|
|
||
|  | ||
|
|
||
| ### Copy Role IDs | ||
| 1. Go to **Server Settings** > **Roles**. | ||
| 2. Right-click the specific role name. | ||
| 3. Select **Copy Role ID**. | ||
| 4. The ID is now in your clipboard - you can now paste it into SCNX or elsewhere 🚀 | ||
| * **On Mobile:** Go to Server Settings > Roles, tap the role, and tap the "Copy ID" icon in the top right. | ||
|
|
||
|  | ||
|
|
||
| ### Copy Message IDs | ||
| 1. Hover over the message and click the **three dots** (More) on the right side. | ||
| 2. Select **Copy Message ID** at the very bottom of the menu. | ||
| 3. The ID is now in your clipboard - you can now paste it into SCNX or elsewhere 🚀 | ||
| * **On Mobile:** Long-press the message, scroll to the bottom of the menu, and tap "Copy Message ID". | ||
|
|
||
|  | ||
|
|
||
| ### Copy Server IDs (Guild IDs) | ||
| 1. Right-click the **Server Name** at the top of your channel list or right-click the **Server Icon**. | ||
| 2. Select **Copy Server ID** at the bottom of the list. | ||
| 3. The ID is now in your clipboard - you can now paste it into SCNX or elsewhere 🚀 | ||
| * **On Mobile:** Tap the three dots next to the Server Name at the top of the channel list, scroll down, and tap "Copy Server ID". | ||
|
|
||
|  | ||
|
|
||
| --- | ||
|
|
||
| ## 3. Mentioning Elements via ID | ||
| Sometimes you need to mention a user, role, or channel within a bot response (like a custom embed or a welcome message) where a standard "@" mention might not work. Using the raw ID syntax ensures the mention resolves correctly once the bot sends the message. | ||
|
|
||
| :::info Mention-Helper in SCNX | ||
| In the SCNX Message-Editor, you often don't have to type the syntax manually. You can simply click the **"@" button** above the text field to easily select and insert channel or role mentions. | ||
|
|
||
|  | ||
| ::: | ||
|
|
||
| ### Mention Syntax Table | ||
| If you are writing raw text or configuring advanced fields, use the following syntax: | ||
|
|
||
| | Entity | Syntax | Example | Preview | | ||
| | :--- | :--- | :--- | :--- | | ||
| | **Users and Bots** | `<@USERID>` | `<@787026352191701033>` | @SCNX | | ||
| | **Channels** | `<#CHANNELID>` | `<#1113165263295230002>` | #news | | ||
| | **Roles** | `<@&ROLEID>` | `<@&1113115210048360489>` | @Moderator | | ||
|
|
||
| ### Mentioning Timestamps | ||
| If you want to include dynamic time displays, Discord uses a special Unix-Timestamp format. | ||
|
|
||
| To create a timestamp, you wrap a Unix-Time (seconds since 1970) in a specific code. For example: `<t:1700000000:R>`. | ||
|
|
||
| * **Dynamic:** It automatically adjusts to the local time of every user. | ||
| * **Versatile:** Can show relative time ("5 minutes ago"), full dates, or just the time. | ||
|
|
||
|  | ||
|
|
||
| You can find a detailed guide and a generator for these [here](@site/docs/discord-formatting.md#timestamps). | ||
|
|
||
| --- | ||
|
|
||
| ## Troubleshooting {#troubleshooting} | ||
|
|
||
| <details> | ||
| <summary>The "Copy ID" option is missing</summary> | ||
| <ul> | ||
| <li>Ensure that <b>Developer Mode</b> is toggled to "On" in your Discord settings (User Settings > Advanced).</li> | ||
| <li>If you just enabled it, try restarting your Discord client (press <code>Ctrl + R</code> on Desktop).</li> | ||
| <li>On Mobile, ensure you are using the latest version of the Discord app.</li> | ||
| </ul> | ||
| </details> | ||
|
|
||
| <details> | ||
| <summary>The mention appears as raw text instead of a name</summary> | ||
| <ul> | ||
| <li>Double-check that the ID you copied is correct and belongs to the right entity type.</li> | ||
| <li>Make sure you have included the required symbols like <code><</code>, <code>@</code>, <code>#</code>, <code>&</code>, and <code>></code>.</li> | ||
| <li>If the ID belongs to a user or role that is not in the server where the message is sent, Discord may show the raw ID.</li> | ||
| </ul> | ||
| </details> | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,125 @@ | ||||||
| # Discord-IDs & Erwähnungen | ||||||
|
|
||||||
| Um fortgeschrittene Funktionen auf SCNX zu konfigurieren, benötigst du manchmal spezifische Discord-IDs. Diese eindeutigen Kennungen ermöglichen es unserem System, die richtigen Nutzer, Kanäle oder Rollen präzise anzusprechen. Diese Anleitung zeigt dir, wie du sie findest und wie du Objekte mithilfe ihrer ID erwähnst, um das Verhalten deines Bots anzupassen. | ||||||
|
|
||||||
| ## 1. Discord-Entwicklermodus aktivieren | ||||||
|
|
||||||
| Bevor du IDs kopieren kannst, musst du den Entwicklermodus in deinem Discord-Client aktivieren. Dies ist eine integrierte Funktion, die erweiterte Kontextmenü-Optionen für Power-User und Entwickler freischaltet. | ||||||
|
|
||||||
| 1. Öffne deine **Nutzereinstellungen** (das Zahnrad-Symbol neben deinem Namen). | ||||||
| 2. Gehe zu **Erweitert** (unter der Kategorie "App-Einstellungen"). | ||||||
| 3. Schalte den **Entwicklermodus** auf **An**. | ||||||
|
|
||||||
|  | ||||||
|  | ||||||
|
|
||||||
| ## 2. IDs kopieren | ||||||
|
|
||||||
| Jedes Objekt auf Discord — egal ob es sich um einen Nutzer, einen Server oder eine einzelne Nachricht handelt — hat eine eindeutige ID. Sobald der Entwicklermodus aktiv ist, kannst du fast alles rechtsklicken, um sie abzurufen. IDs werden von Bots verwendet, um Objekte zu identifizieren, da sie sich nicht ändern - selbst wenn der Name des Objekts geändert wurde. | ||||||
|
||||||
| Jedes Objekt auf Discord — egal ob es sich um einen Nutzer, einen Server oder eine einzelne Nachricht handelt — hat eine eindeutige ID. Sobald der Entwicklermodus aktiv ist, kannst du fast alles rechtsklicken, um sie abzurufen. IDs werden von Bots verwendet, um Objekte zu identifizieren, da sie sich nicht ändern - selbst wenn der Name des Objekts geändert wurde. | |
| Jedes Objekt auf Discord — egal ob es sich um einen Nutzer, einen Server oder eine einzelne Nachricht handelt — hat eine eindeutige ID. Sobald der Entwicklermodus aktiv ist, kannst du fast alles rechtsklicken, um sie abzurufen. IDs werden von Bots verwendet, um Objekte zu identifizieren, da IDs sich nicht ändern – selbst wenn der Name des Objekts geändert wurde. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 16 states "IDs are used by bots to identify entities as they don't change - even if the name of the entity has changed." This should use "they" to refer to IDs, not entities. Consider rewording to: "IDs are used by bots to identify entities because IDs don't change—even if the name of the entity has changed." This makes it clearer that IDs are the unchanging element.