Documentation
¶
Overview ¶
Package mockstate provides functionality for creating a mock *discordgo.State.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OptionFunc ¶
OptionFunc is a function that can be used to apply different options to a *discordgo.State.
func WithGuilds ¶
func WithGuilds(guilds ...*discordgo.Guild) OptionFunc
WithGuilds adds the given guilds to a *discordgo.State.
func WithUser ¶
func WithUser(user *discordgo.User) OptionFunc
WithUser sets a *discordgo.State.User to the given user.
Click to show internal directories.
Click to hide internal directories.