README
Welcome to discord-cmds.js
Welcome
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" })
}
}
}Last updated