Interactions/Application Commands are the most important building block when it comes to discord bots nowadays.
The goal of this guide is to teach you how you can create and respond to application commands using the default (raw) listeners.
If you would like you can also inject transformers to aid you doing this, refer to the transformers page for that.
Registering Commands
Registering an application command is the first step of this journey.
Using the setup api
The recommended way of doing this is by using the setup api, we talk more about why in this page.
Creating the listener/handler for our commands
Above we created a command called ping and now we want to handle it, lets create a simple handler to do this.
Putting everything together
Now, everything left for us to do is put it all together.