FiveUnityManual

Custom commands

Canned replies your staff post with one slash command: someone runs /cmd name:transfer in Discord and the bot posts the answer you wrote once, on the dashboard.

Note

Where: Dashboard โ†’ Content โ†’ Custom commands ยท In Discord: /cmd, then pick the command from the list, for example /cmd name:transfer

#How it works

Every custom command has a name. In Discord, a staff member types /cmd, starts typing in the name option, and picks the command from the list. The list only shows the commands that person may use in that channel, with each command's description beside its name. The bot then posts your reply in the channel for everyone to see.

/cmd has two optional extras:

  • user: who the reply is for. It fills {user}, so the reply can ping that member.
  • text: anything extra the reply needs. It fills {args}.

If someone runs a command they are not allowed to use, or its cooldown has not finished, only they see a short note saying so.

Note

Custom commands used to be typed with a prefix, such as !transfer. They now run through /cmd, and the prefix setting is gone. Every command you already had works as /cmd name:<command> with nothing to change.

#Create a command

Fill in New command and press Add command. A server can hold up to 100 custom commands.

SettingWhat it does
CommandThe name, run as /cmd name:<name>. Lowercase letters, numbers, dashes, and underscores, up to 32 characters. Must be unique across all names and aliases in the server.
AliasesUp to 5 other names that run the same command, comma separated.
DescriptionUp to 120 characters. Shown next to the name in the /cmd list, so staff know what the command is for.
ResponseThe reply text, required, up to 1,800 characters.
Who can use itStaff, Specific roles, or Everyone (see below).
RolesShown when Specific roles is chosen. Pick up to 25 roles; at least one is required.
Only inLimit the command to channels or categories (up to 25). Leave it empty to allow it everywhere; picking a category covers every channel inside it.
Reply styleText for a normal message, or Embed for a card.
Embed titleEmbed style only. Up to 100 characters.
Embed colourEmbed style only. A hex colour; blank uses Discord blurple.
Who ran itHide it posts the reply as a plain bot message, without Discord's "used /cmd" line above it. Show it keeps that line.
Cooldown (seconds)Per channel, 0-3600. 0 means no cooldown.

A live Preview under the response box shows what Discord will render, with sample values filled into the placeholders.

#Placeholders

PlaceholderBecomes
{user}The member picked in the user option, otherwise whoever ran the command.
{author}Whoever ran the command.
{args}Whatever was typed in the text option.
{channel}The current channel.
{server}The server name.
{prefix}/cmd (kept so older replies such as "use {prefix}transfer" still read right).
#channel-nameA channel name written in the response becomes a clickable channel link.
Note

Your response text can mention users and roles normally. Text a member types in the text option ({args}) has role mentions stripped out, so nobody can use a command to make the bot ping a role.

#Who can use a command

ChoiceWho it covers
StaffAdministrators, plus roles in a permission group. See Permissions.
Specific rolesMembers with at least one of the roles you pick. Administrators and anyone with Manage Server can always use it too.
EveryoneAny member of the server.

#Edit, disable, and delete

Every command in Your commands shows its name and aliases, who can use it, badges for embed style, channel limits, cooldown, and whether it is disabled, plus how many times it has been used and when it was last used.

  • Edit opens the same fields inline; Save changes applies them.
  • The switch on the right turns a command off without deleting it. A disabled command no longer shows in the /cmd list.
  • Delete removes it for good, after a confirmation.

Changes take effect in Discord straight away; there is nothing to reload or re-register.

#How they differ from FiveUnity's own slash commands

Custom commandsBuilt-in slash commands
Run as/cmd name:<command>, picked from a list/name
Where they come fromWritten by you on this pageBuilt into FiveUnity
Optionsuser and textStructured options Discord validates
Who can use themStaff / specific roles / everyone, set per commandPermission groups, set in Permissions
Channel limits and cooldownsSet per command hereSet in Slash commands

All custom commands share the one /cmd slash command because Discord allows 100 slash commands per server and FiveUnity's own already use most of them.

If you want an answer members can discover for themselves, a documentation page is usually the better home; see Documentation.

#Tips

Tip

Give long commands a short alias (transfer with the alias tf) so staff can answer quickly during a busy queue.

Tip

Turn on Hide who ran it for commands used in public channels. The channel then shows only the answer.

Tip

Set a small cooldown on commands that post large embeds so a single channel cannot be flooded with them.

  • Embeds: one-off rich messages and reusable announcements.
  • Documentation: full guides at your own FiveUnity link.
  • Permissions: what counts as staff.
  • Slash commands: channel limits and cooldowns for the built-in commands.