How to Make a Custom Command on Discord
A custom command is a word members type, like !rules, that makes a bot answer. Here is how to build one in Tickety, plus arguments for commands such as !suggest and !report.
Tickety TeamNovember 28, 20264 min readTo make a custom command on Discord, use a bot that answers when a message starts with a word you choose. In Tickety, open the dashboard, click Automations under Server, press Create New Automation, set What Makes It Post to A command, type the command (for example !rules) under The Command Members Type and write the reply. When a member types !rules, Tickety answers.
A typed command, not a slash command
Tickety's custom commands are typed message triggers. They do not appear in Discord's / menu and they have no autocomplete. Tickety reads each message and answers when it starts with your command. Slash commands have to be registered with Discord by a bot, and Tickety's own, such as /poll create, are built in.
A few rules follow from that:
- Any text works as the command. A prefix such as
!keeps it from firing on normal chat. - The message has to start with the command, and the word has to end where your command ends.
!rulesfires on!rulesand!rules please, but not on!rulespleaseorread the !rules. - Capitals Have to Match is off by default, so
!Rulesworks too.
Want Tickety to answer without anyone typing a command, for example when a member mentions refunds? That is an auto responder, built the same way with a different trigger.
How to make the command
- Open Automations. Add Tickety with the invite link if you have not yet. On the dashboard, pick your server, click Automations under Server and press Create New Automation.
- Name it. Under Automation Settings, type a Name, like Rules command. Members never see it.
- Pick A command. Under Automation Flow, open What Makes It Post and pick A command.
- Type the command. Enter it under The Command Members Type, for example
!rules. - Write the reply. In the Send a message step, type the answer in The Message, up to 2,000 characters, or build an embed.
- Pick where it posts. Under Where It Posts, choose Reply where it fired, Post to a channel or Send them a DM.
- Tidy up (optional). Press Add a step and add Delete the message, so the command itself disappears once Tickety has answered. It is free.
- Create it. Press Create at the top of the page. It works straight away, so type the command in a test channel.
Add arguments for commands like !suggest
An argument is a detail a member types after the command. It turns a fixed reply into a real command. To build !suggest followed by an idea:
- In the When box, press Add an argument.
- Set Name to
ideaand leave Type on Text. - Turn on Members Must Provide It. A member who types just
!suggestthen gets a usage line instead of an empty post. - Turn on Takes the Rest of the Message, so the whole sentence is captured and not only the first word.
- Put
{args.idea}in your reply, and set Where It Posts to Post to a channel with your suggestions channel.
Other types are Number, One of a list, A list of items, A member, A role, A channel and Yes or no. Free automations take 3 arguments, Premium 10. A list can turn into buttons, which is how the Vote Command template makes a member's question and choices into a vote with live counts. For polls staff plan ahead, see how to make a poll on Discord.
The automations page also has a ready Suggest Command template and a Shoutout Command template, if you would rather start from one.
Command ideas
!rulesor!links: a fixed reply, with an Open a link button to your rules page or store.!report: one argument of type A member and one text reason, posted to a private staff channel with Post to a channel.!close: add the free Close the ticket step and the condition It happens in a ticket. The step runs the same permission checks as Tickety's own close command.- Staff only commands: add the condition The member has one of these roles.
Common problems
- A command does nothing. It has to be followed by a space or end the message. Check that Automation Enabled is on, and remember bots are always ignored. On the free plan only your first 10 switched on automations run.
- Two commands overlap. One message fires one automation, and the longer, more specific command wins.
- The reply shows
{args.something}as text. That argument name is spelled differently in your reply than under Name.
The arguments docs cover every type and separator, and the automation bot page lists every trigger and step.
Frequently asked questions
Can I make a custom slash command on Discord with Tickety?
No. Tickety custom commands are typed triggers such as !rules that start a message. Slash commands have to be registered with Discord by a bot, and Tickety's slash commands are its own built in ones.
Does a custom command need a prefix like !?
No, the command can be any text. Because the message has to start with it, a prefix such as ! stops it firing on normal conversation.
Are custom commands free?
Yes. Your first 10 switched on automations run on the free plan, with up to 3 arguments each. Premium, at €5.99 a month or €49.99 a year per server, runs every automation and allows 10 arguments.
How do I make a command only staff can use?
In the If box, press Add a condition and pick The member has one of these roles, then choose your staff roles. Everyone else can type the command and nothing happens.