Client.onSlash() - shysolocup/noscord.js GitHub Wiki

adds a new listener to SlashCommandRun events

JS
client.onSlash(async (ctx) => {       
    console.log("any command has been run");
});   

client.onSlash("my_command", async (ctx) => {       
    console.log("my command has been run");
});   

Function Sync

Arguments:

  • ?name String
    specific command name to listen for

  • callback Function
    callback ran when the event is fired




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