You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| sep? |[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| Separator used between command names. Default is `,`. | false |
20
+
21
+
## Example(s)
22
+
23
+
This will return all slash commands separated by a comma and a space:
| attachment |[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| Content of the attachment, preferably a URL. | true |
20
-
| name |[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| Attachment name. | true |
| attachment | string (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| Content of the attachment, preferably a URL. | true |
20
+
| name | string (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| Attachment name. | true |
| encoding? | string (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| Encoding to use if type is `buffer` (e.g., "utf-8", "base64"). | false |
| sep? |[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| Separator used between prefixes. Default is `,`. | false |
20
+
21
+
15
22
## Example(s)
16
23
17
-
This will return all your prefixes separated by a comma (`,`):
24
+
This will return all your prefix(es) separated by a comma and a space:
| index |[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| The index of the embed which you want to clone. <br /> 1. **all** <br /> 2. **number**| true |
20
-
| messageID |[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| The ID of the embed message that will be cloned. |true |
21
-
| channelID? |[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| The ID of the channel that you sent the embed message. |false |
| index |[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| The index of the embed to clone. <br /> 1. **all** <br /> 2. **number**|true|
20
+
| messageID |[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| The ID of the message containing the embed to be cloned. | true|
21
+
| channelID? |[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| The ID of the channel where the message is located. Defaults to the current channel.| false|
22
+
| returnJSON? |[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)| Whether to return the embed(s) as raw JSON instead of attaching them. | false |
23
23
24
24
## Example(s)
25
25
26
26
This will clone the previous embed and edit the title after 15 seconds:
27
27
28
-
```javascript
29
-
client.command({
30
-
name:"cloneEmbed",
31
-
code:`
32
-
$title[Bye!]
33
-
$cloneEmbed[all;$get[messageID];$channelID]
34
-
35
-
$wait[15s]
36
-
$let[messageID;$sendMessage[{newEmbed: {title:Hello!} {description:I'll edit this message in 15 seconds.}};true]]
37
-
`
38
-
});
39
-
```
28
+
```javascript
29
+
client.command({
30
+
name:"cloneEmbed",
31
+
code:`
32
+
$title[Bye!]
33
+
$cloneEmbed[all;$get[messageID];$channelID]
34
+
35
+
$wait[15s]
36
+
$let[messageID;$sendMessage[{newEmbed: {title:Hello!} {description:I'll edit this message in 15 seconds.}};true]]
37
+
`
38
+
});
39
+
```
40
+
41
+
This will return the cloned embed as raw JSON instead of displaying it:
42
+
43
+
```javascript
44
+
client.command({
45
+
name:"cloneEmbed",
46
+
code:`
47
+
$cloneEmbed[all;$get[messageID];$channelID;true]
48
+
$let[messageID;$sendMessage[{newEmbed: {title:Data Collected} {description:Storing raw embed JSON.}};true]]
| channelID |[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| The channel of where the message is present in. | true |
20
-
| messageID |[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| The message ID. | true |
| channelID |[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| The channel of where the message is present in. | true |
20
+
| messageID |[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| The message ID. | true |
| channelID? |[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| The ID of the channel where the message is located. Defaults to the current channel if not provided. | false |
20
+
| messageID |[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| The ID of the message to get reactions from. | true |
21
+
| type? |[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| The type of data to return: <br /> 1. **emoji** (default) – emoji format <br /> 2. **name** <br /> 3. **id**| false |
22
+
| sep? |[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| Separator to separate multiple returned values. Default is `, `. | false |
23
+
24
+
## Example(s)
25
+
26
+
This command returns the list of emoji reactions (formatted) on a specific message:
27
+
28
+
```javascript
29
+
client.command({
30
+
name:"getMessageReactions",
31
+
code:`
32
+
$getMessageReactions[$channelID;112233445566778899;emoji;, ] $comment[Example message ID provided.]
33
+
`
34
+
});
35
+
```
36
+
37
+
This command returns only the names of the emoji reactions:
38
+
39
+
```javascript
40
+
client.command({
41
+
name:"getMessageReactions",
42
+
code:`
43
+
$getMessageReactions[$channelID;112233445566778899;name] $comment[Example message ID provided.]
|**\{top\}**|[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| Returns the position of the user. |
29
29
|**\{username\}**|[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| Returns the username. |
30
+
|**\{nickname\}**|[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| Returns the nickname. |
30
31
|**\{tag}**|[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| Returns the username and discriminator. |
31
32
|**\{id\}**|[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| Returns the user ID. |
32
33
|**\{value\}**|[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| Returns the variable value. |
| type? |[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| The option on how to return the roles <br /> 1. **name** (default) <br /> 2. **id** <br /> 3. **mention**| false |
21
21
| sep? |[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)| Separator to separate multiple returned values. | false |
22
22
| removeManagedRoles? |[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)| Remove Managed Roles from the result. | false |
23
+
| removeBotRoles? |[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)| Remove roles associated with bots from the result. | false |
23
24
| fetch? |[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)| Fetch all roles of the guild. | false |
24
25
25
26
## Example(s)
26
27
27
-
This will return all roles of your guild:
28
+
This will return all roles of your guild by name, separated by commas, excluding managed and bot roles:
| guildID? |[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| The guild ID. | false |
20
+
| fetchFirst?|[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)| Whether to fetch fresh vanity URL data from API. | false |
20
21
21
22
## Example(s)
22
23
23
-
This will return the vanity URL of your guild, if you have one:
24
+
This will return the vanity URL of your guild, fetching fresh data:
| guildID? |[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)| The guild ID. | false |
20
+
| fetchFirst?|[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)| Whether to fetch fresh vanity URL data from API. | false |
20
21
21
22
## Example(s)
22
23
23
-
This will return the uses of your guild's vanity URL, if you have one:
24
+
This will return the uses of your guild's vanity URL, fetching fresh data:
0 commit comments