Skip to content

Commit 74e15e2

Browse files
committed
Member category rewrite
1 parent 0e7549a commit 74e15e2

42 files changed

Lines changed: 1609 additions & 0 deletions

Some content is hidden

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

guide/Member/authorAvatar_ai.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# $authorAvatar
2+
3+
Returns the avatar (profile picture) URL of the user who executed the command.
4+
5+
## Usage
6+
7+
```bash
8+
$authorAvatar[serverAvatar]
9+
```
10+
1. **serverAvatar** - (Optional) default value: `no`. Can be `yes` or `no`. Discord does have two types of avatars, global and per-server (custom avatar in each server). If no server avatar is set, the global avatar will be used.
11+
12+
## Examples
13+
14+
#### Sending avatar URL
15+
16+
How is the avatar URL displayed when sent with text and without text
17+
18+
<discord-messages>
19+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
20+
!!exec With text: $authorAvatar
21+
</discord-message>
22+
<discord-message :bot="true" role-color="#5fb0fa" author="Custom Command" avatar="https://doc.ccommandbot.com/bot-profile.png">
23+
With text: <a href="https://cdn.discordapp.com/embed/avatars/0.png">
24+
https://cdn.discordapp.com/embed/avatars/0.png
25+
</a><br>
26+
<img src="https://cdn.discordapp.com/embed/avatars/0.png" alt="User Avatar" style="vertical-align: text-bottom;" />
27+
</discord-message>
28+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
29+
!!exec $authorAvatar
30+
</discord-message>
31+
<discord-message :bot="true" role-color="#5fb0fa" author="Custom Command" avatar="https://doc.ccommandbot.com/bot-profile.png">
32+
<img src="https://cdn.discordapp.com/embed/avatars/0.png" alt="User Avatar" style="vertical-align: text-bottom;" />
33+
</discord-message>
34+
</discord-messages>
35+
36+
::: tip Note
37+
You can send the image as an attachment, so no link will be displayed. For this, you can use function [$attachment](../Text/Embed/attachment.md).
38+
To display the avatar URL as plain text, either enclose the function in backticks (`` `$authorAvatar` ``) or angle brackets (`<$authorAvatar>`).
39+
:::
40+
41+
##### Related functions: [$attachment](../Text/Embed/attachment.md)
42+
43+
##### Function difficulty: <Badge type="tip" text="Easy" vertical="middle"/>
44+
###### Tags: <Badge type="tip" text="Image" vertical="middle"/> <Badge type="tip" text="Avatar" vertical="middle"/> <Badge type="tip" text="Attachment" vertical="middle"/> <Badge type="tip" text="profile picture" vertical="middle"/>

guide/Member/authorID_ai.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# $authorID
2+
3+
Returns the ID of the user who executed the command.
4+
5+
## Usage
6+
7+
```bash
8+
$authorID
9+
```
10+
11+
## Example
12+
13+
#### Using $authorID
14+
15+
How to use $authorID
16+
17+
<discord-messages>
18+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
19+
!!exec My ID is $authorID
20+
</discord-message>
21+
<discord-message :bot="true" role-color="#5fb0fa" author="Custom Command" avatar="https://doc.ccommandbot.com/bot-profile.png">
22+
My ID is 123456789123456789
23+
</discord-message>
24+
</discord-messages>
25+
26+
##### Related functions: [$mention](../Member/mention.md)
27+
28+
##### Function Difficulty: <Badge type="tip" text="Easy" vertical="middle" />
29+
###### Tags: <Badge type="tip" text="authorID" vertical="middle" /> <Badge type="tip" text="executor" vertical="middle" /> <Badge type="tip" text="command author" vertical="middle" /> <Badge type="tip" text="" vertical="middle" /> <Badge type="tip" text="userID" vertical="middle" />

