Receiving & Handling the Event
Here is the bare-bones code for receiving the event, as well as an example where you can respond to the event by utilizing if statements to detect the command sent.
Send an Interaction Response object
client.ws.on('INTERACTION_CREATE', async interaction => {
// do stuff and respond here
})
Last updated
Was this helpful?