@@ -30,7 +30,7 @@ Edit this to change the output of the custom command {{.CCID}}!
3030
3131Each custom command is assigned a unique incrementing ID, which cannot be modified after creation.
3232
33- {{< callout context="tip" title="Troubleshooting" icon="outline/rocket" >}}
33+ {{< callout context="tip" title="Tip: Troubleshooting" icon="outline/rocket" >}}
3434
3535![ Empty CC Discord Messages] ( empty_cc_1.png )
3636
@@ -79,21 +79,13 @@ Selecting a group allows you to edit it. Changes must be saved (**11**) to take
7979Using role/channel restrictions, it is possible to set conditions on which users can trigger a custom command.
8080
8181Specifically, 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.
8384
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" >}}
8586
8687YAGPDB was raised well and honors a "no" when told "no". In other words, blacklists take precedence over whitelists.
8788
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-
9789{{< /callout >}}
9890
9991## Editing a Custom Command
@@ -125,7 +117,7 @@ commands like `customcommands` accept a CC ID as an argument.
125117
126118Within a command response, the ID may be retrieved using the ` {{ .CCID }} ` template.
127119
128- {{< callout context="danger" title="Danger" icon="outline/alert-octagon" >}}
120+ {{< callout context="danger" title="Danger: Deleting is Irreversible " icon="outline/alert-octagon" >}}
129121
130122Deleting a custom command does not allow its ID to be reassigned. If you delete a CC, its ID is lost forever.
131123
@@ -187,7 +179,7 @@ Reactions to a message will trigger the command.
187179
188180Can specify ** Added Only** , ** Removed Only** , or ** Both** to restrict which types of Reactions will trigger the command.
189181
190- {{< callout context="tip" title="Filtering Emojis" icon="outline/rocket" >}}
182+ {{< callout context="tip" title="Tip: Filtering Emojis" icon="outline/rocket" >}}
191183
192184You cannot specify which emojis the command will trigger on. If you'd like to limit which emojis run the code, you will
193185need 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
232224long as the command is not disabled and a channel is selected. Running an interval command using this button reschedules
233225all subsequent runs based off the current time.
234226
235- {{< callout context="note" title="Note" icon="outline/info-circle" >}}
236-
237227You must specify a channel to run interval commands in even if the command doesn't output a message.
238228
239- {{< /callout >}}
240-
241229##### Component
242230
243231[ 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
282270
283271{{< link-card href="/docs/reference/templates/syntax-and-data" description="Templates" target="_ blank" >}}
284272
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-
292273### Custom Command Group
293274
294275Dropdown 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`.
319300
320301The run count will not increase if the user who ran the command did not pass the restrictions.
321302
322- {{< callout context="tip" title="Troubleshooting" icon="outline/rocket" >}}
303+ {{< callout context="tip" title="Tip: Troubleshooting" icon="outline/rocket" >}}
323304
324305If your command fails to run, check the run count. If the run count increases when you attempt to run the command, the
325306issue 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
359340
360341If you save a command with an interval trigger which has never been run, it will run immediately upon saving.
361342
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" >}}
363344
364345It is recommended to code your custom command using a local editor on your device. You will not be able to save your
365346code on the dashboard if there are syntax errors in your code. Use an editor like ** Vim** , ** VS Code** , or ** Notepad++**
366347for the best coding experience.
367348
368349{{< /callout >}}
369350
370- {{< callout context="danger" title="Danger" icon="outline/alert-octagon" >}}
351+ {{< callout context="danger" title="Danger: Remember to Save " icon="outline/alert-octagon" >}}
371352
372353Custom commands do not autosave.
373354
0 commit comments