File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/content/docs/guides/other Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ id: macros
20
20
21
21
## Syntax
22
22
23
- To create a macro, use ` <client>.macro() ` and define a name and a code block.
23
+ To create a macro, use ` \ <client\ >.macro()` and define a name and a code block.
24
24
25
25
``` js
26
- < client> .macro ({
26
+ \ < client\ > .macro ({
27
27
name: " macroName" ,
28
28
code: ` aoi.js functions`
29
29
});
@@ -32,7 +32,7 @@ To create a macro, use `<client>.macro()` and define a name and a code block.
32
32
You can define multiple macros at once:
33
33
34
34
``` js
35
- < client> .macro (
35
+ \ < client\ > .macro (
36
36
{
37
37
name: " logmessage" ,
38
38
code: ` $log[Hello world!]`
@@ -67,7 +67,7 @@ This will insert the code block defined in the macro at that point in your comma
67
67
Defining and using multiple macros:
68
68
69
69
``` js
70
- < client> .macro ({
70
+ \ < client\ > .macro ({
71
71
name: ' logmessage' ,
72
72
code: ' $log[aoi.js bot just started c:]'
73
73
}, {
@@ -76,19 +76,19 @@ Defining and using multiple macros:
76
76
});
77
77
```
78
78
``` js
79
- < client> .readyCommand ({
79
+ \ < client\ > .readyCommand ({
80
80
code: `
81
81
#logmessage
82
82
$log[Starting..]
83
83
`
84
84
});
85
85
```
86
86
``` js
87
- < client> .command ({
87
+ \ < client\ > .command ({
88
88
name: " eval" ,
89
89
code: `
90
90
$eval[$message]
91
91
#onlyDevelopers
92
92
`
93
93
});
94
- ```
94
+ ```
You can’t perform that action at this time.
0 commit comments