-
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.
-
username
a string to be set as client's display nameor setName(name)
. -
avatar
a base64 stringor setAvatar(avatar)
.
Requires an object containing any of the following attributes.
-
game
an object containing aname
attributeor setGame(name)
-
idle
a 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.
-
name
a string representing new guild's name. -
region
a string representing desired voice region, usually obtained withgetRegions
. -
icon
a base64 string representing new guild's icon.
Returns an array containing valid guild voice regions.
Accepts a guild invite.
-
code
a string representing an invite's unique code.
An object containing client's settings.
-
shard
a 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