| Recommend this page to a friend! |
| Packages of Max | Fenrir | examples/02-listening-to-raw-events.md | Download |
|
|
||||||||||||||||||||
Listening to raw eventsWhile Fenrir should cover most Events out of the box, you can also opt to listen to raw events, as they are emitted from Discord with minimal processing. These raw events are also used internally, unless you have vast knowledge of Discords Gateway and Fenrirs internal workings, you should probably refrain from modifying the payload itself. In order to improve testability of Gateway logic, raw events make use of Eventer rather than Événement like the more public-facing events. In order to listen to an event, you need to register a listener class that implements You can register your listener using |