Use of Prefix
Skylaza opened this issue · comments
I mean that instead of using slash command there should be a option for using the command just by the bot's prefix that would be really helpful for those which use prefix to run their commands you already have made this please send me the docs file of that
Hello, yes you can switch from slash command to text command if you want.
In order to do that, you have to set the config value "command" to an empty string and config value "textCommand" with prefix that you want.
Here is an example of what you can do (in the wiki): https://github.com/utarwyn/discord-tictactoe/wiki/Usage-examples-with-Node.js#use-text-command-instead-of-slash-command-discordjs-v13
You can also find few explanations in config interfaces:
discord-tictactoe/src/config/CommandConfig.ts
Lines 7 to 20 in 6cf6ba2