mirror of
https://github.com/sern-handler/website
synced 2026-06-19 22:32:23 +00:00
15 lines
604 B
Markdown
15 lines
604 B
Markdown
---
|
|
sidebar_position: 8
|
|
---
|
|
|
|
# The SernEmitter class
|
|
You're shipped with the SernEmitter. This EventEmitter listens to
|
|
- command modules executing and its status, the `module.activate` event
|
|
- command modules registered and its status, the `module.register` event
|
|
- On default, sern creates a single SernEmitter for your bot process.
|
|
- any error that occurs, the `error` event
|
|
- `warn` events, where it is possible to throw errors
|
|
|
|
You can put these and other event listeners into [event modules](./first-event.md)!
|
|
<br/>View all <a href="https://sern.dev/docs/api/modules#serneventsmapping">events</a>
|