Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelMessageSendError ¶
type ChannelMessageSendError struct {
// contains filtered or unexported fields
}
ChannelMessageSendError is an implementation of the error interface used to signify an error sending a message to a channel.
func NewChannelMessageSendError ¶
func NewChannelMessageSendError(e error) *ChannelMessageSendError
NewChannelMessageSendError returns a new instance of ChannelMessageSendError.
func (*ChannelMessageSendError) Error ¶
func (e *ChannelMessageSendError) Error() string
Error implements the error interface for ChannelMessageSendError type.
type Credentials ¶
type Credentials struct {
Token string
}
Credentials stores the credentials necessary for authentication with the Discord API.
type Session ¶
Session is an alias for discordgo.Session with some additional receiver functions for convenience.
func GetSession ¶
func GetSession(c *Credentials) (*Session, error)
GetSession returns a discord session given proper credentials.
Click to show internal directories.
Click to hide internal directories.