Documentation ¶
Index ¶
- func EventHandler(ctx *types.Context, s *discordgo.Session, m *discordgo.MessageCreate)
- func GetChannels(chanId string, channels map[string]types.ChannelMapping) (types.ChannelMapping, error)
- func SendEdit(ctx types.Context, channel types.ChannelMapping, ...) error
- func SendFile(ctx types.Context, channel types.ChannelMapping, file types.GoferFile) error
- func SendImage(ctx types.Context, channel types.ChannelMapping, photo types.GoferPhoto) error
- func SendMessage(ctx types.Context, channel types.ChannelMapping, message types.GoferMessage) error
- func SendMisc(ctx types.Context, channel types.ChannelMapping, misc types.GoferMisc) error
- func SendWebHookMessage(ctx types.Context, channel types.ChannelMapping, message types.GoferMessage) error
- type DiscordWebHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventHandler ¶
EventHandler function will be called (due to AddHandler above) every time a new message is created on any channel that the authenticated bot has access to.
func GetChannels ¶
func GetChannels(chanId string, channels map[string]types.ChannelMapping) (types.ChannelMapping, error)
func SendEdit ¶
func SendEdit(ctx types.Context, channel types.ChannelMapping, message types.GoferEditedMessage) error
func SendImage ¶
func SendImage(ctx types.Context, channel types.ChannelMapping, photo types.GoferPhoto) error
func SendMessage ¶
func SendMessage(ctx types.Context, channel types.ChannelMapping, message types.GoferMessage) error
func SendWebHookMessage ¶
func SendWebHookMessage(ctx types.Context, channel types.ChannelMapping, message types.GoferMessage) error
Types ¶
type DiscordWebHook ¶
Click to show internal directories.
Click to hide internal directories.