Bus
See in:
Reading time:0 min read
The CommandBus is the EventBus used for emitting command events.
Overriding
Creation and Registration
Create your own bus in any way and set it to the CommandManager.
import { } from '@nyx-discord/djs';
class extends <> {
/** Your overrides */
}
const = .();
await .().();The BasicEventBus.createSync() (or
BasicEventBus.createAsync()) method instantiates your custom bus,
not the default one.
Edit on GitHub
Last updated on
