models

package
v2.40.7 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var ModerationConfigColumns = struct {
	GuildID                     string
	CreatedAt                   string
	UpdatedAt                   string
	KickEnabled                 string
	KickCmdRoles                string
	DeleteMessagesOnKick        string
	KickReasonOptional          string
	KickMessage                 string
	BanEnabled                  string
	BanCmdRoles                 string
	BanReasonOptional           string
	BanMessage                  string
	DefaultBanDeleteDays        string
	TimeoutEnabled              string
	TimeoutCmdRoles             string
	TimeoutReasonOptional       string
	TimeoutRemoveReasonOptional string
	TimeoutMessage              string
	DefaultTimeoutDuration      string
	MuteEnabled                 string
	MuteCmdRoles                string
	MuteRole                    string
	MuteDisallowReactionAdd     string
	MuteReasonOptional          string
	UnmuteReasonOptional        string
	MuteManageRole              string
	MuteRemoveRoles             string
	MuteIgnoreChannels          string
	MuteMessage                 string
	UnmuteMessage               string
	DefaultMuteDuration         string
	WarnCommandsEnabled         string
	WarnCmdRoles                string
	WarnIncludeChannelLogs      string
	WarnSendToModlog            string
	WarnMessage                 string
	CleanEnabled                string
	ReportEnabled               string
	ActionChannel               string
	ReportChannel               string
	ErrorChannel                string
	LogUnbans                   string
	LogBans                     string
	LogKicks                    string
	LogTimeouts                 string
	GiveRoleCmdEnabled          string
	GiveRoleCmdModlog           string
	GiveRoleCmdRoles            string
}{
	GuildID:                     "guild_id",
	CreatedAt:                   "created_at",
	UpdatedAt:                   "updated_at",
	KickEnabled:                 "kick_enabled",
	KickCmdRoles:                "kick_cmd_roles",
	DeleteMessagesOnKick:        "delete_messages_on_kick",
	KickReasonOptional:          "kick_reason_optional",
	KickMessage:                 "kick_message",
	BanEnabled:                  "ban_enabled",
	BanCmdRoles:                 "ban_cmd_roles",
	BanReasonOptional:           "ban_reason_optional",
	BanMessage:                  "ban_message",
	DefaultBanDeleteDays:        "default_ban_delete_days",
	TimeoutEnabled:              "timeout_enabled",
	TimeoutCmdRoles:             "timeout_cmd_roles",
	TimeoutReasonOptional:       "timeout_reason_optional",
	TimeoutRemoveReasonOptional: "timeout_remove_reason_optional",
	TimeoutMessage:              "timeout_message",
	DefaultTimeoutDuration:      "default_timeout_duration",
	MuteEnabled:                 "mute_enabled",
	MuteCmdRoles:                "mute_cmd_roles",
	MuteRole:                    "mute_role",
	MuteDisallowReactionAdd:     "mute_disallow_reaction_add",
	MuteReasonOptional:          "mute_reason_optional",
	UnmuteReasonOptional:        "unmute_reason_optional",
	MuteManageRole:              "mute_manage_role",
	MuteRemoveRoles:             "mute_remove_roles",
	MuteIgnoreChannels:          "mute_ignore_channels",
	MuteMessage:                 "mute_message",
	UnmuteMessage:               "unmute_message",
	DefaultMuteDuration:         "default_mute_duration",
	WarnCommandsEnabled:         "warn_commands_enabled",
	WarnCmdRoles:                "warn_cmd_roles",
	WarnIncludeChannelLogs:      "warn_include_channel_logs",
	WarnSendToModlog:            "warn_send_to_modlog",
	WarnMessage:                 "warn_message",
	CleanEnabled:                "clean_enabled",
	ReportEnabled:               "report_enabled",
	ActionChannel:               "action_channel",
	ReportChannel:               "report_channel",
	ErrorChannel:                "error_channel",
	LogUnbans:                   "log_unbans",
	LogBans:                     "log_bans",
	LogKicks:                    "log_kicks",
	LogTimeouts:                 "log_timeouts",
	GiveRoleCmdEnabled:          "give_role_cmd_enabled",
	GiveRoleCmdModlog:           "give_role_cmd_modlog",
	GiveRoleCmdRoles:            "give_role_cmd_roles",
}
View Source
var ModerationConfigRels = struct {
}{}

ModerationConfigRels is where relationship names are stored.

