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

removes a listener to a given event(s)

JS
async function callback(ctx) {       
    console.log(ctx);
}

client.on("send", callback); // adds the listener
client.off("send", callback); // removes the listener

Function Sync

Arguments:

  • event(s) String or Array
    all of the events you want to remove a listener from

  • callback Function
    callback for the listener




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