Bot.ts
  • Introduction
  • Installation
  • Configuration
  • Migrate to v9
  • Troubleshooting
  • Command line
    • CLI Overview
    • Docker
    • Build
    • Start
    • Format
    • Lint
    • Test
    • Update
    • Readme
    • Final
  • Usage
    • Command
    • Listener
    • Button
    • Namespace
    • Cron
    • Logger
    • Paginator
    • Database
    • Caching
    • Custom types
  • Native commands
    • Eval
    • Help
    • Database
    • Terminal
    • Turn
    • Info
  • Command examples
    • Prefix
  • Utilities
    • Texts
    • Paths and URLs
    • Dates and durations
    • Special events
    • Other
  • Deployment
    • Production
    • Development
  • Contributing
    • Regulations
    • Coding Style
  • Annexes
    • Discord Support
Powered by GitBook
On this page
  • Create a listener
  • CLI pattern
  • Additional events

Was this helpful?

  1. Usage

Listener

PreviousCommandNextButton

Last updated 6 months ago

Was this helpful?

Create a listener

Like the commands, it is recommended to use the to correctly generate the body of the listener.

CLI pattern

bot add listener

Additional events

For the proper functioning of the framework, some additional events have been added. Here is a list.

interface MoreClientEvents {
  /** Already existing event. I just added the typing */
  raw: [packet: GatewayDispatchPayload]

  /** Called after the end of all "ready" listeners */
  afterReady: [Client<true>]
}
CLI