Client

Undocumented in source.

Constructors

this
this(string token, LogLevel lvl, ShardInfo* shardInfo)
Undocumented in source.

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.

updateStatus
void updateStatus(uint idleSince, Game game)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

me
User me [@property getter]

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;

Sharding configuration

state
State state;

State instance

token
string token;

Bot Authentication token

Meta