DEV Community

Discussion on: How to implement, test and mock Discord.js v13 slash commands with Typescript

Collapse
 
heymarkkop profile image
Mark Kop

Sure! The commandData is the return of a new SlashCommandBuilder() from @discordjs/builders and the SubliCommand is an extended class that is responsible for processing the command and triggering the interaction reply method.

You can check the implementation I'm using by tracking this test file and this command file:

github.com/Markkop/corvo-astral/bl...

github.com/Markkop/corvo-astral/bl...