addGuildMember


General

addGuildMember adds a member to the guild using OAuth. It can receive options to arrange the user's abilities in the guild.

Please note that the member also has to be logged into Okwo.


Usage

Client:addGuildMember(<string> userId, <array> options)
Returns: <Member> member

Options should be structured this way:
- <string> accessToken - OAuth user token
- (string) nick - user's nick
- (array) roles - user's roles
- (boolean) mute - if user should be muted
- (boolean) deaf - if user should be deafened


Limitations

See discordGuild PATCH.


Example

print(Client:addMember("545345435234543", {accessToken = "cfsdjgcir4cdsgfg"}).displayName)

Back to top