Skip to content

Client.on()

github-actions[bot] edited this page Sep 30, 2024 · 9 revisions

adds a new listener to a given event(s)

JS
client.on("send", async (ctx) => {       
    console.log(ctx);
});   

Function Sync

Arguments:

  • event(s) String or Array
    all of the events you want to listen to

  • callback Function
    callback ran when the event is fired




🛈 Client

🛈 AddonService

🛈 AttachmentService

🛈 ChannelService

🛈 CommandService

🛈 ComponentService

🛈 ErrorService

🛈 EventService

🛈 ExpressionService

🛈 GuildService

🛈 LogService

🛈 MessageService

🛈 PermissionService

🛈 RoleService

🛈 StorageService

🛈 TypeService

🛈 UserService

🛈 UtilService

🛈 VoiceService


Clone this wiki locally