Client

Undocumented in source.

Constructors

this
this(string token, LogLevel lvl, ShardInfo* shardInfo)

Initializer

Members

Functions

deleteMessages
void deleteMessages(Snowflake channelID, Message[] messages)

Deletes an array of messages for a given channel, properly bulking them if required.

deleteMessages
void deleteMessages(Snowflake channelID, Snowflake[] msgIDs)

Deletes an array of message IDs for a given channel, properly bulking them if required.

getMessages
Message[] getMessages(Snowflake channelID, uint limit, Snowflake msgID, MessageFilter filter)

Gets an array of messages for a given channel.

me
User me()

Returns the current user.

Variables

api
APIClient api;

APIClient instance

events
Emitter events;

Emitter for gateway events

gw
GatewayClient gw;

GatewayClient instance

log
Logger log;

Base log

shardInfo
ShardInfo* shardInfo;

Configuration for sharding

state
State state;

State instance

token
string token;

Bot Authentication token

Meta