View Source
var ModerationConfigTableColumns = struct {
	GuildID                     string
	CreatedAt                   string
	UpdatedAt                   string
	KickEnabled                 string
	KickCmdRoles                string
	DeleteMessagesOnKick        string
	KickReasonOptional          string
	KickMessage                 string
	BanEnabled                  string
	BanCmdRoles                 string
	BanReasonOptional           string
	BanMessage                  string
	DefaultBanDeleteDays        string
	TimeoutEnabled              string
	TimeoutCmdRoles             string
	TimeoutReasonOptional       string
	TimeoutRemoveReasonOptional string
	TimeoutMessage              string
	DefaultTimeoutDuration      string
	MuteEnabled                 string
	MuteCmdRoles                string
	MuteRole                    string
	MuteDisallowReactionAdd     string
	MuteReasonOptional          string
	UnmuteReasonOptional        string
	MuteManageRole              string
	MuteRemoveRoles             string
	MuteIgnoreChannels          string
	MuteMessage                 string
	UnmuteMessage               string
	DefaultMuteDuration         string
	WarnCommandsEnabled         string
	WarnCmdRoles                string
	WarnIncludeChannelLogs      string
	WarnSendToModlog            string
	WarnMessage                 string
	CleanEnabled                string
	ReportEnabled               string
	ActionChannel               string
	ReportChannel               string
	ErrorChannel                string
	LogUnbans                   string
	LogBans                     string
	LogKicks                    string
	LogTimeouts                 string
	GiveRoleCmdEnabled          string
	GiveRoleCmdModlog           string
	GiveRoleCmdRoles            string
}{
	GuildID:                     "moderation_configs.guild_id",
	CreatedAt:                   "moderation_configs.created_at",
	UpdatedAt:                   "moderation_configs.updated_at",
	KickEnabled:                 "moderation_configs.kick_enabled",
	KickCmdRoles:                "moderation_configs.kick_cmd_roles",
	DeleteMessagesOnKick:        "moderation_configs.delete_messages_on_kick",
	KickReasonOptional:          "moderation_configs.kick_reason_optional",
	KickMessage:                 "moderation_configs.kick_message",
	BanEnabled:                  "moderation_configs.ban_enabled",
	BanCmdRoles:                 "moderation_configs.ban_cmd_roles",
	BanReasonOptional:           "moderation_configs.ban_reason_optional",
	BanMessage:                  "moderation_configs.ban_message",
	DefaultBanDeleteDays:        "moderation_configs.default_ban_delete_days",
	TimeoutEnabled:              "moderation_configs.timeout_enabled",
	TimeoutCmdRoles:             "moderation_configs.timeout_cmd_roles",
	TimeoutReasonOptional:       "moderation_configs.timeout_reason_optional",
	TimeoutRemoveReasonOptional: "moderation_configs.timeout_remove_reason_optional",
	TimeoutMessage:              "moderation_configs.timeout_message",
	DefaultTimeoutDuration:      "moderation_configs.default_timeout_duration",
	MuteEnabled:                 "moderation_configs.mute_enabled",
	MuteCmdRoles:                "moderation_configs.mute_cmd_roles",
	MuteRole:                    "moderation_configs.mute_role",
	MuteDisallowReactionAdd:     "moderation_configs.mute_disallow_reaction_add",
	MuteReasonOptional:          "moderation_configs.mute_reason_optional",
	UnmuteReasonOptional:        "moderation_configs.unmute_reason_optional",
	MuteManageRole:              "moderation_configs.mute_manage_role",
	MuteRemoveRoles:             "moderation_configs.mute_remove_roles",
	MuteIgnoreChannels:          "moderation_configs.mute_ignore_channels",
	MuteMessage:                 "moderation_configs.mute_message",
	UnmuteMessage:               "moderation_configs.unmute_message",
	DefaultMuteDuration:         "moderation_configs.default_mute_duration",
	WarnCommandsEnabled:         "moderation_configs.warn_commands_enabled",
	WarnCmdRoles:                "moderation_configs.warn_cmd_roles",
	WarnIncludeChannelLogs:      "moderation_configs.warn_include_channel_logs",
	WarnSendToModlog:            "moderation_configs.warn_send_to_modlog",
	WarnMessage:                 "moderation_configs.warn_message",
	CleanEnabled:                "moderation_configs.clean_enabled",
	ReportEnabled:               "moderation_configs.report_enabled",
	ActionChannel:               "moderation_configs.action_channel",
	ReportChannel:               "moderation_configs.report_channel",
	ErrorChannel:                "moderation_configs.error_channel",
	LogUnbans:                   "moderation_configs.log_unbans",
	LogBans:                     "moderation_configs.log_bans",
	LogKicks:                    "moderation_configs.log_kicks",
	LogTimeouts:                 "moderation_configs.log_timeouts",
	GiveRoleCmdEnabled:          "moderation_configs.give_role_cmd_enabled",
	GiveRoleCmdModlog:           "moderation_configs.give_role_cmd_modlog",
	GiveRoleCmdRoles:            "moderation_configs.give_role_cmd_roles",
}
View Source
var ModerationConfigWhere = struct {
	GuildID                     whereHelperint64
	CreatedAt                   whereHelpertime_Time
	UpdatedAt                   whereHelpertime_Time
	KickEnabled                 whereHelpernull_Bool
	KickCmdRoles                whereHelpertypes_Int64Array
	DeleteMessagesOnKick        whereHelpernull_Bool
	KickReasonOptional          whereHelpernull_Bool
	KickMessage                 whereHelpernull_String
	BanEnabled                  whereHelpernull_Bool
	BanCmdRoles                 whereHelpertypes_Int64Array
	BanReasonOptional           whereHelpernull_Bool
	BanMessage                  whereHelpernull_String
	DefaultBanDeleteDays        whereHelpernull_Int64
	TimeoutEnabled              whereHelpernull_Bool
	TimeoutCmdRoles             whereHelpertypes_Int64Array
	TimeoutReasonOptional       whereHelpernull_Bool
	TimeoutRemoveReasonOptional whereHelpernull_Bool
	TimeoutMessage              whereHelpernull_String
	DefaultTimeoutDuration      whereHelpernull_Int64
	MuteEnabled                 whereHelpernull_Bool
	MuteCmdRoles                whereHelpertypes_Int64Array
	MuteRole                    whereHelpernull_String
	MuteDisallowReactionAdd     whereHelpernull_Bool
	MuteReasonOptional          whereHelpernull_Bool
	UnmuteReasonOptional        whereHelpernull_Bool
	MuteManageRole              whereHelpernull_Bool
	MuteRemoveRoles             whereHelpertypes_Int64Array
	MuteIgnoreChannels          whereHelpertypes_Int64Array
	MuteMessage                 whereHelpernull_String
	UnmuteMessage               whereHelpernull_String
	DefaultMuteDuration         whereHelpernull_Int64
	WarnCommandsEnabled         whereHelpernull_Bool
	WarnCmdRoles                whereHelpertypes_Int64Array
	WarnIncludeChannelLogs      whereHelpernull_Bool
	WarnSendToModlog            whereHelpernull_Bool
	WarnMessage                 whereHelpernull_String
	CleanEnabled                whereHelpernull_Bool
	ReportEnabled               whereHelpernull_Bool
	ActionChannel               whereHelpernull_String
	ReportChannel               whereHelpernull_String
	ErrorChannel                whereHelpernull_String
	LogUnbans                   whereHelpernull_Bool
	LogBans                     whereHelpernull_Bool
	LogKicks                    whereHelpernull_Bool
	LogTimeouts                 whereHelpernull_Bool
	GiveRoleCmdEnabled          whereHelpernull_Bool
	GiveRoleCmdModlog           whereHelpernull_Bool
	GiveRoleCmdRoles            whereHelpertypes_Int64Array
}{
	GuildID:                     whereHelperint64{/* contains filtered or unexported fields */},
	CreatedAt:                   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:                   whereHelpertime_Time{/* contains filtered or unexported fields */},
	KickEnabled:                 whereHelpernull_Bool{/* contains filtered or unexported fields */},
	KickCmdRoles:                whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	DeleteMessagesOnKick:        whereHelpernull_Bool{/* contains filtered or unexported fields */},
	KickReasonOptional:          whereHelpernull_Bool{/* contains filtered or unexported fields */},
	KickMessage:                 whereHelpernull_String{/* contains filtered or unexported fields */},
	BanEnabled:                  whereHelpernull_Bool{/* contains filtered or unexported fields */},
	BanCmdRoles:                 whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	BanReasonOptional:           whereHelpernull_Bool{/* contains filtered or unexported fields */},
	BanMessage:                  whereHelpernull_String{/* contains filtered or unexported fields */},
	DefaultBanDeleteDays:        whereHelpernull_Int64{/* contains filtered or unexported fields */},
	TimeoutEnabled:              whereHelpernull_Bool{/* contains filtered or unexported fields */},
	TimeoutCmdRoles:             whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	TimeoutReasonOptional:       whereHelpernull_Bool{/* contains filtered or unexported fields */},
	TimeoutRemoveReasonOptional: whereHelpernull_Bool{/* contains filtered or unexported fields */},
	TimeoutMessage:              whereHelpernull_String{/* contains filtered or unexported fields */},
	DefaultTimeoutDuration:      whereHelpernull_Int64{/* contains filtered or unexported fields */},
	MuteEnabled:                 whereHelpernull_Bool{/* contains filtered or unexported fields */},
	MuteCmdRoles:                whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	MuteRole:                    whereHelpernull_String{/* contains filtered or unexported fields */},
	MuteDisallowReactionAdd:     whereHelpernull_Bool{/* contains filtered or unexported fields */},
	MuteReasonOptional:          whereHelpernull_Bool{/* contains filtered or unexported fields */},
	UnmuteReasonOptional:        whereHelpernull_Bool{/* contains filtered or unexported fields */},
	MuteManageRole:              whereHelpernull_Bool{/* contains filtered or unexported fields */},
	MuteRemoveRoles:             whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	MuteIgnoreChannels:          whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	MuteMessage:                 whereHelpernull_String{/* contains filtered or unexported fields */},
	UnmuteMessage:               whereHelpernull_String{/* contains filtered or unexported fields */},
	DefaultMuteDuration:         whereHelpernull_Int64{/* contains filtered or unexported fields */},
	WarnCommandsEnabled:         whereHelpernull_Bool{/* contains filtered or unexported fields */},
	WarnCmdRoles:                whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
	WarnIncludeChannelLogs:      whereHelpernull_Bool{/* contains filtered or unexported fields */},
	WarnSendToModlog:            whereHelpernull_Bool{/* contains filtered or unexported fields */},
	WarnMessage:                 whereHelpernull_String{/* contains filtered or unexported fields */},
	CleanEnabled:                whereHelpernull_Bool{/* contains filtered or unexported fields */},
	ReportEnabled:               whereHelpernull_Bool{/* contains filtered or unexported fields */},
	ActionChannel:               whereHelpernull_String{/* contains filtered or unexported fields */},
	ReportChannel:               whereHelpernull_String{/* contains filtered or unexported fields */},
	ErrorChannel:                whereHelpernull_String{/* contains filtered or unexported fields */},
	LogUnbans:                   whereHelpernull_Bool{/* contains filtered or unexported fields */},
	LogBans:                     whereHelpernull_Bool{/* contains filtered or unexported fields */},
	LogKicks:                    whereHelpernull_Bool{/* contains filtered or unexported fields */},
	LogTimeouts:                 whereHelpernull_Bool{/* contains filtered or unexported fields */},
	GiveRoleCmdEnabled:          whereHelpernull_Bool{/* contains filtered or unexported fields */},
	GiveRoleCmdModlog:           whereHelpernull_Bool{/* contains filtered or unexported fields */},
	GiveRoleCmdRoles:            whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
}
View Source
var ModerationWarningColumns = struct {
	ID                    string
	CreatedAt             string
	UpdatedAt             string
	GuildID               string
	UserID                string
	AuthorID              string
	AuthorUsernameDiscrim string
	Message               string
	LogsLink              string
}{
	ID:                    "id",
	CreatedAt:             "created_at",
	UpdatedAt:             "updated_at",
	GuildID:               "guild_id",
	UserID:                "user_id",
	AuthorID:              "author_id",
	AuthorUsernameDiscrim: "author_username_discrim",
	Message:               "message",
	LogsLink:              "logs_link",
}
View Source
var ModerationWarningRels = struct {
}{}

