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