Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MatchFunctionByUser = func(userID string) matchFunction { return func(message *discordgo.Message) bool { return message.Author.ID == userID && message.Timestamp.Before(twoWeeksAgo()) } }
View Source
var MatchFunctionByUserWithImages = func(userID string) matchFunction { return func(message *discordgo.Message) bool { isImage := false for _, attachment := range message.Attachments { if strings.HasPrefix(attachment.ContentType, "image/") { isImage = true break } } return message.Author.ID == userID && message.Timestamp.Before(twoWeeksAgo()) && isImage } }
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) RemoveUserMessages ¶
Click to show internal directories.
Click to hide internal directories.