ModerationWarningRels is where relationship names are stored.

View Source
var ModerationWarningTableColumns = struct {
	ID                    string
	CreatedAt             string
	UpdatedAt             string
	GuildID               string
	UserID                string
	AuthorID              string
	AuthorUsernameDiscrim string
	Message               string
	LogsLink              string
}{
	ID:                    "moderation_warnings.id",
	CreatedAt:             "moderation_warnings.created_at",
	UpdatedAt:             "moderation_warnings.updated_at",
	GuildID:               "moderation_warnings.guild_id",
	UserID:                "moderation_warnings.user_id",
	AuthorID:              "moderation_warnings.author_id",
	AuthorUsernameDiscrim: "moderation_warnings.author_username_discrim",
	Message:               "moderation_warnings.message",
	LogsLink:              "moderation_warnings.logs_link",
}
View Source
var ModerationWarningWhere = struct {
	ID                    whereHelperint
	CreatedAt             whereHelpertime_Time
	UpdatedAt             whereHelpertime_Time
	GuildID               whereHelperint64
	UserID                whereHelperstring
	AuthorID              whereHelperstring
	AuthorUsernameDiscrim whereHelperstring
	Message               whereHelperstring
	LogsLink              whereHelpernull_String
}{
	ID:                    whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
	GuildID:               whereHelperint64{/* contains filtered or unexported fields */},
	UserID:                whereHelperstring{/* contains filtered or unexported fields */},
	AuthorID:              whereHelperstring{/* contains filtered or unexported fields */},
	AuthorUsernameDiscrim: whereHelperstring{/* contains filtered or unexported fields */},
	Message:               whereHelperstring{/* contains filtered or unexported fields */},
	LogsLink:              whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var MutedUserColumns = struct {
	ID           string
	CreatedAt    string
	UpdatedAt    string
	ExpiresAt    string
	GuildID      string
	UserID       string
	AuthorID     string
	Reason       string
	RemovedRoles string
}{
	ID:           "id",
	CreatedAt:    "created_at",
	UpdatedAt:    "updated_at",
	ExpiresAt:    "expires_at",
	GuildID:      "guild_id",
	UserID:       "user_id",
	AuthorID:     "author_id",
	Reason:       "reason",
	RemovedRoles: "removed_roles",
}
View Source
var MutedUserRels = struct {
}{}

MutedUserRels is where relationship names are stored.

View Source
var MutedUserTableColumns = struct {
	ID           string
	CreatedAt    string
	UpdatedAt    string
	ExpiresAt    string
	GuildID      string
	UserID       string
	AuthorID     string
	Reason       string
	RemovedRoles string
}{
	ID:           "muted_users.id",
	CreatedAt:    "muted_users.created_at",
	UpdatedAt:    "muted_users.updated_at",
	ExpiresAt:    "muted_users.expires_at",
	GuildID:      "muted_users.guild_id",
	UserID:       "muted_users.user_id",
	AuthorID:     "muted_users.author_id",
	Reason:       "muted_users.reason",
	RemovedRoles: "muted_users.removed_roles",
}
View Source
var MutedUserWhere = struct {
	ID           whereHelperint
	CreatedAt    whereHelpertime_Time
	UpdatedAt    whereHelpertime_Time
	ExpiresAt    whereHelpernull_Time
	GuildID      whereHelperint64
	UserID       whereHelperint64
	AuthorID     whereHelperint64
	Reason       whereHelperstring
	RemovedRoles whereHelpertypes_Int64Array
}{
	ID:           whereHelperint{/* contains filtered or unexported fields */},
	CreatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:    whereHelpertime_Time{/* contains filtered or unexported fields */},
	ExpiresAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	GuildID:      whereHelperint64{/* contains filtered or unexported fields */},
	UserID:       whereHelperint64{/* contains filtered or unexported fields */},
	AuthorID:     whereHelperint64{/* contains filtered or unexported fields */},
	Reason:       whereHelperstring{/* contains filtered or unexported fields */},
	RemovedRoles: whereHelpertypes_Int64Array{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	ModerationConfigs  string
	ModerationWarnings string
	MutedUsers         string
}{
	ModerationConfigs:  "moderation_configs",
	ModerationWarnings: "moderation_warnings",
	MutedUsers:         "muted_users",
}
View Source
var ViewNames = struct {
}{}

Functions

func ModerationConfigExists

func ModerationConfigExists(ctx context.Context, exec boil.ContextExecutor, guildID int64) (bool, error)

ModerationConfigExists checks if the ModerationConfig row exists.

func ModerationConfigExistsG

func ModerationConfigExistsG(ctx context.Context, guildID int64) (bool, error)

ModerationConfigExistsG checks if the ModerationConfig row exists.

func ModerationConfigs

func ModerationConfigs(mods ...qm.QueryMod) moderationConfigQuery

ModerationConfigs retrieves all the records using an executor.

func ModerationWarningExists

func ModerationWarningExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

ModerationWarningExists checks if the ModerationWarning row exists.

func ModerationWarningExistsG

func ModerationWarningExistsG(ctx context.Context, iD int) (bool, error)

ModerationWarningExistsG checks if the ModerationWarning row exists.

func ModerationWarnings

func ModerationWarnings(mods ...qm.QueryMod) moderationWarningQuery

ModerationWarnings retrieves all the records using an executor.

func MutedUserExists

func MutedUserExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

MutedUserExists checks if the MutedUser row exists.

func MutedUserExistsG

func MutedUserExistsG(ctx context.Context, iD int) (bool, error)

MutedUserExistsG checks if the MutedUser row exists.

func MutedUsers

func MutedUsers(mods ...qm.QueryMod) mutedUserQuery

MutedUsers retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

Types

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type ModerationConfig

type ModerationConfig struct {
	GuildID                     int64            `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	CreatedAt                   time.Time        `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt                   time.Time        `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	KickEnabled                 null.Bool        `boil:"kick_enabled" json:"kick_enabled,omitempty" toml:"kick_enabled" yaml:"kick_enabled,omitempty"`
	KickCmdRoles                types.Int64Array `boil:"kick_cmd_roles" json:"kick_cmd_roles,omitempty" toml:"kick_cmd_roles" yaml:"kick_cmd_roles,omitempty"`
	DeleteMessagesOnKick        null.Bool        `` /* 143-byte string literal not displayed */
	KickReasonOptional          null.Bool        `` /* 131-byte string literal not displayed */
	KickMessage                 null.String      `boil:"kick_message" json:"kick_message,omitempty" toml:"kick_message" yaml:"kick_message,omitempty"`
	BanEnabled                  null.Bool        `boil:"ban_enabled" json:"ban_enabled,omitempty" toml:"ban_enabled" yaml:"ban_enabled,omitempty"`
	BanCmdRoles                 types.Int64Array `boil:"ban_cmd_roles" json:"ban_cmd_roles,omitempty" toml:"ban_cmd_roles" yaml:"ban_cmd_roles,omitempty"`
	BanReasonOptional           null.Bool        `` /* 127-byte string literal not displayed */
	BanMessage                  null.String      `boil:"ban_message" json:"ban_message,omitempty" toml:"ban_message" yaml:"ban_message,omitempty"`
	DefaultBanDeleteDays        null.Int64       `` /* 143-byte string literal not displayed */
	TimeoutEnabled              null.Bool        `boil:"timeout_enabled" json:"timeout_enabled,omitempty" toml:"timeout_enabled" yaml:"timeout_enabled,omitempty"`
	TimeoutCmdRoles             types.Int64Array `boil:"timeout_cmd_roles" json:"timeout_cmd_roles,omitempty" toml:"timeout_cmd_roles" yaml:"timeout_cmd_roles,omitempty"`
	TimeoutReasonOptional       null.Bool        `` /* 143-byte string literal not displayed */
	TimeoutRemoveReasonOptional null.Bool        `` /* 171-byte string literal not displayed */
	TimeoutMessage              null.String      `boil:"timeout_message" json:"timeout_message,omitempty" toml:"timeout_message" yaml:"timeout_message,omitempty"`
	DefaultTimeoutDuration      null.Int64       `` /* 147-byte string literal not displayed */
	MuteEnabled                 null.Bool        `boil:"mute_enabled" json:"mute_enabled,omitempty" toml:"mute_enabled" yaml:"mute_enabled,omitempty"`
	MuteCmdRoles                types.Int64Array `boil:"mute_cmd_roles" json:"mute_cmd_roles,omitempty" toml:"mute_cmd_roles" yaml:"mute_cmd_roles,omitempty"`
	MuteRole                    null.String      `boil:"mute_role" json:"mute_role,omitempty" toml:"mute_role" yaml:"mute_role,omitempty"`
	MuteDisallowReactionAdd     null.Bool        `` /* 155-byte string literal not displayed */
	MuteReasonOptional          null.Bool        `` /* 131-byte string literal not displayed */
	UnmuteReasonOptional        null.Bool        `` /* 139-byte string literal not displayed */
	MuteManageRole              null.Bool        `boil:"mute_manage_role" json:"mute_manage_role,omitempty" toml:"mute_manage_role" yaml:"mute_manage_role,omitempty"`
	MuteRemoveRoles             types.Int64Array `boil:"mute_remove_roles" json:"mute_remove_roles,omitempty" toml:"mute_remove_roles" yaml:"mute_remove_roles,omitempty"`
	MuteIgnoreChannels          types.Int64Array `` /* 131-byte string literal not displayed */
	MuteMessage                 null.String      `boil:"mute_message" json:"mute_message,omitempty" toml:"mute_message" yaml:"mute_message,omitempty"`
	UnmuteMessage               null.String      `boil:"unmute_message" json:"unmute_message,omitempty" toml:"unmute_message" yaml:"unmute_message,omitempty"`
	DefaultMuteDuration         null.Int64       `` /* 135-byte string literal not displayed */
	WarnCommandsEnabled         null.Bool        `` /* 135-byte string literal not displayed */
	WarnCmdRoles                types.Int64Array `boil:"warn_cmd_roles" json:"warn_cmd_roles,omitempty" toml:"warn_cmd_roles" yaml:"warn_cmd_roles,omitempty"`
	WarnIncludeChannelLogs      null.Bool        `` /* 151-byte string literal not displayed */
	WarnSendToModlog            null.Bool        `` /* 127-byte string literal not displayed */
	WarnMessage                 null.String      `boil:"warn_message" json:"warn_message,omitempty" toml:"warn_message" yaml:"warn_message,omitempty"`
	CleanEnabled                null.Bool        `boil:"clean_enabled" json:"clean_enabled,omitempty" toml:"clean_enabled" yaml:"clean_enabled,omitempty"`
	ReportEnabled               null.Bool        `boil:"report_enabled" json:"report_enabled,omitempty" toml:"report_enabled" yaml:"report_enabled,omitempty"`
	ActionChannel               null.String      `boil:"action_channel" json:"action_channel,omitempty" toml:"action_channel" yaml:"action_channel,omitempty"`
	ReportChannel               null.String      `boil:"report_channel" json:"report_channel,omitempty" toml:"report_channel" yaml:"report_channel,omitempty"`
	ErrorChannel                null.String      `boil:"error_channel" json:"error_channel,omitempty" toml:"error_channel" yaml:"error_channel,omitempty"`
	LogUnbans                   null.Bool        `boil:"log_unbans" json:"log_unbans,omitempty" toml:"log_unbans" yaml:"log_unbans,omitempty"`
	LogBans                     null.Bool        `boil:"log_bans" json:"log_bans,omitempty" toml:"log_bans" yaml:"log_bans,omitempty"`
	LogKicks                    null.Bool        `boil:"log_kicks" json:"log_kicks,omitempty" toml:"log_kicks" yaml:"log_kicks,omitempty"`
	LogTimeouts                 null.Bool        `boil:"log_timeouts" json:"log_timeouts,omitempty" toml:"log_timeouts" yaml:"log_timeouts,omitempty"`
	GiveRoleCmdEnabled          null.Bool        `` /* 135-byte string literal not displayed */
	GiveRoleCmdModlog           null.Bool        `` /* 131-byte string literal not displayed */
	GiveRoleCmdRoles            types.Int64Array `` /* 127-byte string literal not displayed */

	R *moderationConfigR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L moderationConfigL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ModerationConfig is an object representing the database table.

func FindModerationConfig

func FindModerationConfig(ctx context.Context, exec boil.ContextExecutor, guildID int64, selectCols ...string) (*ModerationConfig, error)

FindModerationConfig retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindModerationConfigG

func FindModerationConfigG(ctx context.Context, guildID int64, selectCols ...string) (*ModerationConfig, error)

FindModerationConfigG retrieves a single record by ID.

func (*ModerationConfig) Delete

Delete deletes a single ModerationConfig record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ModerationConfig) DeleteG

func (o *ModerationConfig) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single ModerationConfig record. DeleteG will match against the primary key column to find the record to delete.

func (*ModerationConfig) Exists

func (o *ModerationConfig) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the ModerationConfig row exists.

func (*ModerationConfig) Insert

func (o *ModerationConfig) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*ModerationConfig) InsertG

func (o *ModerationConfig) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ModerationConfig) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*ModerationConfig) ReloadG

func (o *ModerationConfig) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*ModerationConfig) Update

func (o *ModerationConfig) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the ModerationConfig. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ModerationConfig) UpdateG

func (o *ModerationConfig) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single ModerationConfig record using the global executor. See Update for more documentation.

func (*ModerationConfig) Upsert

func (o *ModerationConfig) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*ModerationConfig) UpsertG

func (o *ModerationConfig) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type ModerationConfigSlice

type ModerationConfigSlice []*ModerationConfig

ModerationConfigSlice is an alias for a slice of pointers to ModerationConfig. This should almost always be used instead of []ModerationConfig.

func (ModerationConfigSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (ModerationConfigSlice) DeleteAllG

func (o ModerationConfigSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*ModerationConfigSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ModerationConfigSlice) ReloadAllG

func (o *ModerationConfigSlice) ReloadAllG(ctx context.Context) error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ModerationConfigSlice) UpdateAll

func (o ModerationConfigSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (ModerationConfigSlice) UpdateAllG

func (o ModerationConfigSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type ModerationWarning

type ModerationWarning struct {
	ID                    int         `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt             time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt             time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	GuildID               int64       `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	UserID                string      `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	AuthorID              string      `boil:"author_id" json:"author_id" toml:"author_id" yaml:"author_id"`
	AuthorUsernameDiscrim string      `boil:"author_username_discrim" json:"author_username_discrim" toml:"author_username_discrim" yaml:"author_username_discrim"`
	Message               string      `boil:"message" json:"message" toml:"message" yaml:"message"`
	LogsLink              null.String `boil:"logs_link" json:"logs_link,omitempty" toml:"logs_link" yaml:"logs_link,omitempty"`

	R *moderationWarningR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L moderationWarningL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ModerationWarning is an object representing the database table.

func FindModerationWarning

func FindModerationWarning(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*ModerationWarning, error)

FindModerationWarning retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindModerationWarningG

func FindModerationWarningG(ctx context.Context, iD int, selectCols ...string) (*ModerationWarning, error)

FindModerationWarningG retrieves a single record by ID.

func (*ModerationWarning) Delete

Delete deletes a single ModerationWarning record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ModerationWarning) DeleteG

func (o *ModerationWarning) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single ModerationWarning record. DeleteG will match against the primary key column to find the record to delete.

func (*ModerationWarning) Exists

Exists checks if the ModerationWarning row exists.

func (*ModerationWarning) Insert

func (o *ModerationWarning) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*ModerationWarning) InsertG

func (o *ModerationWarning) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ModerationWarning) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*ModerationWarning) ReloadG

