spam

package
v0.0.0-...-f9e586a Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Prevents users from spamming messages in multiple channels in a short period of time

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSpam

func IsSpam(m *discordgo.MessageCreate) (is bool, channels string)

Check if a message's creator has sent messages to many channels recently. Returns whether the user is spamming and a list of the channels they've sent messages to (as a string).

Types

This section is empty.

Jump to

Keyboard shortcuts

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