# Administration

# Getting Started with Dark Chat

#### Accessing the Administration Panel

- <span style="white-space: pre-wrap;">The Dark Chat administration panel is accessible via the URL: </span>****/admin****.

#### Setting the Rules

- <span style="white-space: pre-wrap;">Visit the URL </span>****/admin/option****<span style="white-space: pre-wrap;"> to write the rules for Dark Chat.</span>
    - <span style="white-space: pre-wrap;">The rules must be written in </span>****Markdown****, a format similar to the one used on Discord, allowing for simple and effective formatting.
    - These rules must be accepted by all Dark Chat users.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/jKNimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/jKNimage.png)

#### Retrieve the Application Image via URL

- Do you need the application's logo?
- You can simply use the following URLs:
    - ****/logo****
    - ****/logo.png****

# Channels

#### Accessing Channel Management

- <span style="white-space: pre-wrap;">The dedicated URL for managing channels is: </span>****/admin/channel****

---

#### Key Features

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/5Cpimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/5Cpimage.png)

- Display the list of available channels.
- ****Advanced Search****<span style="white-space: pre-wrap;"> options:</span>
    - By channel name.
    - By the Discord ID of the creator.
    - By the creator's username.

---

#### Channel Details

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/Kogimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/Kogimage.png)

- Viewing the details of a channel provides the following information:
    - ****List of messages sent****, including details about their authors.
    - ****Channel creator****<span style="white-space: pre-wrap;"> displayed on the right, along with a list of participants.</span>
        - By clicking on a participant, you can view all the messages they have sent in that channel.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/9Soimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/9Soimage.png)

---

#### Administrative Actions

##### Delete a Message

- The message is removed from the channel but remains visible in the admin logs for traceability.

<table id="bkmrk--6" style="border-collapse: collapse; width: 111.548%;"><colgroup><col style="width: 30.1588%;"></col><col style="width: 69.8412%;"></col></colgroup><tbody><tr><td>[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/xTmimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/xTmimage.png)

</td><td>[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/fDximage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/fDximage.png)

</td></tr></tbody></table>

---

##### Lock or Unlock a Channel

- Once locked, users will no longer be able to access the channel.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/kBvimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/kBvimage.png)

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/GWtimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/GWtimage.png)

# Users

#### Accessing User Management

- <span style="white-space: pre-wrap;">The dedicated URL for managing users is: </span>****/admin/user****

---

#### User Search

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/bmfimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/bmfimage.png)

- You can search for users based on:
    - <span style="white-space: pre-wrap;">Their </span>****Discord ID****.
    - <span style="white-space: pre-wrap;">Their </span>****username****.

---

#### User Details

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/kmMimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/kmMimage.png)

- On a user's page, the following information is displayed:
    - ****Discord username****.
    - ****User ID****.
    - ****Status regarding the rules****: Have they accepted the rules?

---

#### Administrative Actions

####   


<table id="bkmrk--5" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col><col style="width: 33.3333%;"></col></colgroup><tbody><tr><td>[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/wLOimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/wLOimage.png)

</td><td>[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/EK6image.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/EK6image.png)

</td><td>[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/5CAimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/5CAimage.png)

</td></tr></tbody></table>

1. ****Reset Rules****
    - If a user has refused the rules, manual intervention is required.
    - <span style="white-space: pre-wrap;">Go to the user's page and click </span>****Reset Rules****<span style="white-space: pre-wrap;"> to allow them to accept the rules again.</span>
2. ****Blacklist a User****
    - You can prevent a user from accessing Dark Chat by blacklisting them.

---

#### Associated Channels

- On the right side of the user's page, you will find:
    - <span style="white-space: pre-wrap;">A </span>****list of channels created****<span style="white-space: pre-wrap;"> by the user.</span>
    - <span style="white-space: pre-wrap;">A </span>****list of channels joined****<span style="white-space: pre-wrap;"> by the user.</span>
- Search functionality for these lists is the same as in the channel management section (by name, Discord ID, or creator's username).

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/4lLimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/4lLimage.png)

# Discord Webhooks

Dark Chat RP offers several Discord Webhooks to receive detailed logs about administrative and user actions. The available events are:

---

##### Channel Creation

- Logs the channel's ID and the creator's information.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/csbimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/csbimage.png)

---

##### Message Deletion

- Logs the content of the deleted message, its author, and the channel it belonged to.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/IGSimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/IGSimage.png)

---

##### Admin Panel Access Attempt

- Records successful and failed attempts, including the user's ID.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/pVwimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/pVwimage.png)

---

##### Channel Locked/Unlocked

- Logs the channel's state (locked or unlocked) and the administrator who performed the action.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/wLUimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/wLUimage.png)

---

##### User Blacklisted or Unblacklisted

- Provides information about the affected user and the administrator who executed the action.

[![image.png](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/scaled-1680-/2fbimage.png)](https://xelyos-wiki.s3.amazonaws.com/uploads/images/gallery/2025-04/2fbimage.png)