@@ -30,7 +30,7 @@ Edit this to change the output of the custom command {{.CCID}}!
30
30
31
31
Each custom command is assigned a unique incrementing ID, which cannot be modified after creation.
32
32
33
- {{< callout context="tip" title="Troubleshooting" icon="outline/rocket" >}}
33
+ {{< callout context="tip" title="Tip: Troubleshooting" icon="outline/rocket" >}}
34
34
35
35
![ Empty CC Discord Messages] ( empty_cc_1.png )
36
36
@@ -79,21 +79,13 @@ Selecting a group allows you to edit it. Changes must be saved (**11**) to take
79
79
Using role/channel restrictions, it is possible to set conditions on which users can trigger a custom command.
80
80
81
81
Specifically, whitelisted roles or channels are required to run the command, whereas blacklisted roles or channels
82
- cannot use the command at all.
82
+ cannot use the command at all. These role restrictions are unrelated to member permissions. Having ` Administrator `
83
+ permissions will not override these restrictions.
83
84
84
- {{< callout context="note" title="Note" icon="outline/info-circle" >}}
85
+ {{< callout context="note" title="Note: Priority of Ignored vs. Required Roles " icon="outline/info-circle" >}}
85
86
86
87
YAGPDB was raised well and honors a "no" when told "no". In other words, blacklists take precedence over whitelists.
87
88
88
- This is a relatively common trip-hazard, so take great care when you set up both whitelists and blacklists.
89
-
90
- {{< /callout >}}
91
-
92
- {{< callout context="note" title="Note" icon="outline/info-circle" >}}
93
-
94
- Role restrictions are unrelated to member permissions. Having ` Administrator ` permissions will not override these
95
- restrictions.
96
-
97
89
{{< /callout >}}
98
90
99
91
## Editing a Custom Command
@@ -125,7 +117,7 @@ commands like `customcommands` accept a CC ID as an argument.
125
117
126
118
Within a command response, the ID may be retrieved using the ` {{ .CCID }} ` template.
127
119
128
- {{< callout context="danger" title="Danger" icon="outline/alert-octagon" >}}
120
+ {{< callout context="danger" title="Danger: Deleting is Irreversible " icon="outline/alert-octagon" >}}
129
121
130
122
Deleting a custom command does not allow its ID to be reassigned. If you delete a CC, its ID is lost forever.
131
123
@@ -187,7 +179,7 @@ Reactions to a message will trigger the command.
187
179
188
180
Can specify ** Added Only** , ** Removed Only** , or ** Both** to restrict which types of Reactions will trigger the command.
189
181
190
- {{< callout context="tip" title="Filtering Emojis" icon="outline/rocket" >}}
182
+ {{< callout context="tip" title="Tip: Filtering Emojis" icon="outline/rocket" >}}
191
183
192
184
You cannot specify which emojis the command will trigger on. If you'd like to limit which emojis run the code, you will
193
185
need to write that code yourself in the response.
@@ -232,12 +224,8 @@ When editing an interval command, a **Run Now** button appears at the bottom of
232
224
long as the command is not disabled and a channel is selected. Running an interval command using this button reschedules
233
225
all subsequent runs based off the current time.
234
226
235
- {{< callout context="note" title="Note" icon="outline/info-circle" >}}
236
-
237
227
You must specify a channel to run interval commands in even if the command doesn't output a message.
238
228
239
- {{< /callout >}}
240
-
241
229
##### Component
242
230
243
231
[ In-depth Interactions Guide] ( /docs/reference/custom-interactions )
@@ -282,13 +270,6 @@ getting data from users, sending messages to other channels, and more. Visit the
282
270
283
271
{{< link-card href="/docs/reference/templates/syntax-and-data" description="Templates" target="_ blank" >}}
284
272
285
- {{< callout context="tip" title="Keeping your code safe" icon="outline/rocket" >}}
286
-
287
- It is recommended to save local copies of your custom commands. There is no way to recover deleted or overwritten CCs.
288
- Use an editor like ** Vim** , ** VS Code** , or ** Notepad++** for the best coding experience.
289
-
290
- {{< /callout >}}
291
-
292
273
### Custom Command Group
293
274
294
275
Dropdown selection (** 9** ) to change which command group the command is in. Select ` None ` to ungroup the command.
@@ -319,7 +300,7 @@ not send a response. It also increases if the command is run via `execCC`.
319
300
320
301
The run count will not increase if the user who ran the command did not pass the restrictions.
321
302
322
- {{< callout context="tip" title="Troubleshooting" icon="outline/rocket" >}}
303
+ {{< callout context="tip" title="Tip: Troubleshooting" icon="outline/rocket" >}}
323
304
324
305
If your command fails to run, check the run count. If the run count increases when you attempt to run the command, the
325
306
issue is with your code. Otherwise, the issue may be with YAGPDB's permissions in your server, or improperly configured
@@ -359,15 +340,15 @@ A custom command **will not save** if there is an error in your input. Examples
359
340
360
341
If you save a command with an interval trigger which has never been run, it will run immediately upon saving.
361
342
362
- {{< callout context="tip" title="Keeping your code safe " icon="outline/rocket" >}}
343
+ {{< callout context="tip" title="Tip: Keeping Your Code Safe " icon="outline/rocket" >}}
363
344
364
345
It is recommended to code your custom command using a local editor on your device. You will not be able to save your
365
346
code on the dashboard if there are syntax errors in your code. Use an editor like ** Vim** , ** VS Code** , or ** Notepad++**
366
347
for the best coding experience.
367
348
368
349
{{< /callout >}}
369
350
370
- {{< callout context="danger" title="Danger" icon="outline/alert-octagon" >}}
351
+ {{< callout context="danger" title="Danger: Remember to Save " icon="outline/alert-octagon" >}}
371
352
372
353
Custom commands do not autosave.
373
354
0 commit comments