@@ -8,6 +8,8 @@ values you can send in your response or use as arguments for other functions.
8
8
9
9
<!-- more-->
10
10
11
+ ----
12
+
11
13
## Channel
12
14
13
15
These functions relate to channels and threads.
@@ -213,6 +215,8 @@ Removes the given member from the given thread.
213
215
214
216
Unpins the given forum post, which may be specified by its ID or name.
215
217
218
+ ----
219
+
216
220
## Database
217
221
218
222
These functions help you interact with the [ custom command database] ( /learn/intermediate/database ) .
@@ -376,6 +380,8 @@ Numerical `dict` keys are retrieved as an `int64`, therefore you'd have to write
376
380
377
381
{{< /callout >}}
378
382
383
+ ----
384
+
379
385
## Encoding and Decoding
380
386
381
387
### decodeBase64
@@ -447,6 +453,8 @@ byte `0xAB`.
447
453
Returns the escaped value of the textual representation of the arguments in a form suitable for embedding in a URL
448
454
query.
449
455
456
+ ----
457
+
450
458
## Executing Custom Commands
451
459
452
460
These functions enable you to execute a custom command within an already running custom command.
@@ -472,6 +480,8 @@ Executes another custom command specified by `ccID`.
472
480
- ` delay ` : the delay in seconds before executing the custom command.
473
481
- ` data ` : some arbitrary data to pass to the executed custom command.
474
482
483
+ Calling ` execCC ` with 0 delay sets ` .StackDepth ` to the current recursion depth and limits it to 2.
484
+
475
485
#### Example
476
486
477
487
The following example showcases a custom command executing itself.
@@ -502,6 +512,8 @@ Schedules a custom command execution to occur in the future, identified by `key`
502
512
503
513
To cancel such a scheduled custom command before it runs, use [ cancelScheduledUniqueCC] ( #cancelscheduleduniquecc ) .
504
514
515
+ ----
516
+
505
517
## Interactions
506
518
507
519
{{< callout context="tip" title="Tip" icon="outline/rocket" >}}
@@ -745,6 +757,8 @@ This text is invisible to others!
745
757
Returns the response or follow-up with the specified message ID belonging to the given interaction as a [ message
746
758
object] ( /docs/reference/templates/syntax-and-data#message ) . Is also valid for ephemeral messages.
747
759
760
+ ----
761
+
748
762
## Math
749
763
750
764
### add
@@ -952,6 +966,8 @@ Returns the square root of X as a floating-point number.
952
966
953
967
Subtracts the provided numbers from each other. Detects the first number's type and returns the result accordingly.
954
968
969
+ ----
970
+
955
971
## Member
956
972
957
973
### editNickname
@@ -1040,6 +1056,8 @@ Returns the count of online members on the current server, including bots.
1040
1056
1041
1057
Returns whether the specified member has the specified permission bit.
1042
1058
1059
+ ----
1060
+
1043
1061
## Mentions
1044
1062
1045
1063
Certain mentions are escaped by default, such that they don't ping. These functions help you actually * pinging* these
@@ -1087,6 +1105,8 @@ Mentions the role with the given name without escaping it. Searches for first ca
1087
1105
1088
1106
Prefer [ mentionRoleID] ( #mentionroleid ) , as IDs are guaranteed to be unique and do not change with role edits.
1089
1107
1108
+ ----
1109
+
1090
1110
## Message
1091
1111
1092
1112
### addMessageReactions
@@ -1357,6 +1377,8 @@ Sends a message in the specified channel.
1357
1377
1358
1378
Unpins the specified message.
1359
1379
1380
+ ----
1381
+
1360
1382
## Miscellaneous
1361
1383
1362
1384
### adjective
@@ -1396,7 +1418,7 @@ All keys are optional, but the Discord API will reject completey empty embeds, s
1396
1418
- ` footer ` : Shows some details at the very bottom of the embed. Is an sdict with the following keys:
1397
1419
- ` text ` : the footer's text
1398
1420
- ` icon_url ` : a small icon to display to the left of the footer's text
1399
- - ` timestamp ` : a (static) timestamp to display to the right of the footer's text
1421
+ - ` timestamp ` : a (static) timestamp to display to the right of the footer's text
1400
1422
1401
1423
{{< callout context="tip" title="Tip" icon="outline/rocket" >}}
1402
1424
@@ -1672,6 +1694,8 @@ Limited to 1 call on regular servers and 3 calls on premium servers.
1672
1694
1673
1695
Returns a random verb.
1674
1696
1697
+ ----
1698
+
1675
1699
## Role functions
1676
1700
1677
1701
### addRole
@@ -1897,6 +1921,8 @@ Reports whether the specified target has the specified role ID.
1897
1921
Reports whether the specified target has the specified role name (case-insensitive).
1898
1922
` target ` may be a user ID, mention, or user object, but must be a member of the server.
1899
1923
1924
+ ----
1925
+
1900
1926
## String manipulation
1901
1927
1902
1928
{{< callout context="note" title="Note" icon="outline/info-circle" >}}
@@ -2070,6 +2096,8 @@ Returns the string with all leading and trailing white space removed.
2070
2096
2071
2097
Converts ` string ` to all uppercase and returns the result.
2072
2098
2099
+ ----
2100
+
2073
2101
## Time
2074
2102
2075
2103
### currentTime
@@ -2226,6 +2254,8 @@ function e.g.
2226
2254
{{< /callout >}}
2227
2255
2228
2256
2257
+ ----
2258
+
2229
2259
## Type conversion
2230
2260
2231
2261
### structToSdict
@@ -2295,6 +2325,8 @@ Converts the given string to a slice of runes (Unicode code points).
2295
2325
2296
2326
Converts the input to a string, returning the empty string for invalid inputs.
2297
2327
2328
+ ----
2329
+
2298
2330
## User
2299
2331
2300
2332
### currentUserAgeHuman
0 commit comments