Documentation ¶
Index ¶
- func ArrayContains(array []string, value string, ignoreCase bool) bool
- func ChannelSend(session *discordgo.Session, channelID, message string) (*discordgo.Message, error)
- func ChannelSendf(session *discordgo.Session, channelID, format string, a ...interface{}) (*discordgo.Message, error)
- func GetID(input string) string
- func GetMsgURL(guildID, channelID, messageID string) string
- func InitFile(path string) (*os.File, error)
- func IsBot(test string) bool
- func IsChannel(test string) bool
- func IsID(test string) bool
- func IsURL(test string) bool
- func IsUser(test string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayContains ¶
ArrayContains checks a string array for a given string.
func ChannelSend ¶
ChannelSend is a helper function for easily sending a message to the current channel.
func ChannelSendf ¶
func ChannelSendf( session *discordgo.Session, channelID, format string, a ...interface{}, ) (*discordgo.Message, error)
ChannelSendf is a helper function like ChannelSend for sending a formatted message to the current channel.
func InitFile ¶
InitFile opens a file at the specified path. If that file does not exist, it creates a new one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.