messagetracking

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeletedMessagesByAuthorID

func GetDeletedMessagesByAuthorID(guildID, authorID string) []discordgo.Message

GetDeletedMessagesByAuthorID returns a list of deleted messages in a specific `guildID` for a specific `authorID`

func GetLastDeletedMessage added in v1.4.0

func GetLastDeletedMessage() discordgo.Message

func GetMessageByID

func GetMessageByID(guildID, messageID string) discordgo.Message

GetMessageByID returns the message with the given `messageID` from the given `guildID`.

func TrackAllSentMessage

func TrackAllSentMessage(mess *discordgo.MessageCreate)

TrackAllSentMessage tracks all sent messages in all guilds this bot is in for the duration of the bot's life time

We will only keep track of 1000 messages per guild. When we reach the 1000 message limit, delete the oldest message

func TrackDeletedMessage

func TrackDeletedMessage(guildID string, messageID string)

TrackDeletedMessage tracks the last 10 deleted messages metadata for a guild, excluding their content. Use allMessagesMap to get the contents of those messages

When there are 10 messages, the oldest message will be deleted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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