Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Setting ¶
type Setting func(*Settings)
Setting is a function that configures a guild role.
func WithMentionable ¶
WithMentionable sets whether this guild role is mentionable by others.
func WithPermissions ¶
WithPermissions sets the permissions of guild a role.
type Settings ¶
type Settings struct { Name *optional.String `json:"name,omitempty"` Permissions *optional.Int `json:"permissions,omitempty"` Color *optional.Int `json:"color,omitempty"` Hoist *optional.Bool `json:"hoist,omitempty"` Mentionable *optional.Bool `json:"mentionable,omitempty"` }
Settings describes how to modify a guild role. All fields are optional.
func NewSettings ¶
NewSettings returns new Settings to modify a a guild role.
Click to show internal directories.
Click to hide internal directories.