mod

package
v0.0.0-...-07de05f Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheInviteInformation

type CacheInviteInformation struct {
	GuildID         string
	CreatedByUserID string
	Code            string
	CreatedAt       time.Time
	Uses            int
}

type Mod

type Mod struct {
	// contains filtered or unexported fields
}

func (*Mod) Action

func (m *Mod) Action(command string, content string, msg *discordgo.Message, session *discordgo.Session)

func (*Mod) Commands

func (m *Mod) Commands() []string

func (*Mod) GetJoins

func (m *Mod) GetJoins(userID string, guildID string) (joins []models.ModJoinlogEntry, err error)

func (*Mod) Init

func (m *Mod) Init(session *shardmanager.Manager)

func (*Mod) Min

func (m *Mod) Min(a, b int) int

func (*Mod) OnGuildBanAdd

func (m *Mod) OnGuildBanAdd(user *discordgo.GuildBanAdd, session *discordgo.Session)

func (*Mod) OnGuildBanRemove

func (m *Mod) OnGuildBanRemove(user *discordgo.GuildBanRemove, session *discordgo.Session)

func (*Mod) OnGuildMemberAdd

func (m *Mod) OnGuildMemberAdd(member *discordgo.Member, session *discordgo.Session)

func (*Mod) OnGuildMemberRemove

func (m *Mod) OnGuildMemberRemove(member *discordgo.Member, session *discordgo.Session)

func (*Mod) OnMessage

func (m *Mod) OnMessage(content string, msg *discordgo.Message, session *discordgo.Session)

func (*Mod) OnMessageDelete

func (m *Mod) OnMessageDelete(msg *discordgo.MessageDelete, session *discordgo.Session)

func (*Mod) OnReactionAdd

func (m *Mod) OnReactionAdd(reaction *discordgo.MessageReactionAdd, session *discordgo.Session)

func (*Mod) OnReactionRemove

func (m *Mod) OnReactionRemove(reaction *discordgo.MessageReactionRemove, session *discordgo.Session)

func (*Mod) Uninit

func (m *Mod) Uninit(session *shardmanager.Manager)

Jump to

Keyboard shortcuts

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