Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Antispam ¶
type Antispam struct { Enabled bool `yaml:"enabled"` ModeratorsBypass bool `yaml:"moderatorsBypass"` LogChannelId string `yaml:"logChannelId"` MessageTTLSec int `yaml:"messageTTLSec"` MaxChannelsPerUser int `yaml:"maxChannelsPerUser"` DenyTTLSec int `yaml:"denyTTLSec"` TrackedChannelIds []string `yaml:"trackedChannelIds"` }
func NewAntispam ¶
type ArchiveCommand ¶
type ArchiveCommand struct { Description string `yaml:"description"` Response string `yaml:"response"` }
func NewArchiveCommand ¶
func NewArchiveCommand(config *Config) ArchiveCommand
type ChannelSolvedTag ¶
type Command ¶
type Command struct { Description string `yaml:"description"` Content string `yaml:"content"` Protected bool `yaml:"protected"` Buttons CommandButtons `yaml:"buttons"` }
type CommandButton ¶
type CommandButtons ¶
type CommandButtons [][]CommandButton
type Commands ¶
func NewCommands ¶
type Config ¶
type Config struct { Moderators Moderators `yaml:"moderators"` Antispam Antispam `yaml:"antispam"` RateLimit RateLimit `yaml:"rateLimit"` Forms Forms `yaml:"forms"` ArchiveCommand ArchiveCommand `yaml:"archiveCommand"` SolvedCommand SolvedCommand `yaml:"solvedCommand"` Commands Commands `yaml:"commands"` }
type Form ¶
type Form struct { ChannelId string `yaml:"channelId"` ModChannelId string `yaml:"modChannelId"` ModalTitle string `yaml:"modalTitle"` ModSkipApproval bool `yaml:"modSkipApproval"` Color int `yaml:"color"` MinimumAccountAgeDays int `yaml:"minimumAccountAgeDays"` MinimumServerJoinDays int `yaml:"minimumServerJoinDays"` OpenModalMessage FormOpenModalMessage `yaml:"openModalMessage"` Inputs []FormInput `yaml:"inputs"` }
type FormOpenModalMessage ¶
type Moderators ¶
type Moderators []string
func NewModerators ¶
func NewModerators(config *Config) Moderators
type RateLimit ¶
type RateLimit struct { TTLSec int `yaml:"ttlSec"` MaxUsage int `yaml:"maxUsage"` Message string `yaml:"message"` }
func NewRateLimit ¶
type SolvedCommand ¶
type SolvedCommand struct { Description string `yaml:"description"` Response string `yaml:"response"` ChannelSolvedTag ChannelSolvedTag `yaml:"channelSolvedTag"` }
func NewSolvedCommand ¶
func NewSolvedCommand(config *Config) SolvedCommand
Click to show internal directories.
Click to hide internal directories.