Skip to content

Commit 0e7549a

Browse files
committed
Member category rewrite
1 parent 8ca5568 commit 0e7549a

84 files changed

Lines changed: 1214 additions & 2448 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.md

Lines changed: 23 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,44 @@
11
# $authorAvatar
22

3-
Returns the URL to the User's avatar that triggered the command.
4-
5-
::: tip Discord adds image to message if link provided <Badge type="tip" text="Read examples section" vertical="middle"/>
6-
If a message contains only a link to an image, Discord sends **only** the image.
7-
8-
If a message has a link to an image AND some text, Discord sends **both** the link and the image.
9-
10-
To add image without posting the link use [$attachment](../Text/Embed/attachment.md)
11-
12-
To send link as a plain text wrap the function into graves like<code>\`$authorAvatar\`</code>
13-
:::
3+
Returns the avatar (profile picture) URL of the user who executed the command.
144

155
## Usage
166

177
```bash
18-
$authorAvatar[Return Server Avatar Instead (yes/no, default is no)]
8+
$authorAvatar[serverAvatar]
199
```
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.
2011

2112
## Examples
2213

23-
### Message contains text and link to image
14+
#### Sending avatar URL
2415

25-
<discord-messages>
26-
<discord-message :bot="false" role-color="#ffcc9a" author="crochet" avatar="https://cdn.discordapp.com/avatars/808007806266769458/768de61c5d90024e100ec5c058d3c2fe.webp?size=4096" >
27-
!!exec My avatar link: $authorAvatar<br/>
28-
Image attached below:
29-
</discord-message>
30-
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp" >
31-
My avatar link:
32-
<a href="https://cdn.discordapp.com/avatars/808007806266769458/768de61c5d90024e100ec5c058d3c2fe.webp?size=4096">
33-
https://cdn.discordapp.com/avatars/808007806266769458/768de61c5d90024e100ec5c058d3c2fe.webp?size=4096
34-
</a><br/>
35-
Image attached below:
36-
<DiscordReaction image="https://cdn.discordapp.com/avatars/808007806266769458/768de61c5d90024e100ec5c058d3c2fe.webp?size=4096"></DiscordReaction>
37-
</discord-message>
38-
</discord-messages>
39-
40-
### Message contains only link to image
16+
How is the avatar URL displayed when sent with text and without text
4117

42-
::: details Example
4318
<discord-messages>
44-
<discord-message :bot="false" role-color="#ffcc9a" author="crochet" avatar="https://cdn.discordapp.com/avatars/808007806266769458/768de61c5d90024e100ec5c058d3c2fe.webp?size=4096" >
45-
!!exec $authorAvatar
19+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
20+
!!exec With text: $authorAvatar
4621
</discord-message>
47-
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp" >
48-
<DiscordReaction image="https://cdn.discordapp.com/avatars/808007806266769458/768de61c5d90024e100ec5c058d3c2fe.webp?size=4096"></DiscordReaction>
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;" />
4927
</discord-message>
50-
</discord-messages>
51-
:::
52-
53-
### Send text and image without link
54-
55-
::: details Example
56-
<discord-messages>
57-
<discord-message :bot="false" role-color="#ffcc9a" author="crochet" avatar="https://cdn.discordapp.com/avatars/808007806266769458/768de61c5d90024e100ec5c058d3c2fe.webp?size=4096" >
58-
!!exec No link, only text and image<br/>
59-
$attachment[$authorAvatar]
28+
<discord-message :bot="false" role-color="#d6e0ff" author="User" avatar="https://cdn.discordapp.com/embed/avatars/0.png">
29+
!!exec $authorAvatar
6030
</discord-message>
61-
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp" >
62-
No link, only text and image
63-
<DiscordReaction image="https://cdn.discordapp.com/avatars/808007806266769458/768de61c5d90024e100ec5c058d3c2fe.webp?size=4096"></DiscordReaction>
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;" />
6433
</discord-message>
6534
</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>`).
6639
:::
6740

68-
### Send link as plain text
41+
##### Related functions: [$attachment](../Text/Embed/attachment.md)
6942

