Documentation ¶
Index ¶
- func GetDeletedMessagesByAuthorID(guildID, authorID string) []discordgo.Message
- func GetLastDeletedMessage() discordgo.Message
- func GetMessageByID(guildID, messageID string) discordgo.Message
- func TrackAllSentMessage(mess *discordgo.MessageCreate)
- func TrackDeletedMessage(guildID string, messageID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDeletedMessagesByAuthorID ¶
GetDeletedMessagesByAuthorID returns a list of deleted messages in a specific `guildID` for a specific `authorID`
func GetLastDeletedMessage ¶ added in v1.4.0
func GetMessageByID ¶
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 ¶
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.