Events
Reading time:1 min read
It's recommended to read the Events Overview and Event Subscribers pages first.
The PluginManager has an EventBus that allows you to listen to events related to plugins.
This is useful for monitoring, logging, or any other custom logic you want to execute when a plugin is added/removed.
Events
The following events are available:
import { } from '@nyx-discord/djs';
.- PluginAdd
- PluginRemove
Usage
Subscriber creation
Create a subscriber that will listen to a given event, use the PluginEventArgs type for the arguments map. Check the Event Subscribers page for more information.
