Skip to content

MemberBuilder

MemberBuilder is used to update a member object for a guild,

Usage:

local member = MemberBuilder.new()
:setNickname("Discordian #0!")

Properties

The MemberBuilder instance has no set properties!

Methods

setNickname

MemberBuilder : setNickname (

     nickname: string
)  -> Builders.MemberBuilder

Sets the nickname of a discord member

addRole

MemberBuilder : addRole (

     roleId: string
)  -> Builders.MemberBuilder

Adds a role to a member

setMuted

MemberBuilder : setMuted (

     muted: boolean
)  -> Builders.MemberBuilder

Sets the muted state for this member

setDeafened

MemberBuilder : setDeafened (

     deafened: boolean
)  -> Builders.MemberBuilder

Sets the deafened state for this member

setActiveVoiceChannel

MemberBuilder : setActiveVoiceChannel (

     voiceChannelId: string
)  -> Builders.MemberBuilder

Allows you to specify the voice channel to move the member too.

setTimeoutFor

MemberBuilder : setTimeoutFor (

     epoch: number
)  -> Builders.MemberBuilder

Allows you to timeout a members communication.

setFlags

MemberBuilder : setFlags (

     flags: number
)  -> Builders.MemberBuilder

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.