Documentation ¶
Index ¶
- func AddEmbedToQueue(embed MessageItem)
- func CreateLoggerEmbeds(loggers []Logger) *[]discord.Embed
- func CreateSenderWorker()
- func GetLoggerChannel() discord.ChannelID
- func GetModChannel() discord.ChannelID
- func SendLogEmbed(embed MessageItem) error
- func SenderWorker(embeds <-chan MessageItem, wg *sync.WaitGroup)
- type LogType
- type Logger
- func DangerMemberLogger(member discord.User, danger MemberDangerLevel) Logger
- func MemberAddLogger(member *discord.Member) Logger
- func MemberBanLogger(user *discord.User) Logger
- func MemberRemoveLogger(user *discord.User, roles []discord.RoleID) Logger
- func MemberRoleAddLogger(member discord.User, role discord.RoleID) Logger
- func MemberRoleRemoveLogger(member discord.User, role discord.RoleID) Logger
- func MemberUnbanLogger(user *discord.User) Logger
- func MessageDeleteLogger(message *discord.Message) Logger
- func MessageUpdateLogger(message *discord.Message, oldContent string) Logger
- func UnknownMessageDeleteLogger(channelID discord.ChannelID, _ discord.GuildID, messageID discord.MessageID) Logger
- type MemberDangerLevel
- type MessageItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEmbedToQueue ¶
func AddEmbedToQueue(embed MessageItem)
func CreateLoggerEmbeds ¶
func CreateSenderWorker ¶
func CreateSenderWorker()
func GetLoggerChannel ¶
func GetModChannel ¶
func SendLogEmbed ¶
func SendLogEmbed(embed MessageItem) error
func SenderWorker ¶
func SenderWorker(embeds <-chan MessageItem, wg *sync.WaitGroup)
Types ¶
type LogType ¶
type LogType int64
LogType is the type of the log
const ( // LogTypeMessageDelete is a delete message log LogTypeMessageDelete LogType = iota // LogTypeMessageUpdate is an update message log LogTypeMessageUpdate // LogTypeMessageCreate is a creation message log LogTypeMessageCreate // LogTypeMessageReactionAdd is an add reaction log LogTypeMessageReactionAdd // LogTypeGuildMemberAdd is an add member log LogTypeGuildMemberAdd // LogTypeGuildMemberRemove is a remove member log LogTypeGuildMemberRemove // LogDangerousMemberAdd is a dangerous member log LogDangerousMemberAdd // LogTypeMemberRoleAdd is a member role add log LogTypeMemberRoleAdd // LogTypeMemberRoleRemove is a member role remove log LogTypeMemberRoleRemove // LogTypeGuildMemberBan is a member ban log LogTypeGuildMemberBan // LogTypeGuildMemberUnban is a member unban log LogTypeGuildMemberUnban )
type Logger ¶
Logger is a logger
func DangerMemberLogger ¶
func DangerMemberLogger(member discord.User, danger MemberDangerLevel) Logger
func MemberAddLogger ¶
func MemberBanLogger ¶
func MemberRemoveLogger ¶
func MemberRoleAddLogger ¶
func MemberRoleRemoveLogger ¶
func MemberUnbanLogger ¶
func MessageDeleteLogger ¶
func MessageUpdateLogger ¶
type MemberDangerLevel ¶
type MemberDangerLevel int64
const ( MemberDangerLevelNone MemberDangerLevel = iota MemberDangerLevelLow MemberDangerLevelMedium MemberDangerLevelHigh )
func VerifyMember ¶
func VerifyMember(member *discord.Member) MemberDangerLevel
func (MemberDangerLevel) String ¶
func (m MemberDangerLevel) String() string
Click to show internal directories.
Click to hide internal directories.