70-
::: details Example
71-
<discord-messages>
72-
<discord-message :bot="false" role-color="#ffcc9a" author="crochet" avatar="https://cdn.discordapp.com/avatars/808007806266769458/768de61c5d90024e100ec5c058d3c2fe.webp?size=4096" >
73-
!!exec <DiscordMarkdown>`$authorAvatar`</DiscordMarkdown><br/>
74-
</discord-message>
75-
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp" >
76-
<DiscordMarkdown>
77-
`https://cdn.discordapp.com/avatars/808007806266769458/768de61c5d90024e100ec5c058d3c2fe.webp?size=4096`
78-
</DiscordMarkdown>
79-
</discord-message>
80-
</discord-messages>
81-
:::
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/authorAvatar_ai.md

Lines changed: 0 additions & 93 deletions
This file was deleted.

guide/Member/authorID.md

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
11
# $authorID
2-
Returns the ID of the User that triggered the command.
32

4-
#### Usage: `$authorID`
5-
<br/>
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+
617
<discord-messages>
7-
<discord-message :bot="false" role-color="#ffcc9a" author="User">
8-
!!exec $authorID
9-
</discord-message>
10-
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp">
11-
683630053686378498
12-
</discord-message>
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>
1324
</discord-messages>
1425

15-
::: tip Related Functions
16-
[$mention](../Member/mention.md) ― to mention the author of a command!
17-
:::
26+
##### Related functions: [$mention](../Member/mention.md)
1827

19-
##### Function difficulty: <Badge type="tip" text="Easy" vertical="middle" />
20-
###### Tags: <Badge type="tip" text="authorID" vertical="middle" /> <Badge type="tip" text="cmd executor" vertical="middle" /> <Badge type="tip" text="command author" vertical="middle" /> <Badge type="tip" text="command" vertical="middle" /> <Badge type="tip" text="userID" vertical="middle" />
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/authorID_ai.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

guide/Member/ban.md

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,51 @@
11
# $ban
2-
Bans a user from the server
32

4-
#### Usage:
5-
`$ban[userID;reason;messages to delete (in days)]`
3+
Bans a user from the server.
64

7-
If member can be banned by the bot:
8-
<br/>
9-
<discord-messages>
10-
<discord-message :bot="false" role-color="#ffcc9a" author="Discord Moderator">
11-
!!exec $ban[$findMember[Unknown User];Spamming;7]
12-
</discord-message>
13-
</discord-messages>
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
1419

15-
If member can NOT be banned by the bot <Badge type="warning" text="Read Below why" vertical="middle" />
16-
<br/>
1720
<discord-messages>
18-
<discord-message :bot="false" role-color="#ffcc9a" author="Discord Moderator">
19-
!!exec $ban[$ownerID;I'm a bad moderator;7]
20-
</discord-message>
21-
<discord-message :bot="true" role-color="#0099ff" author="Custom Command" avatar="https://media.discordapp.net/avatars/725721249652670555/781224f90c3b841ba5b40678e032f74a.webp">
22-
❌ Failed to ban undefined!
23-
</discord-message>
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>
2424
</discord-messages>
2525

26+
#### Unsucessful ban
2627

27-
::: tip
28-
You can set days at maximum of 7 days, limitation from discord.
29-
:::
28+
Unsuccessful ban with error message
3029

31-
::: tip Why can't the bot ban a member?
32-
It could be, that your bot role, is below the member role!
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>
3338

34-
Discord prevents users (members/bots) from banning members above their highest role
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.
3541
:::
3642

37-
::: danger Be really careful with adding this to a command!
38-
EVERY member that can execute the command that this function is added in will be able to BAN everyone below the bot role!
39-
40-
We highly suggest, not putting the bot role above "Admin" and "head moderator"
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.
4146
:::
4247

43-
::: tip Related Functions
44-
[$kick](../Member/kick.md), to kick a member instead of banning him/here
45-
46-
[$unban](../Member/unban.md), to unban a member,which is banned
47-
:::
48+
##### Related functions: [$kick](../Member/kick.md) [$unban](../Member/unban.md)
4849

49-
##### Function difficulty: <Badge type="warning" text="Medium" vertical="middle" />
50-
###### 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" />
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" />

0 commit comments

Comments
 (0)