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

adds a new listener to prefix command run events

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

client.onPrefix("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** ⚠️