guide/Member/ban_ai.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# $ban
2+
3+
Bans a user from the server.
4+
5+
## Usage
6+
7+
```bash
8+
$ban[userID;reason;messages to delete]
9+
```
10+
1. **userID** - The ID of the user to ban.
11+
2. **reason** - The reason for the ban.
12+
3. **messages to delete** - The number of days to delete messages from this user. Maximum is 7 days, limited by Discord.
13+
14+
## Examples
15+
16+
#### Sucessful ban
17+
18+
Successful ban with no response
19+
20+
<discord-messages>
21+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
22+
!!exec $ban[123456789123456789;Spamming;7]
23+
</discord-message>
24+
</discord-messages>
25+
26+
#### Unsucessful ban
27+
28+
Unsuccessful ban with error message
29+
30+
<discord-messages>
31+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
32+
!!exec $ban[$ownerID;Just a test;0]
33+
</discord-message>
34+
<discord-message :bot="true" role-color="#5fb0fa" author="Custom Command" avatar="https://doc.ccommandbot.com/bot-profile.png">
35+
❌ bot is missing enough permissions at line 1
36+
</discord-message>
37+
</discord-messages>
38+
39+
::: tip Permissions
40+
Make sure that the bot does have sufficient permission. The bot also needs to be higher in role hierarchy then the user.
41+
:::
42+
43+
::: danger Important Note
44+
If any member who can execute the command with this function, they will be able to ban any member below the bot's highest role.
45+
Do not place the bot's role above Admin or Head Moderator roles to avoid banning important member.
46+
:::
47+
48+
##### Related functions: [$kick](../Member/kick.md) [$unban](../Member/unban.md)
49+
50+
##### Function difficulty: <Badge type="tip" text="Easy" vertical="middle" />
51+
###### Tags: <Badge type="tip" text="ban" vertical="middle" /> <Badge type="tip" text="punish" vertical="middle" /> <Badge type="tip" text="member" vertical="middle" /> <Badge type="tip" text="moderation" vertical="middle" /> <Badge type="tip" text="moderator" vertical="middle" />

guide/Member/blackListIDs_ai.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# $blackListIDs
2+
3+
Prevent users from using a command by blacklisting their IDs.
4+
5+
## Usage
6+
7+
The `$blackListIDs` function allows you to restrict access to a command for a specified list of users. If a blacklisted user attempts to use the command, the function will return a custom error message.
8+
9+
```bash
10+
$blackListIDs[userID;userID;...;error message]
11+
```
12+
1. **userID** - This makes user not able to run this command. You can add as many userIDs as you want, separated with semicolon (`;`).
13+
2. **error message** - (Optional) default value: (none). If a blacklisted user attempts to run this command, this message will be sent. If empty, no message will be sent.
14+
15+
## Example
16+
17+
#### Blacklisted User
18+
19+
How to blacklist a user from the command
20+
21+
<discord-messages>
22+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
23+
!!exec $blackListIDs[$authorID;You are blacklisted from using this command!]<br>Message
24+
</discord-message>
25+
<discord-message :bot="true" role-color="#5fb0fa" author="Custom Command" avatar="https://doc.ccommandbot.com/bot-profile.png">
26+
You are blacklisted from using this command!
27+
</discord-message>
28+
</discord-messages>
29+
30+
##### Related functions: [$blackListRoleIds](../Role/blackListRoleIds.md) [$blackListChannelIDs](../Channel/blackListChannelIDs.md) [$onlyForIDs](../Text/only/onlyForIDs.md) [$onlyForRoles](../Text/only/onlyForRoles.md)
31+
32+
##### Function difficulty: <Badge type="warning" text="Medium" vertical="middle"/>
33+
###### Tags: <Badge type="tip" text="only for" vertical="middle"/> <Badge type="tip" text="blacklist" vertical="middle"/> <Badge type="tip" text="not allowed" vertical="middle"/>

