Documentation ¶
Overview ¶
Package mockmember provides functionality for creating a mock *discordgo.Member.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(optionFuncs ...OptionFunc) *discordgo.Member
New returns a new *discordgo.Member with the given optionFuncs applied.
Types ¶
type OptionFunc ¶
OptionFunc is a function that can be used to apply different options to a *discordgo.Member.
func WithGuildID ¶
func WithGuildID(guildID string) OptionFunc
WithGuildID sets a *discordgo.Member.GuildID to the given guildID.
func WithRoles ¶
func WithRoles(roles ...*discordgo.Role) OptionFunc
WithRoles adds the given roles to a *discordgo.Member.Roles.
func WithUser ¶
func WithUser(user *discordgo.User) OptionFunc
WithUser sets a *discordgo.Member.User to the given user.
Click to show internal directories.
Click to hide internal directories.