Creating your first prefix command
Simple Prefix Command
A guide to creating a command for Discord wouldn't be a guide if it didn't have the ping command. See below how to create it using the Seface Kit!
commands/ping.js
Remember, you must name the constant as command, otherwise the TypeError: Cannot read properties of undefined
will be returned.
Advanced Prefix Command
Now let's see how we can create a advanced command.
commands/moderation/kick.js
Adding Aliases
To add aliases to Prefix Commands, just add the aliases
property.
commands/ping.ts
commands/ping.js
Last updated