guide/Member/boostingSince_ai.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# $boostingSince
2+
3+
Returns the date a user started boosting the server.
4+
5+
## Usage
6+
7+
```bash
8+
$boostingSince[userID;date/ms]
9+
```
10+
1. **userID** - (Optional) default value: `$authorID`. The ID of user to return boosting date
11+
2. **date/ms** - (Optional) default value: `date`. If date, it will return text in this format: `Day(name), Month(name) Day(number), Year(YYYY) Hours(HH):Minutes(MM) PM/AM`. If ms, timestamp in miliseconds will be returned. You can later format the timestamp using [$formatDate](../Date/formatDate.md).
12+
13+
## Example
14+
15+
#### Using $boostingSince
16+
17+
Multiple ways of using function $boostingSince
18+
19+
<discord-messages>
20+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
21+
!!exec $boostingSince
22+
</discord-message>
23+
<discord-message :bot="true" role-color="#5fb0fa" author="Custom Command" avatar="https://doc.ccommandbot.com/bot-profile.png">
24+
Wednesday, January 1, 2025 08:30 PM
25+
</discord-message>
26+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
27+
!!exec $boostingSince[123456789123456789;ms]
28+
</discord-message>
29+
<discord-message :bot="true" role-color="#5fb0fa" author="Custom Command" avatar="https://doc.ccommandbot.com/bot-profile.png">
30+
1735763400000
31+
</discord-message>
32+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
33+
!!exec $formatDate[$boostingSince[123456789123456789;ms];MM-DD-YYYY]
34+
</discord-message>
35+
<discord-message :bot="true" role-color="#5fb0fa" author="Custom Command" avatar="https://doc.ccommandbot.com/bot-profile.png">
36+
01-01-2025
37+
</discord-message>
38+
</discord-messages>
39+
40+
##### Related functions: [$formatDate](../Date/formatDate.md) [$timeToDate](../Date/timeToDate.md)
41+
42+
##### Function difficulty: <Badge type="warning" text="Medium" vertical="middle"/>
43+
###### Tags: <Badge type="tip" text="boosting" vertical="middle"/> <Badge type="tip" text="time" vertical="middle"/> <Badge type="tip" text="timestamp" vertical="middle"/>

guide/Member/changeNickname_ai.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# $changeNickname
2+
3+
Changes the nickname of a specified member in the server.
4+
5+
## Usage:
6+
7+
```bash
8+
$changeNickname[userID;nickname]
9+
```
10+
1. **userID** - The ID of the member whose nickname you want to change.
11+
2. **nickname** - The new nickname you want to assign to the member.
12+
13+
## Example
14+
15+
#### Using $changeNickname
16+
17+
Changing the nickname of the command author
18+
19+
<discord-messages>
20+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
21+
!!exec $changeNickname[$authorID;Steve]
22+
</discord-message>
23+
<discord-message :bot="false" role-color="#d6e0ff" author="Steve" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
24+
Hello
25+
</discord-message>
26+
</discord-messages>
27+
28+
::: tip Permissions
29+
The bot requires the "Manage Nicknames" permission to change nicknames and only change nicknames of members with roles lower than bots highest role.
30+
:::
31+
32+
::: danger Discord restiriction
33+
Discord doesn't allow others to change owners nickname. If you will try to change nickname of an invalid member or owner, error message will be shown.
34+
:::
35+
36+
##### Related functions: [$nickname](../Member/nickname.md)
37+
38+
##### Difficulty: <Badge type="tip" text="Easy" vertical="middle" />
39+
###### Tags: <Badge type="tip" text="change Nickname" vertical="middle" /> <Badge type="tip" text="nickname" vertical="middle" /> <Badge type="tip" text="member" vertical="middle" /> <Badge type="tip" text="Names" vertical="middle" /> <Badge type="tip" text="modify name" vertical="middle" />