func (o *ModerationWarning) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*ModerationWarning) Update

func (o *ModerationWarning) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the ModerationWarning. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ModerationWarning) UpdateG

func (o *ModerationWarning) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single ModerationWarning record using the global executor. See Update for more documentation.

func (*ModerationWarning) Upsert

func (o *ModerationWarning) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*ModerationWarning) UpsertG

func (o *ModerationWarning) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type ModerationWarningSlice

type ModerationWarningSlice []*ModerationWarning

ModerationWarningSlice is an alias for a slice of pointers to ModerationWarning. This should almost always be used instead of []ModerationWarning.

func (ModerationWarningSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (ModerationWarningSlice) DeleteAllG

func (o ModerationWarningSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*ModerationWarningSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ModerationWarningSlice) ReloadAllG

func (o *ModerationWarningSlice) ReloadAllG(ctx context.Context) error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ModerationWarningSlice) UpdateAll

func (o ModerationWarningSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (ModerationWarningSlice) UpdateAllG

func (o ModerationWarningSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type MutedUser

type MutedUser struct {
	ID           int              `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt    time.Time        `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt    time.Time        `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	ExpiresAt    null.Time        `boil:"expires_at" json:"expires_at,omitempty" toml:"expires_at" yaml:"expires_at,omitempty"`
	GuildID      int64            `boil:"guild_id" json:"guild_id" toml:"guild_id" yaml:"guild_id"`
	UserID       int64            `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	AuthorID     int64            `boil:"author_id" json:"author_id" toml:"author_id" yaml:"author_id"`
	Reason       string           `boil:"reason" json:"reason" toml:"reason" yaml:"reason"`
	RemovedRoles types.Int64Array `boil:"removed_roles" json:"removed_roles,omitempty" toml:"removed_roles" yaml:"removed_roles,omitempty"`

	R *mutedUserR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L mutedUserL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MutedUser is an object representing the database table.

func FindMutedUser

func FindMutedUser(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*MutedUser, error)

FindMutedUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindMutedUserG

func FindMutedUserG(ctx context.Context, iD int, selectCols ...string) (*MutedUser, error)

FindMutedUserG retrieves a single record by ID.

func (*MutedUser) Delete

func (o *MutedUser) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single MutedUser record with an executor. Delete will match against the primary key column to find the record to delete.

func (*MutedUser) DeleteG

func (o *MutedUser) DeleteG(ctx context.Context) (int64, error)

DeleteG deletes a single MutedUser record. DeleteG will match against the primary key column to find the record to delete.

func (*MutedUser) Exists

func (o *MutedUser) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the MutedUser row exists.

func (*MutedUser) Insert

func (o *MutedUser) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*MutedUser) InsertG

func (o *MutedUser) InsertG(ctx context.Context, columns boil.Columns) error

InsertG a single record. See Insert for whitelist behavior description.

func (*MutedUser) Reload

func (o *MutedUser) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*MutedUser) ReloadG

func (o *MutedUser) ReloadG(ctx context.Context) error

ReloadG refetches the object from the database using the primary keys.

func (*MutedUser) Update

func (o *MutedUser) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the MutedUser. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*MutedUser) UpdateG

