MemberBuilder
MemberBuilder is used to update a member object for a guild,
Usage:
Properties
The MemberBuilder instance has no set properties!
Methods
setNickname
MemberBuilder : setNickname () -> Builders.MemberBuilder
nickname: string
Sets the nickname of a discord member
addRole
MemberBuilder : addRole () -> Builders.MemberBuilder
roleId: string
Adds a role to a member
setMuted
MemberBuilder : setMuted () -> Builders.MemberBuilder
muted: boolean
Sets the muted state for this member
setDeafened
MemberBuilder : setDeafened () -> Builders.MemberBuilder
deafened: boolean
Sets the deafened state for this member
setActiveVoiceChannel
MemberBuilder : setActiveVoiceChannel () -> Builders.MemberBuilder
voiceChannelId: string
Allows you to specify the voice channel to move the member too.
setTimeoutFor
MemberBuilder : setTimeoutFor () -> Builders.MemberBuilder
epoch: number
Allows you to timeout a members communication.
setFlags
MemberBuilder : setFlags () -> Builders.MemberBuilder
flags: number
Sets the bitflags for this Member
toPayloadObject
MemberBuilder : toPayloadObject () -> Network.Resolvable
Converts the member to a JSON object that can be sent to the Discord API.
Functions
new
MemberBuilder . new () -> ()
Creates a new instance of MemberBuilder.