Skip to main content
Version: Next

Interactions

TSCord uses decorators from discordx to handle interactions.

caution

Because the template is overriding the default behavior of some of these decorators, you should always import them from @/decorators rather than discordx!

Here is a relevant list of them, linked to the corresponding discordx documentation:

Responding to interactions

TSCord is deferring every command interaction (slashes and context menus) by default, so you should use .followUp() instead of .reply().

If you want to get rid of this automatic deferring, you can disable it in the general config file (src/config/general).

There's also the replyToInteraction() util function that abstract the response to either an interaction or a simple command message.

Built-in commands

There are several built-in slash commands:

Command nameDescription
helpGet all the commands and their descriptions, grouped by categories
infoShow general information about the bot
inviteGive the link to invite the bot on any server
pingPong!
statsDisplay stats like total amount of users using the bot, number of guilds, etc