Skip to Content
nyx logonyx guide

Bus

See in:
djs/DefaultCommandManager.eventBusGitHub
djs-core/DefaultCommandManager.eventBusGitHub
CommandManager.getEventBus()GitHub
BasicEventBusGitHub
EventBusGitHub
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

On this page