Documentation ¶
Overview ¶
Package message handles replies and message events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoChannel = errors.New("no channel set for outbound message")
ErrNoChannel is returned if no channel is set on the Sender or Outbound message to be sent.
Functions ¶
Types ¶
type Dispatcher ¶
type Dispatcher []Handler
Dispatcher for inbound messages to Handlers.
func (*Dispatcher) Dispatch ¶
func (d *Dispatcher) Dispatch(s *discordgo.Session, m *discordgo.MessageCreate)
Dispatch an inbound message to the registered handlers.
type Outbound ¶
type Outbound struct { Channel string Message string Embed *discordgo.MessageEmbed }
Outbound message sent to discord.
func (Outbound) Translate ¶
func (o Outbound) Translate() *discordgo.MessageSend
Translate and Outbound message to one used bed discordgo.
Click to show internal directories.
Click to hide internal directories.