README
Welcome to discord-cmds.js
Welcome
in this docs you will get all information about the npm package and how to use it!
Example
module.exports = {
name: 'say',
description: 'Shows latency ping!',
options: [{
name: 'input',
type: 'STRING',
description: 'The input to echo back',
required: true,
}],
run: async({ interaction, type, client, args, reply, editReply }) => {
if(type === "MESSAGE") {
await interaction.channel.send({ content: "Hi" })
} else {
await interaction.reply({ content: "Hi" })
}
}
}
Check out the pages below!
pages for handler information!
pages for some specific docs!
Last updated