Skip to content
On this page

ShewenyClient

The main hub for interacting with the Discord API, and the starting point for any bot.

Constructor

js
new ShewenyClient(options);
NameTypeDescriptionOptional
optionsShewenyClientOptionsThe options for the clientNo
clientOptionsClientOptionsThe options for the discord.js client (use first parameter if not provided)✓
Properties
Methods
Events

Properties

admins

The admins of the bot (no affected by cooldown and have adminOnly permission).

Return : Array<String>

cooldowns

The cooldowns of the bot.

Return : ShewenyClientCooldowns

collections

The collections of commands, events, buttons, select-menus, inhibitors.

Return : ShewenyClientCollections

connected

Indicate when the client is connected to the Discord API.

Return : Boolean

joinThreadsOnCreate

If the bot should join threads on create.

Return : Boolean

managers

The managers of the client.

Return : ShewenyClientManagers.

mode

The mode for run application (development or production).

Return : String

util

Useful functions for your bot.

Return : ClientUtil.

Methods

awaitReady

Wait for the client to be ready.

Return Promise

Events

interactionButtonCreate

Emitted when an interaction button is created.

Parameters :

interactionCommmandCreate

Emitted when an Slash Command or Context Menu is created.

Parameters :

interactionContextMenuCreate

Emitted when an interaction Context Menu is created.

Parameters :

interactionMessageComponentCreate

Emitted when an Message Component interaction is created.

Parameters :

interactionSelectMenuCreate

Emitted when an Select Menu interaction is created.

Parameters :