spam

package
v0.0.0-...-f4937b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearMaxMessages

func ClearMaxMessages(userId string, guildId string) error

func ProcessMaxAttachments

func ProcessMaxAttachments(m *discordgo.Message, limit int64) (bool, int64)

func ProcessMaxEmojis

func ProcessMaxEmojis(message *discordgo.Message, limit int64) (bool, int64)

func ProcessMaxLength

func ProcessMaxLength(message *discordgo.Message, limit int64) (bool, int64)
func ProcessMaxLinks(message string, limit int64) (bool, int64)

func ProcessMaxMentions

func ProcessMaxMentions(message *discordgo.Message, limit int64) (bool, int64, []*discordgo.User)

func ProcessMaxMessages

func ProcessMaxMessages(userId string, guildId string, max int64, timeLimit time.Duration, resetOnContinuedSpam bool) bool

func ProcessMaxNewlines

func ProcessMaxNewlines(message string, limit int64) (bool, int64)

func ProcessMaxRoleMentions

func ProcessMaxRoleMentions(message *discordgo.Message, limit int64) (bool, int64, []string)

func ProcessMaxUppercase

func ProcessMaxUppercase(message string, percentageLimit float64, minimumLength int) (bool, float64)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL