Documentation ¶
Overview ¶
Package mockchannel provides functionality for creating a mock *discordgo.Channel.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(optionFuncs ...OptionFunc) *discordgo.Channel
New returns a new *discordgo.Channel with the given optionFuncs applied.
Types ¶
type OptionFunc ¶
OptionFunc is a function that can be used to apply different options to a *discordgo.Channel.
func WithGuildID ¶
func WithGuildID(guildID string) OptionFunc
WithGuildID sets a *discordgo.Channel.GuildID to the given guildID.
func WithID ¶
func WithID(id string) OptionFunc
WithID sets a *discordgo.Channel.ID to the given id.
func WithName ¶
func WithName(name string) OptionFunc
WithName sets a *discordgo.Channel.Name to the given name.
func WithPermissionOverwrites ¶
func WithPermissionOverwrites(permissionOverwrites ...*discordgo.PermissionOverwrite) OptionFunc
WithPermissionOverwrites sets a *discordgo.Channel.PermissionOverwrites to the given permissionOverwrites.
func WithType ¶
func WithType(channelType discordgo.ChannelType) OptionFunc
WithType sets a *discordgo.Channel.Type to the given channelType.
Click to show internal directories.
Click to hide internal directories.