Documentation ¶
Overview ¶
Package mocksession provides functionality for creating a mock *discordgo.Session.
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.Session.
func WithClient ¶
func WithClient(client *http.Client) OptionFunc
WithClient sets a *discordgo.Session.Client to the given client.
func WithState ¶
func WithState(state *discordgo.State) OptionFunc
WithState sets a *discordgo.Session.State to the given state and sets *discordgo.Session.StateEnabled to true.
Click to show internal directories.
Click to hide internal directories.