structs

package
v0.0.0-...-11583a9 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Case

type Case struct {
	ID          string
	UserID      string
	GuildID     string
	ModeratorID string
	Reason      string
	Type        int8 // 0=warn, 1=ban, 2=kick, 3=unban, 4=timeout, 5=messagedelete
	CreatedAt   string
}

type Guild

type Guild struct {
	ID              string
	Name            string
	Description     string
	MemberCount     int
	IsPremium       int // 0 = no, 1 = yes
	Large           int // 0 = no, 1 = yes
	VanityURL       string
	JoinedAt        string
	OwnerID         string
	ShardID         int
	BannerURL       string
	Icon            string
	MaxMembers      int
	Partnered       int // 0 = no, 1 = yes
	AFKChannelID    string
	AFKTimeout      int
	MFALevel        int
	NSFWLevel       int
	PerferedLocale  string
	RulesChannelID  string
	SystemChannelID string
}

type LogSettings

type LogSettings struct {
	GuildID           string `json:"guild_id"`
	MessageChannelID  string `json:"message_channel_id"`
	MessageWebhookURL string `json:"message_webhook_url"`
	MemberChannelID   string `json:"member_channel_id"`
	MemberWebhookURL  string `json:"member_webhook_url"`
}

type LogUser

type LogUser struct {
	ID        string `json:"id"`
	Username  string `json:"username"`
	AvatarURL string `json:"avatar_url"`
}

type Note

type Note struct {
	ID          string
	UserID      string
	ModeratorID string
	GuildID     string
	Content     string
	CreatedAt   string
}

type Ticket

type Ticket struct {
	ID           string
	ThreadID     string
	OwnerID      string
	GuildID      string
	State        int8 // 0=open, 1=resolved
	LogMessageID string
	CreatedAt    string
	ResolvedAt   sql.NullString // null if ticket is open
	ResolvedBy   sql.NullString
	Content      sql.NullString
}

type TicketSettings

type TicketSettings struct {
	GuildID      string
	ChannelID    string
	LogChannelID string
}

Jump to

Keyboard shortcuts

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