guide/Member/discriminator_ai.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# $discriminator
2+
3+
Returns the discriminator of the user who executed the command, or a specified member.
4+
5+
## Usage:
6+
7+
```bash
8+
$discriminator[userID]
9+
```
10+
1. **userID** - (Optional) default value: `$authorID`. The ID of user you want to return the discriminator from.
11+
12+
## Example
13+
14+
#### Using $discriminator
15+
16+
Returning a discriminator from user
17+
18+
<discord-messages>
19+
<discord-message :bot="false" role-color="#d6e0ff" author="User#1234" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
20+
!!exec $discriminator
21+
</discord-message>
22+
<discord-message :bot="true" role-color="#5fb0fa" author="Custom Command" avatar="https://doc.ccommandbot.com/bot-profile.png">
23+
1234
24+
</discord-message>
25+
</discord-messages>
26+
27+
::: warning Note
28+
This feature is deprecated because Discord switched to usernames. This function will return 0 as of the username update. This still works on bots.
29+
:::
30+
31+
##### Related functions: [$username](../Member/username.md) [$nickname](../Member/nickname.md) [$userTag](../Member/userTag.md)
32+
33+
##### Function difficulty: <Badge type="tip" text="Easy" vertical="middle"/>
34+
###### Tags: <Badge type="tip" text="name" vertical="middle"/> <Badge type="tip" text="tag" vertical="middle"/> <Badge type="tip" text="discriminator" vertical="middle"/>

guide/Member/displayName_ai.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# $displayName
2+
3+
Returns the display name of a specified user. This is the name that's shown for the user in a specific server, which might be different from their global name.
4+
5+
## Usage
6+
7+
```bash
8+
$displayName[userID]
9+
```
10+
1. **userID** - (Optional) default value: `$authorID`. The user ID of the user you want to return display name from.
11+
12+
## Example
13+
14+
#### Using $displayName
15+
16+
How to return display name from author
17+
18+
<discord-messages>
19+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
20+
!!exec $displayName
21+
</discord-message>
22+
<discord-message :bot="true" role-color="#5fb0fa" author="Custom Command" avatar="https://doc.ccommandbot.com/bot-profile.png">
23+
User
24+
</discord-message>
25+
</discord-messages>
26+
27+
##### Related functions: [$nickname](../Member/nickname.md) [$username](../Member/username.md)
28+
29+
##### Function difficulty: <Badge type="tip" text="Easy" vertical="middle"/>
30+
###### Tags: <Badge type="tip" text="name" vertical="middle"/> <Badge type="tip" text="username" vertical="middle"/> <Badge type="tip" text="nickname" vertical="middle"/>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# $eventNewNickname
2+
3+
Returns the new nickname of a member when their nickname is updated. Works in `On Nickname Changes` trigger.
4+
5+
## Usage
6+
7+
```bash
8+
$eventNewNickname
9+
```
10+
11+
## Example
12+
13+
#### Using $eventNewNickname
14+
15+
Imagine you have a Nickname Change command that logs the new nickname to a channel
16+
17+
```bash
18+
$sendMessage[User $username changed their nickname from $eventOldNickname to $eventNewNickname!]
19+
```
20+
21+
##### Related functions: [$username](../Member/username.md) [$eventOldNickname](../Member/eventOldNickname.md)
22+
23+
##### Function difficulty: <Badge type="tip" text="Easy" vertical="middle"/>
24+
###### Tags: <Badge type="tip" text="nickname" vertical="middle"/> <Badge type="tip" text="username" vertical="middle"/>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# $eventOldNickname
2+
3+
Returns the old nickname of a member when their nickname is updated. Works in `On Nickname Changes` trigger.
4+
5+
## Usage
6+
7+
```bash
8+
$eventOldNickname
9+
```
10+
11+
## Example
12+
13+
#### Using $eventOldNickname
14+
15+
Imagine you have a Nickname Change command that logs the new nickname to a channel
16+
17+
```bash
18+
$sendMessage[User $username changed their nickname from $eventOldNickname to $eventNewNickname!]
19+
```
20+
21+
##### Related functions: [$username](../Member/username.md) [$eventNewNickname](../Member/eventNewNickname.md)
22+
23+
##### Function difficulty: <Badge type="tip" text="Easy" vertical="middle"/>
24+
###### Tags: <Badge type="tip" text="nickname" vertical="middle"/> <Badge type="tip" text="username" vertical="middle"/>

0 commit comments

Comments
 (0)