Documentation ¶
Index ¶
- Variables
- func AddKick(guildid string, issuer string, userid string, reason string, uuid string) error
- func BanCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func BanFileCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func CancelAllPurgeCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func CancelPurgeCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func CreateMWSEmbed(member *discordgo.Member, guild *discordgo.Guild, actioner *discordgo.User, ...) *discordgo.MessageEmbed
- func CreatePunishmentEmbed(member *discordgo.Member, guild *discordgo.Guild, actioner *discordgo.User, ...) *discordgo.MessageEmbed
- func IssueStrike(s *discordgo.Session, guildId string, userId string, issuer string, ...) error
- func KickCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func MuteCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func MuteWithStrikeCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func PurgeAll(s *discordgo.Session, m *discordgo.Message, msgLimit int) []*discordgo.Message
- func PurgeAttachments(s *discordgo.Session, m *discordgo.Message, msgLimit int) []*discordgo.Message
- func PurgeBot(s *discordgo.Session, m *discordgo.Message, msgLimit int) []*discordgo.Message
- func PurgeCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func PurgeImage(s *discordgo.Session, m *discordgo.Message, msgLimit int) []*discordgo.Message
- func PurgeString(s *discordgo.Session, m *discordgo.Message, msgLimit int, filter string) []*discordgo.Message
- func PurgeUser(s *discordgo.Session, m *discordgo.Message, msgLimit int, ids []string) []*discordgo.Message
- func PurgeUsers(s *discordgo.Session, m *discordgo.Message, msgLimit int) []*discordgo.Message
- func PurgeVideo(s *discordgo.Session, m *discordgo.Message, msgLimit int) []*discordgo.Message
- func RemoveActionCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func SearchByUUID(s *discordgo.Session, m *discordgo.Message, conf *structs.Config, ...) (*discordgo.Message, error)
- func SearchByUser(s *discordgo.Session, m *discordgo.Message, conf *structs.Config, ...) (*discordgo.Message, error)
- func SearchCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func ShouldCensor(s *discordgo.Session, conf *structs.Config, guildid string, userid string) bool
- func SoftBanCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func StrikeCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func UnbanCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- func UnmuteCmd(s *discordgo.Session, conf *structs.Config, m *discordgo.Message, ...)
- type BanResult
- type MuteResult
Constants ¶
This section is empty.
Variables ¶
View Source
var OngoingPurges = make(map[string]map[string]chan struct{}) // map[channelid]map[moderator]chan struct{}
Functions ¶
func BanFileCmd ¶
func CancelAllPurgeCmd ¶
func CancelPurgeCmd ¶
func CreateMWSEmbed ¶
func CreatePunishmentEmbed ¶
func IssueStrike ¶
func MuteWithStrikeCmd ¶
func PurgeAttachments ¶
func PurgeImage ¶
func PurgeString ¶
func PurgeUsers ¶
func PurgeVideo ¶
func RemoveActionCmd ¶
func SearchByUUID ¶
func SearchByUser ¶
func ShouldCensor ¶
func SoftBanCmd ¶
Types ¶
type MuteResult ¶
type MuteResult int
const ( MuteSuccess MuteResult = iota MuteFailed MuteAlreadyMuted MuteAlreadyUnmuted )
Click to show internal directories.
Click to hide internal directories.