-
Notifications
You must be signed in to change notification settings - Fork 4
Client
AdamJames edited this page Feb 25, 2017
·
7 revisions
Starts an infinite loop that processes all created clients.
Requires an object containing any of the following attributes.
-
usernamea string to be set as client's display nameor setName(name). -
avatara base64 stringor setAvatar(avatar).
Requires an object containing any of the following attributes.
-
gamean object containing anameattributeor setGame(name) -
idlea boolean indicating whether the client is to be shown as awayor setIdle(bool)
Creates a Guild and returns a Server structure representing newly created guild.
-
namea string representing new guild's name. -
regiona string representing desired voice region, usually obtained withgetRegions. -
icona base64 string representing new guild's icon.
Returns an array containing valid guild voice regions.
Accepts a guild invite.
-
codea string representing an invite's unique code.
An object containing client's settings.
-
sharda guild sharding array.
An User structure representing logged in client's user object.
A Cache object containing loaded users stored as User structures.
A Cache object containing guilds the client is in stored as Server structures.
A Cache object containing channels stored as Channel structures.
A Rest object.
A Socket object.
Last revision on 26 Feb. 2017 – satom99