models

package
v0.0.0-...-a41bb07 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorRole

type ColorRole struct {
	Name string `json:"color"`
	ID   string `json:"id"`
}

type CommandRestriction

type CommandRestriction struct {
	Command  string   `json:"command"`
	Mode     string   `json:"mode"`
	Channels []string `json:"channels"`
}

type Configuration

type Configuration struct {
	CommandKey string `json:"command_key"`

	GuildID   string `json:"guild_id"`
	GuildName string `json:"guild_name"`

	StatusText  string `json:"status_text"`
	WelcomeText string `json:"welcome_text"`
	RulesText   string `json:"rules_text"`

	AdminRoles  []string `json:"admin_roles"`
	JoinRoleIDs []string `json:"join_role_ids"`

	CommandRestrictions []CommandRestriction `json:"command_restrictions"`

	ColorRoles  []ColorRole  `json:"color_roles"`
	CustomRoles []CustomRole `json:"custom_roles"`

	IgnoredUsers []string `json:"ignored_users"`

	LoggingChannel string `json:"logging_channel"`

	ConfigPath string

	FilterLanguage       bool
	JoinFloodThreshold   int
	UserMessageThreshold int
	MaxUserWarnings      int
	MaxUserKicks         int
	EnforceMode          bool
}

type CustomEmbed

type CustomEmbed struct {
	URL       string
	Title     string
	Desc      string
	Type      string
	Timestamp string
	Color     int

	FooterText     string
	FooterImageURL string

	ImageURL string
	ImageH   int
	ImageW   int

	ThumbnailURL string
	ThumbnailH   int
	ThumbnailW   int

	ProviderURL  string
	ProviderText string

	AuthorText     string
	AuthorURL      string
	AuthorImageURL string
}

type CustomRole

type CustomRole struct {
	Name      string `json:"role_name"`
	ShortName string `json:"short_name"`
	ID        string `json:"id"`
}

Jump to

Keyboard shortcuts

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