Documentation ¶
Index ¶
- type AutoMod
- func (a *AutoMod) AddUserToDeniedList(userId UserId)
- func (a *AutoMod) GenerateAlertMessage(i *discordgo.MessageCreate) *discordgo.MessageSend
- func (a *AutoMod) GetTrackedChannelIds() []ChannelId
- func (a *AutoMod) GetUserMessages(userId UserId) map[string]string
- func (a *AutoMod) GetUserUniqueMessages(userId UserId) map[string]string
- func (a *AutoMod) IsChannelIdTrackable(channelId ChannelId) bool
- func (a *AutoMod) IsUserInDeniedList(userId UserId) bool
- func (a *AutoMod) IsUserWithinMaxChannelsLimit(userId UserId) bool
- func (a *AutoMod) SetChannels(channels []*discordgo.Channel)
- func (a *AutoMod) StoreMessage(userId UserId, channelId ChannelId, message Message)
- type ChannelId
- type Message
- type Option
- type UserId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoMod ¶
type AutoMod struct {
// contains filtered or unexported fields
}
func NewAutoMod ¶
func (*AutoMod) AddUserToDeniedList ¶
func (*AutoMod) GenerateAlertMessage ¶
func (a *AutoMod) GenerateAlertMessage(i *discordgo.MessageCreate) *discordgo.MessageSend
func (*AutoMod) GetTrackedChannelIds ¶
func (*AutoMod) GetUserMessages ¶
GetUserMessages retrieves the messages associated with a user and organizes them in a map. The keys of the map represent the channel IDs, and the corresponding values are the message IDs.
Note: This function is designed to be used with an AutoMod instance and requires a valid UserId parameter.
Parameters:
- userId: The unique identifier of the user for whom messages are to be retrieved.
Returns:
- map[string]string: A map where keys are channel IDs, and values are message IDs.
func (*AutoMod) GetUserUniqueMessages ¶
func (*AutoMod) IsChannelIdTrackable ¶
func (*AutoMod) IsUserInDeniedList ¶
func (*AutoMod) IsUserWithinMaxChannelsLimit ¶
func (*AutoMod) SetChannels ¶
Click to show internal directories.
Click to hide internal directories.