Registers a slash command
client.addCommand(new SlashCommandBuilder()
.name('ping')
.description('Pong!')
.handler((inter) => {
return {
type: 4,
data: {
content: 'Pong!',
},
};
}),
);
The builder for the slash command
Processes an interaction
client.processInteraction(interaction);
The interaction to process
Generated using TypeDoc
A client for interacting with Discord's API and handling interactions