Skip to content

ActionsManager

ActionsManager

It’s a class that handles all the events that the client receives from the Discord API.

Kind: global class

new ActionsManager(message, client)

It defines a property called client, and sets it to the client variable

ParamTypeDescription
messageObjectThe message object that was sent.
clientClientThe client that instantiated the message.

actionsManager._patch(message) ⇒ Object

Parses and handles different types of Discord gateway messages.

Kind: instance method of ActionsManager
Returns: Object - - An instance of the corresponding message class.

ParamTypeDescription
messageObjectThe message object received from the gateway.