models

package
v0.0.0-...-f5b74cc Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse[T any] struct {
	Success bool `json:"success"`
	Data    T    `json:"data"`
}

type ActivityConfig

type ActivityConfig struct {
	IsEnabled       bool           `json:"is_enabled"`
	GrantAmount     int            `json:"grant_amount"`
	CooldownSeconds int            `json:"cooldown_seconds"`
	ActivityRoles   []ActivityRole `json:"activity_roles"`
}

type ActivityRole

type ActivityRole struct {
	RoleID         string `json:"role_id"`
	RequiredPoints int    `json:"required_points"`
}

type ActivityRoleProgress

type ActivityRoleProgress struct {
	RoleID         string `json:"role_id"`
	Progress       int    `json:"progress"`
	RequiredPoints int    `json:"required_points"`
}

type ActivitySettings

type ActivitySettings struct {
	Enabled     *bool  `json:"enabled,omitempty"`
	Cooldown    *int32 `json:"cooldown,omitempty"`
	GrantAmount *int32 `json:"grant_amount,omitempty"`
}

type ActivityType

type ActivityType string
const (
	ActivityTypeChat ActivityType = "chat"
)

func (ActivityType) Valid

func (a ActivityType) Valid() bool

type AddActivityRole

type AddActivityRole struct {
	GrantType      ActivityType `json:"grant_type"`
	RoleID         string       `json:"role_id"`
	RequiredPoints int          `json:"required_points"`
}

type CardStyle

type CardStyle int
const (
	CardStyleDefault CardStyle = iota
)

type ChatActivityRoleQuery

type ChatActivityRoleQuery struct {
	Title  string `json:"title"`
	Accent string `json:"accent"`
}

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
}

type GuildSettings

type GuildSettings struct {
	ChatActivity ActivityConfig         `json:"chat_activity"`
	VoiceRooms   []VoiceRoomLobbyConfig `json:"voice_rooms"`
}

type LeaderboardType

type LeaderboardType string
const (
	LeaderboardTypeAllTime LeaderboardType = "all"
	LeaderboardTypeMonthly LeaderboardType = "monthly"
	LeaderboardTypeWeekly  LeaderboardType = "weekly"
)

func (LeaderboardType) Valid

func (l LeaderboardType) Valid() bool

type MemberActivity

type MemberActivity struct {
	Rank         int         `json:"rank"`
	Points       int         `json:"points"`
	IsOnCooldown bool        `json:"is_on_cooldown"`
	LastGrant    time.Time   `json:"last_grant"`
	Roles        MemberRoles `json:"roles"`
}

type MemberProfile

type MemberProfile struct {
	CardStyle    CardStyle      `json:"card_style"`
	ChatActivity MemberActivity `json:"chat_activity"`
}

type MemberRoles

type MemberRoles struct {
	Next     *ActivityRoleProgress `json:"next"`
	Obtained []ActivityRole        `json:"obtained"`
}

type MigrateProfile

type MigrateProfile struct {
	FromID string `json:"from_id"`
	ToID   string `json:"to_id"`
}

type UpdateActivitySettings

type UpdateActivitySettings struct {
	ChatActivity ActivitySettings `json:"chat_activity"`
}

type VoiceRoomConfig

type VoiceRoomConfig struct {
	OriginChannelID string `json:"origin_channel_id"`
	RoomChannelID   string `json:"room_channel_id"`
	CreatedByUserID string `json:"created_by_user_id"`
	CurrentOwnerID  string `json:"current_owner_id"`
	IsLocked        bool   `json:"is_locked"`
}

type VoiceRoomCreate

type VoiceRoomCreate struct {
	RoomChannelID   string `json:"room_channel_id"`
	CreatedByUserID string `json:"created_by_user_id"`
	CurrentOwnerID  string `json:"current_owner_id"`
}

type VoiceRoomLobbyConfig

type VoiceRoomLobbyConfig struct {
	ChannelID      string            `json:"channel_id"`
	UserLimit      int               `json:"user_limit"`
	CanRename      bool              `json:"can_rename"`
	CanLock        bool              `json:"can_lock"`
	CanAdjustLimit bool              `json:"can_adjust_limit"`
	CurrentRooms   []VoiceRoomConfig `json:"current_rooms"`
}

type VoiceRoomLobbyModify

type VoiceRoomLobbyModify struct {
	UserLimit      *int32 `json:"user_limit,omitempty"`
	CanRename      *bool  `json:"can_rename,omitempty"`
	CanLock        *bool  `json:"can_lock,omitempty"`
	CanAdjustLimit *bool  `json:"can_adjust_limit,omitempty"`
}

type VoiceRoomModify

type VoiceRoomModify struct {
	CurrentOwnerID *string `json:"current_owner_id,omitempty"`
	IsLocked       *bool   `json:"is_locked,omitempty"`
}

Directories

Path Synopsis
html

Jump to

Keyboard shortcuts

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