func (o *MutedUser) UpdateG(ctx context.Context, columns boil.Columns) (int64, error)

UpdateG a single MutedUser record using the global executor. See Update for more documentation.

func (*MutedUser) Upsert

func (o *MutedUser) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*MutedUser) UpsertG

func (o *MutedUser) UpsertG(ctx context.Context, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns, opts ...UpsertOptionFunc) error

UpsertG attempts an insert, and does an update or ignore on conflict.

type MutedUserSlice

type MutedUserSlice []*MutedUser

MutedUserSlice is an alias for a slice of pointers to MutedUser. This should almost always be used instead of []MutedUser.

func (MutedUserSlice) DeleteAll

func (o MutedUserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (MutedUserSlice) DeleteAllG

func (o MutedUserSlice) DeleteAllG(ctx context.Context) (int64, error)

DeleteAllG deletes all rows in the slice.

func (*MutedUserSlice) ReloadAll

func (o *MutedUserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*MutedUserSlice) ReloadAllG

func (o *MutedUserSlice) ReloadAllG(ctx context.Context) error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (MutedUserSlice) UpdateAll

func (o MutedUserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

func (MutedUserSlice) UpdateAllG

func (o MutedUserSlice) UpdateAllG(ctx context.Context, cols M) (int64, error)

UpdateAllG updates all rows with the specified column values.

type UpsertOptionFunc

type UpsertOptionFunc func(o *UpsertOptions)

func UpsertConflictTarget

func UpsertConflictTarget(conflictTarget string) UpsertOptionFunc

func UpsertUpdateSet

func UpsertUpdateSet(updateSet string) UpsertOptionFunc

type UpsertOptions

type UpsertOptions struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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