SlashCommand.data - shysolocup/noscord.js GitHub Wiki

function data for the slash command that's fired off when it is ran
the data is always the last argument given

type: Function

commands.create("example1", "example desc", (ctx) => {
    // do stuff
});


commands.create({ name: "example2", desc: "example desc" }, (ctx) => {
    // do stuff
});


⚠️ **GitHub.com Fallback** ⚠️