# Discord身分組管理

{% hint style="info" %}
新版本改為使用指定的訊息來管理 \
過去由HKTRPG增加信息，變相不能再修改內容，有點麻煩
{% endhint %}

讓對指定訊息的Reaction Emoji(如😀😃😄)進行點擊的用家\
**分配指定的身分組別**

* 注意: 此功能需求HKTRPG擁有【編輯身分組】及【增加Reaction】的權限，請確定授權。
* 另外，使用者需要【伺服器管理者】權限。

<img src="/files/uFvn9R81I275OtzlIsSa" alt="" data-size="original">

### 使用教學

#### 開啓**Developer Mode**

首先去**User Setting**=>**Advanced**=>開啓**Developer Mode**\
這會令你可以COPY ID

#### **複製身分組ID**

再去**Server Setting**=>**Roles**=>**新增**或**設定**希望分配的**身分組**\
然後對該身分組按右鍵並按**COPY ID**，把該**ID**記下來

#### 發佈信息及複製信息ID

接著，去任意頻道中發佈一段信息，表示如果按了React 就會得到身份組，\
並對該信息按右鍵再按COPY ID，把該ID記下

**範例** \
按🎨可得身分組-畫家 \
按😁可得身分組-大笑

#### 輸入指令

最後按以下格式來輸入指令，把上面記下的ID，填進去

`.roleReact add`\
`身份組ID Emoji`\
`[[messageID]]`\
`發佈訊息的ID`

#### **範例**

`.roleReact add`\
`232312882291231263 🎨`\
`123123478897792323 😁`\
`[[messageID]]`\
`12312347889779233`

{% hint style="info" %}
注意, 可以重覆輸入同樣ID來增加新emoji
{% endhint %}

### 功能一覧

* `.roleReact add` 新增指定信息
* `.roleReact show` 顯示現有的指定訊息的資料
* `.roleReact delete 序號` 刪除後該信息將不會再派發移除身分組

### FAQ

#### 問1: 我嘗試把某身份組分配給人，但別人點擊了Reaction 也沒反應呢?

可能的原因很多，但主要是權限不足。\
Discord 有嚴格的權限保護，你可以嘗試檢查HKTRPG有沒有管理Roles的權限，如果已經有或已經是Admin，\
那麼接下來請查看希望分派的Role會不會在《Roles》裡，位置比HKTRPG更高。\
在這情況裡，即使HKTRPG擁有Admin權限，也會派發不了這Role給別人。\
你需要把HKTRPG調整到更它們更高的位置。

![](/files/S0DQUvv0kBJMDFoI3Pez)<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bothelp.hktrpg.com/hktrpg-guan-fang-shi-yong-jiao-xue/xi-tong-gong-ju/discord-shen-fen-zu-guan-li.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
