Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Env ¶
type EnvMessage ¶
func NewEnvMessage ¶
func NewEnvMessage(message *discordgo.Message) *EnvMessage
type HandlerInterface ¶
type LogEntry ¶
type LogEntry struct { gorm.Model GuildID string Rule Rule RuleID uint ChannelIDs pq.StringArray `gorm:"type:varchar[]"` UserIDs pq.StringArray `gorm:"type:varchar[]"` MessageIDs pq.StringArray `gorm:"type:varchar[]"` ErrorMessage string }
type Rule ¶
type Rule struct { gorm.Model GuildID string `gorm:"index;not null"` Name string `gorm:"not null"` TriggerName string `gorm:"not null"` TriggerValues pq.StringArray `gorm:"type:varchar[]"` Filters []RuleFilter Actions []RuleAction Stop bool Silent bool Managed bool Runs int `gorm:"default:'0'"` }
type RuleAction ¶
type RuleAction struct { gorm.Model RuleID uint Name string `gorm:"not null"` Values pq.StringArray `gorm:"type:varchar[]"` }
func (*RuleAction) TableName ¶
func (*RuleAction) TableName() string
type RuleFilter ¶
type RuleFilter struct { gorm.Model RuleID uint Name string `gorm:"not null"` Values pq.StringArray `gorm:"type:varchar[]"` Not bool }
func (*RuleFilter) TableName ¶
func (*RuleFilter) TableName() string
Click to show internal directories.
Click to hide internal directories.