Currently, this templete just provide the slash command, components(button, select manue, text input), and message framework. Other functions will be added soon.
app.js, deploy.js, utils.js, command.js, clearAllRegisteredURL.js are basic framework for a discord bot.
app.jsimplements the main process flow.deploy.jsregister and publish new public slash commands to related discord guild.utils.jsandcommand.jsprovide some basical tools with original api.clearAllRegisteredURL.jsremoves all the registered commands.
- dir
./commandsis for slash command, one can develop their own slash commands there.ping.jsin./commandsmakes an example oftext inputcomponent, which is not directly supported byMessageActionRoworBaseMessageComponent.text inputis a special component based onmodal.
- dir
./buttonis for buttons components. - dir
./selectis for selectMenu components. - dir
./messageis for responses to some user defined channel messages. - dir
./modalis for responses to modal such astext input.