Documentation ¶
Index ¶
- func CheckVersion(currentVersion string)
- func Clear()
- func FetchFromURL(url *string) ([]byte, error)
- func IsAuthorized(discordID string) bool
- func RemoveMessage(s *discordgo.Session, m *discordgo.MessageCreate)
- func RemoveMessageAfter(s *discordgo.Session, channelID, messageID string)
- func SaveImageToDisk(fName string, img *image.Image) error
- func SendDirectMessage(s *discordgo.Session, m *discordgo.MessageCreate, content string) (*discordgo.Message, error)
- func SendMessageFailure(s *discordgo.Session, m *discordgo.MessageCreate, content string) (*discordgo.Message, error)
- func SendMessageNeutral(s *discordgo.Session, m *discordgo.MessageCreate, content string) (*discordgo.Message, error)
- func SendMessageSuccess(s *discordgo.Session, m *discordgo.MessageCreate, content string) (*discordgo.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckVersion ¶
func CheckVersion(currentVersion string)
func FetchFromURL ¶
func IsAuthorized ¶
func RemoveMessage ¶
func RemoveMessage(s *discordgo.Session, m *discordgo.MessageCreate)
func RemoveMessageAfter ¶
Removes a message after n seconds. If RemoveBotMessageAfter in the config is -1 then the message wont be deleted Function automatically run as a goroutine
func SaveImageToDisk ¶
Writes image to disk as a jpeg Do not include the extension in the filename
func SendDirectMessage ¶
func SendMessageFailure ¶
func SendMessageNeutral ¶
func SendMessageSuccess ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.