model

package
v0.0.0-...-9b2646f Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVEntry

type KVEntry struct {
	Key       string
	GuildID   string
	Value     string
	ExpiresAt null.Time
	CreatedAt time.Time
	UpdatedAt time.Time
}

type KVEntryIncreaseParams

type KVEntryIncreaseParams struct {
	Key       string
	GuildID   string
	Delta     int
	ExpiresAt null.Time
	CreatedAt time.Time
	UpdatedAt time.Time
}

type Plan

type Plan struct {
	ID         string       `mapstructure:"id"`
	SKUID      string       `mapstructure:"sku_id"`
	Default    bool         `mapstructure:"default"`
	Features   PlanFeatures `mapstructure:"features"`
	Consumable bool         `mapstructure:"consumable"`
}

type PlanFeatures

type PlanFeatures struct {
	MaxSavedMessages          int  `mapstructure:"max_saved_messages"`
	MaxActionsPerComponent    int  `mapstructure:"max_actions_per_component"`
	AdvancedActionTypes       bool `mapstructure:"advanced_action_types"`
	AIAssistant               bool `mapstructure:"ai_assistant"`
	CustomBot                 bool `mapstructure:"custom_bot"`
	MaxCustomCommands         int  `mapstructure:"max_custom_commands"`
	IsPremium                 bool `mapstructure:"is_premium"`
	MaxImageUploadSize        int  `mapstructure:"max_image_upload_size"`
	MaxScheduledMessages      int  `mapstructure:"max_scheduled_messages"`
	PeriodicScheduledMessages bool `mapstructure:"periodic_scheduled_messages"`
	MaxTemplateOps            int  `mapstructure:"max_template_ops"`
	MaxKVKeys                 int  `mapstructure:"max_kv_keys"`
}

func (*PlanFeatures) Merge

func (f *PlanFeatures) Merge(b PlanFeatures)

Jump to

Keyboard shortcuts

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