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 Responsearrow-up-right object

circle-info
bot.js
client.ws.on('INTERACTION_CREATE', async interaction => {
  // do stuff and respond here
})

Last updated