Skip to main content

Prefix and slash commands

Check the current prefix with .prefix; an Administrator can change it with .prefix set <new> or reset it. You can also use /prefix with new_prefix when the slash command is available. Slash commands provide each argument in a Discord field.

Arguments and mentions

In documentation, <required> and [optional] are notation: do not type the brackets. A list such as <on|off> means choose one listed value. Use Discord’s mention/selector when a command expects a member, role, or channel argument.

Durations and flags

Headless has no universal duration grammar. For example, Honeyspot accepts compact values such as 60m or 1w2d, while .vanity timeout 10 means ten minutes. -- options belong only to commands that document them; type two ASCII hyphens, not an em dash —.

Syntax that is not inherited

The select:ID format, --do punishment sets, and another bot’s duration units are not general Headless syntax. Follow the specific command page and do not copy flags from unrelated features.

Steps

1

Open the command guide

Confirm prefix, required arguments, options, and permissions before copying an example.
2

Replace only the values

Change mentions, channel, duration, or sample text to your server’s values; do not include notation brackets.
3

Test without sanction

For moderation rules, start in a logging or preview mode if the command provides one.

Examples by syntax family

Configure an Anti-Nuke module

Change the command prefix

.prefix

.prefix set

.prefix reset

.antinuke status

Anti-Nuke channel protection

The channel module uses the same action parser as other rules. stripstaff is a supported option, and .an is the short alias for .antinuke.

Configure mass joins

Other feature-specific durations

Punishment flags can trigger real actions. Verify the exact command and mode before enabling kick, ban, or another sanction.