Skip to content

Client.off()

paige edited this page Feb 13, 2024 · 9 revisions

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




🛈 Client

🛈 AddonService

🛈 AttachmentService

🛈 ChannelService

🛈 CommandService

🛈 ComponentService

🛈 ErrorService

🛈 EventService

🛈 ExpressionService

🛈 GuildService

🛈 LogService

🛈 MessageService

🛈 PermissionService

🛈 RoleService

🛈 StorageService

🛈 TypeService

🛈 UserService

🛈 UtilService

🛈 VoiceService


Clone this wiki locally