Documentation ¶
Overview ¶
Package mockrole provides functionality for creating a mock *discordgo.Role.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(optionFuncs ...OptionFunc) *discordgo.Role
New returns a new *discordgo.Role with the given optionFuncs applied.
Types ¶
type OptionFunc ¶
OptionFunc is a function that can be used to apply different options to a *discordgo.Role.
func WithName ¶
func WithName(name string) OptionFunc
WithName sets a *discordgo.Role.Name to the given name.
func WithPermissions ¶
func WithPermissions(permissions int64) OptionFunc
WithPermissions sets a *discordgo.Role.Permissions to the given permissions.
Click to show internal directories.
Click to hide internal directories.