Documentation ¶
Overview ¶
Package mockguild provides functionality for creating a mock *discordgo.Guild.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(optionFuncs ...OptionFunc) *discordgo.Guild
New returns a new *discordgo.Guild with the given optionFuncs applied.
Types ¶
type OptionFunc ¶
OptionFunc is a function that can be used to apply different options to a *discordgo.Guild.
func WithChannels ¶
func WithChannels(channels ...*discordgo.Channel) OptionFunc
WithChannels adds the given channels to a *discordgo.Guild.
func WithMembers ¶
func WithMembers(members ...*discordgo.Member) OptionFunc
WithMembers adds the given members to a *discordgo.Guild.
func WithName ¶
func WithName(name string) OptionFunc
WithName sets a *discordgo.Guild.Name to the given name.
func WithRoles ¶
func WithRoles(roles ...*discordgo.Role) OptionFunc
WithRoles adds the given roles to a *discordgo.Guild.
Click to show internal directories.
Click to hide internal directories.