Documentation ¶
Overview ¶
Package mockuser provides functionality for creating a mock *discordgo.User.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(optionFuncs ...OptionFunc) *discordgo.User
New returns a new *discordgo.User with the given optionFuncs applied.
Types ¶
type OptionFunc ¶
OptionFunc is a function that can be used to apply different options to a *discordgo.User.
func WithBotFlag ¶
func WithBotFlag(bot bool) OptionFunc
WithBotFlag sets a *discordgo.User.Bot to the given bot flag.
func WithUsername ¶
func WithUsername(username string) OptionFunc
WithUsername sets a *discordgo.User.Username to the given username.
Click to show internal directories.
Click to hide internal directories.