Skip to Content
nyx logonyx guide

Subscriptions Container

See in:
djs/DefaultCommandSubscriptionsContainerGitHub
djs-core/DefaultCommandSubscriptionsContainerGitHub
CommandSubscriptionsContainerGitHub
Reading time:0 min read

The CommandSubscriptionsContainer is responsible for storing the subscribers that are subscribed to the Client's EventBus to listen for command interactions.

Overriding

Creation and Registration

Create your own container by extending DefaultCommandSubscriptionsContainer and set it to the CommandManager.

import { ,  } from '@nyx-discord/djs';

class  extends  {
  /** Your overrides */
}


const  = .(
  .(),
  new (),
  new (),
);

.().();

The DefaultCommandSubscriptionsContainer.create() method instantiates your custom container, not the default one.

Edit on GitHub

Last updated on

On this page