GuildRoleBuilder
Allows a developer to build a Guild Role
Properties
The GuildRoleBuilder instance has no set properties!
Methods
setName
GuildRoleBuilder : setName () -> Objects.GuildRoleBuilder
name: string
Sets the name of the Role
setColor
GuildRoleBuilder : setColor () -> Objects.GuildRoleBuilder
color: number
Sets the color of the Role.
setHoisted
GuildRoleBuilder : setHoisted () -> Objects.GuildRoleBuilder
hoisted: boolean
Sets weather this role will split users in the roles hierarchy in the guild.
setIcon
GuildRoleBuilder : setIcon () -> Objects.GuildRoleBuilder
imageData: string
Sets the Icon for this role, the imageData should be a base64 encoded, 128x128 jpg file.
setUnicodeEmoji
GuildRoleBuilder : setUnicodeEmoji () -> Objects.GuildRoleBuilder
unicodeEmoji: string
Sets the Emoji for this Role
setPosition
GuildRoleBuilder : setPosition () -> Objects.GuildRoleBuilder
position: number
Set the position of this Role, this will update the roles hierarchy in the guild.
setMentionable
GuildRoleBuilder : setMentionable () -> Objects.GuildRoleBuilder
mentionable: boolean
Set if discord members can mention this Role.
setFlags
GuildRoleBuilder : setFlags () -> Objects.GuildRoleBuilder
flags: number
Set the flags for the Guild
toPayloadObject
GuildRoleBuilder : toPayloadObject () -> Network.Resolvable
Converts the role to a JSON object that can be sent to the Discord API.
Functions
new
GuildRoleBuilder . new () -> ()
Creates a new instance of GuildRoleBuilder.