Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Log *log.Logger
)
Functions ¶
func AlertDiscord ¶
func AlertDiscord(s *dsg.Session, m *dsg.MessageCreate, err error)
# Alerts discord of errors.
* AlertDiscord is a function that... well alerts discord if there's a problem. * Useful for things like if your command fails and you have to return, the user * isn't kept in limbo waiting for something to happen. However this is not a * substitute for posting an error in the log and should be done *along with* * dat.Log.New(), this just helps prevent the users moaning about "broken bot" * and actually proves it to them. * * Parameters: * - s (type *discordgo.Session) : Needed for posting a message * - m (type *discordgo.Message) : Needed for posting a message. Pings .Author. * - err (type error) : The error being reported
func GetBotInfo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.