State

The State class is used to track and maintain client state.

Constructors

this
this(Client client)
Undocumented in source.

Members

Functions

bindEvents
void bindEvents()
Undocumented in source. Be warned that the author may not have intended to support it.
onChannelCreate
void onChannelCreate(ChannelCreate c)
Undocumented in source. Be warned that the author may not have intended to support it.
onChannelDelete
void onChannelDelete(ChannelDelete c)
Undocumented in source. Be warned that the author may not have intended to support it.
onChannelUpdate
void onChannelUpdate(ChannelUpdate c)
Undocumented in source. Be warned that the author may not have intended to support it.
onGuildCreate
void onGuildCreate(GuildCreate c)
Undocumented in source. Be warned that the author may not have intended to support it.
onGuildDelete
void onGuildDelete(GuildDelete c)
Undocumented in source. Be warned that the author may not have intended to support it.
onGuildUpdate
void onGuildUpdate(GuildUpdate c)
Undocumented in source. Be warned that the author may not have intended to support it.
onReady
void onReady(Ready r)
Undocumented in source. Be warned that the author may not have intended to support it.
onVoiceStateUpdate
void onVoiceStateUpdate(VoiceStateUpdate u)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

api
APIClient api;
Undocumented in source.
channels
ChannelMap channels;
Undocumented in source.
client
Client client;
Undocumented in source.
guilds
GuildMap guilds;
Undocumented in source.
gw
GatewayClient gw;
Undocumented in source.
me
User me;
Undocumented in source.
users
UserMap users;
Undocumented in source.

Inherited Members

From Emitter

listeners
BoundEmitter[][string] listeners;
Undocumented in source.
on
EventListener on(string event, void delegate() f)
Undocumented in source. Be warned that the author may not have intended to support it.
listen
EventListener listen(void delegate(T) f)
Undocumented in source. Be warned that the author may not have intended to support it.
listenRaw
EventListener listenRaw(string event, void delegate(Variant) f)
Undocumented in source. Be warned that the author may not have intended to support it.
listenAll
AllEventListener listenAll(void delegate(string, Variant) f)
Undocumented in source. Be warned that the author may not have intended to support it.
emit
void emit(T obj)
Undocumented in source. Be warned that the author may not have intended to support it.
emitByName
void emitByName(string name, T obj, bool all)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta