common

package
v0.0.0-...-4dd7324 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorReply

func ErrorReply(session *discordgo.Session, orgMsg *discordgo.MessageCreate, description string)

func GetGroup

func GetGroup(session *discordgo.Session, guild *config.Guild, channelId string) string

func ReplyEmbed

func ReplyEmbed(session *discordgo.Session, orgMsg *discordgo.MessageCreate, embed *discordgo.MessageEmbed)

func SendEmbed

func SendEmbed(session *discordgo.Session, orgMsg *discordgo.MessageCreate, embed *discordgo.MessageEmbed)

func UnknownError

func UnknownError(session *discordgo.Session, orgMsg *discordgo.MessageCreate, lang string, err error)

Types

type Config

type Config struct {
	bun.BaseModel `bun:"table:config"`

	Guild string `bun:"guild,pk,notnull"`
	Data  []byte `bun:"data,notnull"`
}

type Log

type Log struct {
	bun.BaseModel `bun:"table:log"`

	Guild     string `bun:"guild,notnull"`
	GroupID   string `bun:"groupid,notnull"`
	Content   string `bun:"content,notnull"`
	ChannelID string `bun:"channelid,notnull"`
	MessageID string `bun:"messageid,notnull"`
}

Jump to

Keyboard shortcuts

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