database

package
v0.0.0-...-76e2c97 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: AGPL-3.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

View Source
const CreateAutoRolesGuildSettings = `` /* 184-byte string literal not displayed */
View Source
const CreateBorderwallGuildSettings = `` /* 374-byte string literal not displayed */
View Source
const CreateBorderwallRequest = `` /* 408-byte string literal not displayed */
View Source
const CreateCommandError = `` /* 191-byte string literal not displayed */
View Source
const CreateCommandUsage = `` /* 333-byte string literal not displayed */
View Source
const CreateFreeRolesGuildSettings = `` /* 184-byte string literal not displayed */
View Source
const CreateGuild = `` /* 297-byte string literal not displayed */
View Source
const CreateGuildInvites = `` /* 211-byte string literal not displayed */
View Source
const CreateLeaverGuildSettings = `` /* 218-byte string literal not displayed */
View Source
const CreateNewMembership = `` /* 405-byte string literal not displayed */
View Source
const CreateOrUpdateAutoRolesGuildSettings = `` /* 305-byte string literal not displayed */
View Source
const CreateOrUpdateBorderwallGuildSettings = `` /* 759-byte string literal not displayed */
View Source
const CreateOrUpdateFreeRolesGuildSettings = `` /* 305-byte string literal not displayed */
View Source
const CreateOrUpdateGuild = `` /* 608-byte string literal not displayed */
View Source
const CreateOrUpdateGuildInvites = `` /* 405-byte string literal not displayed */
View Source
const CreateOrUpdateLeaverGuildSettings = `` /* 393-byte string literal not displayed */
View Source
const CreateOrUpdateNewMembership = `` /* 739-byte string literal not displayed */
View Source
const CreateOrUpdatePatreonUser = `` /* 943-byte string literal not displayed */
View Source
const CreateOrUpdateRulesGuildSettings = `` /* 399-byte string literal not displayed */
View Source
const CreateOrUpdateTempChannelsGuildSettings = `` /* 633-byte string literal not displayed */
View Source
const CreateOrUpdateTimeRolesGuildSettings = `` /* 321-byte string literal not displayed */
View Source
const CreateOrUpdateUser = `` /* 435-byte string literal not displayed */
View Source
const CreateOrUpdateUserTransaction = `` /* 763-byte string literal not displayed */
View Source
const CreateOrUpdateWelcomerDMsGuildSettings = `` /* 577-byte string literal not displayed */
View Source
const CreateOrUpdateWelcomerImagesGuildSettings = `` /* 1237-byte string literal not displayed */
View Source
const CreateOrUpdateWelcomerTextGuildSettings = `` /* 406-byte string literal not displayed */
View Source
const CreatePatreonUser = `` /* 457-byte string literal not displayed */
View Source
const CreateRulesGuildSettings = `` /* 220-byte string literal not displayed */
View Source
const CreateScienceEvent = `` /* 205-byte string literal not displayed */
View Source
const CreateScienceGuildEvent = `` /* 252-byte string literal not displayed */
View Source
const CreateTempChannelsGuildSettings = `` /* 330-byte string literal not displayed */
View Source
const CreateTimeRolesGuildSettings = `` /* 192-byte string literal not displayed */
View Source
const CreateUser = `` /* 233-byte string literal not displayed */
View Source
const CreateUserTransaction = `` /* 400-byte string literal not displayed */
View Source
const CreateWelcomerDMsGuildSettings = `` /* 307-byte string literal not displayed */
View Source
const CreateWelcomerImages = `` /* 213-byte string literal not displayed */
View Source
const CreateWelcomerImagesGuildSettings = `` /* 594-byte string literal not displayed */
View Source
const CreateWelcomerTextGuildSettings = `` /* 231-byte string literal not displayed */
View Source
const DeleteGuildInvites = `-- name: DeleteGuildInvites :execrows
DELETE FROM
    guild_invites
WHERE
    invite_code = $1
    AND guild_id = $2
`
View Source
const DeletePatreonUser = `-- name: DeletePatreonUser :execrows
DELETE FROM patreon_users
WHERE patreon_user_id = $1 AND user_id = $2
`
View Source
const DeleteUserMembership = `-- name: DeleteUserMembership :execrows
DELETE FROM
    user_memberships
WHERE
    membership_uuid = $1
`
View Source
const DeleteUserTransaction = `-- name: DeleteUserTransaction :execrows
DELETE FROM
    user_transactions
WHERE
    transaction_uuid = $1
`
View Source
const DeleteWelcomerImage = `-- name: DeleteWelcomerImage :execrows
DELETE FROM welcomer_images
WHERE image_uuid = $1
`
View Source
const GetAutoRolesGuildSettings = `` /* 141-byte string literal not displayed */
View Source
const GetBorderwallGuildSettings = `` /* 227-byte string literal not displayed */
View Source
const GetBorderwallRequest = `` /* 295-byte string literal not displayed */
View Source
const GetBorderwallRequestsByGuildIDUserID = `` /* 329-byte string literal not displayed */
View Source
const GetBorderwallRequestsByIPAddress = `` /* 306-byte string literal not displayed */
View Source
const GetCommandError = `` /* 464-byte string literal not displayed */
View Source
const GetCommandUsage = `` /* 194-byte string literal not displayed */
View Source
const GetFreeRolesGuildSettings = `` /* 141-byte string literal not displayed */
View Source
const GetGuild = `` /* 174-byte string literal not displayed */
View Source
const GetGuildInvites = `` /* 141-byte string literal not displayed */
View Source
const GetLeaverGuildSettings = `` /* 153-byte string literal not displayed */
View Source
const GetPatreonUser = `` /* 252-byte string literal not displayed */
View Source
const GetPatreonUsers = `` /* 223-byte string literal not displayed */
View Source
const GetPatreonUsersByUserID = `` /* 254-byte string literal not displayed */
View Source
const GetRulesGuildSettings = `` /* 153-byte string literal not displayed */
View Source
const GetScienceEvent = `` /* 132-byte string literal not displayed */
View Source
const GetScienceGuildEvent = `` /* 165-byte string literal not displayed */
View Source
const GetTempChannelsGuildSettings = `` /* 211-byte string literal not displayed */
View Source
const GetTimeRolesGuildSettings = `` /* 145-byte string literal not displayed */
View Source
const GetUser = `` /* 137-byte string literal not displayed */
View Source
const GetUserMembership = `` /* 616-byte string literal not displayed */
View Source
const GetUserMembershipsByGuildID = `` /* 620-byte string literal not displayed */
View Source
const GetUserMembershipsByUserID = `` /* 813-byte string literal not displayed */
View Source
const GetUserTransaction = `` /* 227-byte string literal not displayed */
View Source
const GetUserTransactionsByTransactionID = `` /* 267-byte string literal not displayed */
View Source
const GetUserTransactionsByUserID = `` /* 228-byte string literal not displayed */
View Source
const GetWelcomerDMsGuildSettings = `` /* 201-byte string literal not displayed */
View Source
const GetWelcomerImages = `` /* 145-byte string literal not displayed */
View Source
const GetWelcomerImagesByGuildId = `` /* 153-byte string literal not displayed */
View Source
const GetWelcomerImagesGuildSettings = `` /* 332-byte string literal not displayed */
View Source
const GetWelcomerTextGuildSettings = `` /* 166-byte string literal not displayed */
View Source
const InsertBorderwallRequest = `` /* 405-byte string literal not displayed */
View Source
const UpdateAutoRolesGuildSettings = `` /* 152-byte string literal not displayed */
View Source
const UpdateBorderwallGuildSettings = `` /* 283-byte string literal not displayed */
View Source
const UpdateBorderwallRequest = `` /* 357-byte string literal not displayed */
View Source
const UpdateFreeRolesGuildSettings = `` /* 152-byte string literal not displayed */
View Source
const UpdateGuild = `` /* 212-byte string literal not displayed */
View Source
const UpdateLeaverGuildSettings = `` /* 173-byte string literal not displayed */
View Source
const UpdatePatreonUser = `` /* 320-byte string literal not displayed */
View Source
const UpdateRuleGuildSettings = `` /* 172-byte string literal not displayed */
View Source
const UpdateTempChannelsGuildSettings = `` /* 249-byte string literal not displayed */
View Source
const UpdateTimeRolesGuildSettings = `` /* 156-byte string literal not displayed */
View Source
const UpdateUser = `` /* 158-byte string literal not displayed */
View Source
const UpdateUserMembership = `` /* 249-byte string literal not displayed */
View Source
const UpdateUserTransaction = `` /* 266-byte string literal not displayed */
View Source
const UpdateWelcomerDMsGuildSettings = `` /* 230-byte string literal not displayed */
View Source
const UpdateWelcomerImagesGuildSettings = `` /* 427-byte string literal not displayed */
View Source
const UpdateWelcomerTextGuildSettings = `` /* 186-byte string literal not displayed */

Variables

View Source
var ErrInvalidMembershipStatus = errors.New("not a valid MembershipStatus")
View Source
var ErrInvalidMembershipType = errors.New("not a valid MembershipType")
View Source
var ErrInvalidPlatformType = errors.New("not a valid PlatformType")
View Source
var ErrInvalidScienceEventType = errors.New("not a valid ScienceEventType")
View Source
var ErrInvalidScienceGuildEventType = errors.New("not a valid ScienceGuildEventType")
View Source
var ErrInvalidTransactionStatus = errors.New("not a valid TransactionStatus")

Functions

func MustConvertToJSONB

func MustConvertToJSONB(v interface{}) pgtype.JSONB

Types

type BorderwallRequests

type BorderwallRequests struct {
	RequestUuid     uuid.UUID       `json:"request_uuid"`
	CreatedAt       time.Time       `json:"created_at"`
	UpdatedAt       time.Time       `json:"updated_at"`
	GuildID         int64           `json:"guild_id"`
	UserID          int64           `json:"user_id"`
	IsVerified      bool            `json:"is_verified"`
	VerifiedAt      sql.NullTime    `json:"verified_at"`
	IpAddress       pgtype.Inet     `json:"ip_address"`
	RecaptchaScore  sql.NullFloat64 `json:"recaptcha_score"`
	IpintelScore    sql.NullFloat64 `json:"ipintel_score"`
	CountryCode     sql.NullString  `json:"country_code"`
	UaFamily        sql.NullString  `json:"ua_family"`
	UaFamilyVersion sql.NullString  `json:"ua_family_version"`
	UaOs            sql.NullString  `json:"ua_os"`
	UaOsVersion     sql.NullString  `json:"ua_os_version"`
}

type CreateAutoRolesGuildSettingsParams

type CreateAutoRolesGuildSettingsParams struct {
	GuildID       int64   `json:"guild_id"`
	ToggleEnabled bool    `json:"toggle_enabled"`
	Roles         []int64 `json:"roles"`
}

type CreateBorderwallGuildSettingsParams

type CreateBorderwallGuildSettingsParams struct {
	GuildID         int64        `json:"guild_id"`
	ToggleEnabled   bool         `json:"toggle_enabled"`
	ToggleSendDm    bool         `json:"toggle_send_dm"`
	Channel         int64        `json:"channel"`
	MessageVerify   pgtype.JSONB `json:"message_verify"`
	MessageVerified pgtype.JSONB `json:"message_verified"`
	RolesOnJoin     []int64      `json:"roles_on_join"`
	RolesOnVerify   []int64      `json:"roles_on_verify"`
}

type CreateBorderwallRequestParams

type CreateBorderwallRequestParams struct {
	GuildID int64 `json:"guild_id"`
	UserID  int64 `json:"user_id"`
}

type CreateCommandErrorParams

type CreateCommandErrorParams struct {
	CommandUuid uuid.UUID    `json:"command_uuid"`
	Trace       string       `json:"trace"`
	Data        pgtype.JSONB `json:"data"`
}

type CreateCommandUsageParams

type CreateCommandUsageParams struct {
	GuildID         int64         `json:"guild_id"`
	UserID          int64         `json:"user_id"`
	ChannelID       sql.NullInt64 `json:"channel_id"`
	Command         string        `json:"command"`
	Errored         bool          `json:"errored"`
	ExecutionTimeMs int64         `json:"execution_time_ms"`
}

type CreateFreeRolesGuildSettingsParams

type CreateFreeRolesGuildSettingsParams struct {
	GuildID       int64   `json:"guild_id"`
	ToggleEnabled bool    `json:"toggle_enabled"`
	Roles         []int64 `json:"roles"`
}

type CreateGuildInvitesParams

type CreateGuildInvitesParams struct {
	InviteCode string    `json:"invite_code"`
	GuildID    int64     `json:"guild_id"`
	CreatedBy  int64     `json:"created_by"`
	CreatedAt  time.Time `json:"created_at"`
	Uses       int64     `json:"uses"`
}

type CreateGuildParams

type CreateGuildParams struct {
	GuildID          int64  `json:"guild_id"`
	EmbedColour      int32  `json:"embed_colour"`
	SiteSplashUrl    string `json:"site_splash_url"`
	SiteStaffVisible bool   `json:"site_staff_visible"`
	SiteGuildVisible bool   `json:"site_guild_visible"`
	SiteAllowInvites bool   `json:"site_allow_invites"`
}

type CreateLeaverGuildSettingsParams

type CreateLeaverGuildSettingsParams struct {
	GuildID       int64        `json:"guild_id"`
	ToggleEnabled bool         `json:"toggle_enabled"`
	Channel       int64        `json:"channel"`
	MessageFormat pgtype.JSONB `json:"message_format"`
}

type CreateNewMembershipParams

type CreateNewMembershipParams struct {
	StartedAt       time.Time `json:"started_at"`
	ExpiresAt       time.Time `json:"expires_at"`
	Status          int32     `json:"status"`
	MembershipType  int32     `json:"membership_type"`
	TransactionUuid uuid.UUID `json:"transaction_uuid"`
	UserID          int64     `json:"user_id"`
	GuildID         int64     `json:"guild_id"`
}

type CreateOrUpdateAutoRolesGuildSettingsParams

type CreateOrUpdateAutoRolesGuildSettingsParams struct {
	GuildID       int64   `json:"guild_id"`
	ToggleEnabled bool    `json:"toggle_enabled"`
	Roles         []int64 `json:"roles"`
}

type CreateOrUpdateBorderwallGuildSettingsParams

type CreateOrUpdateBorderwallGuildSettingsParams struct {
	GuildID         int64        `json:"guild_id"`
	ToggleEnabled   bool         `json:"toggle_enabled"`
	ToggleSendDm    bool         `json:"toggle_send_dm"`
	Channel         int64        `json:"channel"`
	MessageVerify   pgtype.JSONB `json:"message_verify"`
	MessageVerified pgtype.JSONB `json:"message_verified"`
	RolesOnJoin     []int64      `json:"roles_on_join"`
	RolesOnVerify   []int64      `json:"roles_on_verify"`
}

type CreateOrUpdateFreeRolesGuildSettingsParams

type CreateOrUpdateFreeRolesGuildSettingsParams struct {
	GuildID       int64   `json:"guild_id"`
	ToggleEnabled bool    `json:"toggle_enabled"`
	Roles         []int64 `json:"roles"`
}

type CreateOrUpdateGuildInvitesParams

type CreateOrUpdateGuildInvitesParams struct {
	InviteCode string    `json:"invite_code"`
	GuildID    int64     `json:"guild_id"`
	CreatedBy  int64     `json:"created_by"`
	CreatedAt  time.Time `json:"created_at"`
	Uses       int64     `json:"uses"`
}

type CreateOrUpdateGuildParams

type CreateOrUpdateGuildParams struct {
	GuildID          int64  `json:"guild_id"`
	EmbedColour      int32  `json:"embed_colour"`
	SiteSplashUrl    string `json:"site_splash_url"`
	SiteStaffVisible bool   `json:"site_staff_visible"`
	SiteGuildVisible bool   `json:"site_guild_visible"`
	SiteAllowInvites bool   `json:"site_allow_invites"`
}

type CreateOrUpdateLeaverGuildSettingsParams

type CreateOrUpdateLeaverGuildSettingsParams struct {
	GuildID       int64        `json:"guild_id"`
	ToggleEnabled bool         `json:"toggle_enabled"`
	Channel       int64        `json:"channel"`
	MessageFormat pgtype.JSONB `json:"message_format"`
}

type CreateOrUpdateNewMembershipParams

type CreateOrUpdateNewMembershipParams struct {
	StartedAt       time.Time `json:"started_at"`
	ExpiresAt       time.Time `json:"expires_at"`
	Status          int32     `json:"status"`
	MembershipType  int32     `json:"membership_type"`
	TransactionUuid uuid.UUID `json:"transaction_uuid"`
	UserID          int64     `json:"user_id"`
	GuildID         int64     `json:"guild_id"`
}

type CreateOrUpdatePatreonUserParams

type CreateOrUpdatePatreonUserParams struct {
	PatreonUserID    int64     `json:"patreon_user_id"`
	UserID           int64     `json:"user_id"`
	FullName         string    `json:"full_name"`
	Email            string    `json:"email"`
	ThumbUrl         string    `json:"thumb_url"`
	PledgeCreatedAt  time.Time `json:"pledge_created_at"`
	PledgeEndedAt    time.Time `json:"pledge_ended_at"`
	TierID           int64     `json:"tier_id"`
	LastChargeStatus string    `json:"last_charge_status"`
	PatronStatus     string    `json:"patron_status"`
}

type CreateOrUpdateRulesGuildSettingsParams

type CreateOrUpdateRulesGuildSettingsParams struct {
	GuildID          int64    `json:"guild_id"`
	ToggleEnabled    bool     `json:"toggle_enabled"`
	ToggleDmsEnabled bool     `json:"toggle_dms_enabled"`
	Rules            []string `json:"rules"`
}

type CreateOrUpdateTempChannelsGuildSettingsParams

type CreateOrUpdateTempChannelsGuildSettingsParams struct {
	GuildID          int64 `json:"guild_id"`
	ToggleEnabled    bool  `json:"toggle_enabled"`
	ToggleAutopurge  bool  `json:"toggle_autopurge"`
	ChannelLobby     int64 `json:"channel_lobby"`
	ChannelCategory  int64 `json:"channel_category"`
	DefaultUserCount int32 `json:"default_user_count"`
}

type CreateOrUpdateTimeRolesGuildSettingsParams

type CreateOrUpdateTimeRolesGuildSettingsParams struct {
	GuildID       int64        `json:"guild_id"`
	ToggleEnabled bool         `json:"toggle_enabled"`
	Timeroles     pgtype.JSONB `json:"timeroles"`
}

type CreateOrUpdateUserParams

type CreateOrUpdateUserParams struct {
	UserID        int64  `json:"user_id"`
	Name          string `json:"name"`
	Discriminator string `json:"discriminator"`
	AvatarHash    string `json:"avatar_hash"`
}

type CreateOrUpdateUserTransactionParams

type CreateOrUpdateUserTransactionParams struct {
	UserID            int64  `json:"user_id"`
	PlatformType      int32  `json:"platform_type"`
	TransactionID     string `json:"transaction_id"`
	TransactionStatus int32  `json:"transaction_status"`
	CurrencyCode      string `json:"currency_code"`
	Amount            string `json:"amount"`
}

type CreateOrUpdateWelcomerDMsGuildSettingsParams

type CreateOrUpdateWelcomerDMsGuildSettingsParams struct {
	GuildID             int64        `json:"guild_id"`
	ToggleEnabled       bool         `json:"toggle_enabled"`
	ToggleUseTextFormat bool         `json:"toggle_use_text_format"`
	ToggleIncludeImage  bool         `json:"toggle_include_image"`
	MessageFormat       pgtype.JSONB `json:"message_format"`
}

type CreateOrUpdateWelcomerImagesGuildSettingsParams

type CreateOrUpdateWelcomerImagesGuildSettingsParams struct {
	GuildID                int64  `json:"guild_id"`
	ToggleEnabled          bool   `json:"toggle_enabled"`
	ToggleImageBorder      bool   `json:"toggle_image_border"`
	BackgroundName         string `json:"background_name"`
	ColourText             string `json:"colour_text"`
	ColourTextBorder       string `json:"colour_text_border"`
	ColourImageBorder      string `json:"colour_image_border"`
	ColourProfileBorder    string `json:"colour_profile_border"`
	ImageAlignment         int32  `json:"image_alignment"`
	ImageTheme             int32  `json:"image_theme"`
	ImageMessage           string `json:"image_message"`
	ImageProfileBorderType int32  `json:"image_profile_border_type"`
}

type CreateOrUpdateWelcomerTextGuildSettingsParams

type CreateOrUpdateWelcomerTextGuildSettingsParams struct {
	GuildID       int64        `json:"guild_id"`
	ToggleEnabled bool         `json:"toggle_enabled"`
	Channel       int64        `json:"channel"`
	MessageFormat pgtype.JSONB `json:"message_format"`
}

type CreatePatreonUserParams

type CreatePatreonUserParams struct {
	PatreonUserID    int64     `json:"patreon_user_id"`
	UserID           int64     `json:"user_id"`
	FullName         string    `json:"full_name"`
	Email            string    `json:"email"`
	ThumbUrl         string    `json:"thumb_url"`
	PledgeCreatedAt  time.Time `json:"pledge_created_at"`
	PledgeEndedAt    time.Time `json:"pledge_ended_at"`
	TierID           int64     `json:"tier_id"`
	LastChargeStatus string    `json:"last_charge_status"`
	PatronStatus     string    `json:"patron_status"`
}

type CreateRulesGuildSettingsParams

type CreateRulesGuildSettingsParams struct {
	GuildID          int64    `json:"guild_id"`
	ToggleEnabled    bool     `json:"toggle_enabled"`
	ToggleDmsEnabled bool     `json:"toggle_dms_enabled"`
	Rules            []string `json:"rules"`
}

type CreateScienceEventParams

type CreateScienceEventParams struct {
	EventType int32        `json:"event_type"`
	Data      pgtype.JSONB `json:"data"`
}

type CreateScienceGuildEventParams

type CreateScienceGuildEventParams struct {
	GuildID   int64        `json:"guild_id"`
	EventType int32        `json:"event_type"`
	Data      pgtype.JSONB `json:"data"`
}

type CreateTempChannelsGuildSettingsParams

type CreateTempChannelsGuildSettingsParams struct {
	GuildID          int64 `json:"guild_id"`
	ToggleEnabled    bool  `json:"toggle_enabled"`
	ToggleAutopurge  bool  `json:"toggle_autopurge"`
	ChannelLobby     int64 `json:"channel_lobby"`
	ChannelCategory  int64 `json:"channel_category"`
	DefaultUserCount int32 `json:"default_user_count"`
}

type CreateTimeRolesGuildSettingsParams

type CreateTimeRolesGuildSettingsParams struct {
	GuildID       int64        `json:"guild_id"`
	ToggleEnabled bool         `json:"toggle_enabled"`
	Timeroles     pgtype.JSONB `json:"timeroles"`
}

type CreateUserParams

type CreateUserParams struct {
	UserID        int64  `json:"user_id"`
	Name          string `json:"name"`
	Discriminator string `json:"discriminator"`
	AvatarHash    string `json:"avatar_hash"`
}

type CreateUserTransactionParams

type CreateUserTransactionParams struct {
	UserID            int64  `json:"user_id"`
	PlatformType      int32  `json:"platform_type"`
	TransactionID     string `json:"transaction_id"`
	TransactionStatus int32  `json:"transaction_status"`
	CurrencyCode      string `json:"currency_code"`
	Amount            string `json:"amount"`
}

type CreateWelcomerDMsGuildSettingsParams

type CreateWelcomerDMsGuildSettingsParams struct {
	GuildID             int64        `json:"guild_id"`
	ToggleEnabled       bool         `json:"toggle_enabled"`
	ToggleUseTextFormat bool         `json:"toggle_use_text_format"`
	ToggleIncludeImage  bool         `json:"toggle_include_image"`
	MessageFormat       pgtype.JSONB `json:"message_format"`
}

type CreateWelcomerImagesGuildSettingsParams

type CreateWelcomerImagesGuildSettingsParams struct {
	GuildID                int64  `json:"guild_id"`
	ToggleEnabled          bool   `json:"toggle_enabled"`
	ToggleImageBorder      bool   `json:"toggle_image_border"`
	BackgroundName         string `json:"background_name"`
	ColourText             string `json:"colour_text"`
	ColourTextBorder       string `json:"colour_text_border"`
	ColourImageBorder      string `json:"colour_image_border"`
	ColourProfileBorder    string `json:"colour_profile_border"`
	ImageAlignment         int32  `json:"image_alignment"`
	ImageTheme             int32  `json:"image_theme"`
	ImageMessage           string `json:"image_message"`
	ImageProfileBorderType int32  `json:"image_profile_border_type"`
}

type CreateWelcomerImagesParams

type CreateWelcomerImagesParams struct {
	ImageUuid uuid.UUID `json:"image_uuid"`
	GuildID   int64     `json:"guild_id"`
	CreatedAt time.Time `json:"created_at"`
	ImageType string    `json:"image_type"`
	Data      []byte    `json:"data"`
}

type CreateWelcomerTextGuildSettingsParams

type CreateWelcomerTextGuildSettingsParams struct {
	GuildID       int64        `json:"guild_id"`
	ToggleEnabled bool         `json:"toggle_enabled"`
	Channel       int64        `json:"channel"`
	MessageFormat pgtype.JSONB `json:"message_format"`
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type DeleteGuildInvitesParams

type DeleteGuildInvitesParams struct {
	InviteCode string `json:"invite_code"`
	GuildID    int64  `json:"guild_id"`
}

type DeletePatreonUserParams

type DeletePatreonUserParams struct {
	PatreonUserID int64 `json:"patreon_user_id"`
	UserID        int64 `json:"user_id"`
}

type GetBorderwallRequestsByGuildIDUserIDParams

type GetBorderwallRequestsByGuildIDUserIDParams struct {
	GuildID int64 `json:"guild_id"`
	UserID  int64 `json:"user_id"`
}

type GetCommandErrorRow

type GetCommandErrorRow struct {
	CommandUuid     uuid.UUID      `json:"command_uuid"`
	CreatedAt       time.Time      `json:"created_at"`
	GuildID         int64          `json:"guild_id"`
	UserID          int64          `json:"user_id"`
	ChannelID       sql.NullInt64  `json:"channel_id"`
	Command         string         `json:"command"`
	Errored         bool           `json:"errored"`
	ExecutionTimeMs int64          `json:"execution_time_ms"`
	CommandUuid_2   uuid.NullUUID  `json:"command_uuid_2"`
	CreatedAt_2     sql.NullTime   `json:"created_at_2"`
	Trace           sql.NullString `json:"trace"`
	Data            pgtype.JSONB   `json:"data"`
}

type GetUserMembershipRow

type GetUserMembershipRow struct {
	MembershipUuid    uuid.UUID      `json:"membership_uuid"`
	CreatedAt         time.Time      `json:"created_at"`
	UpdatedAt         time.Time      `json:"updated_at"`
	StartedAt         time.Time      `json:"started_at"`
	ExpiresAt         time.Time      `json:"expires_at"`
	Status            int32          `json:"status"`
	MembershipType    int32          `json:"membership_type"`
	TransactionUuid   uuid.UUID      `json:"transaction_uuid"`
	UserID            int64          `json:"user_id"`
	GuildID           int64          `json:"guild_id"`
	TransactionUuid_2 uuid.NullUUID  `json:"transaction_uuid_2"`
	CreatedAt_2       sql.NullTime   `json:"created_at_2"`
	UpdatedAt_2       sql.NullTime   `json:"updated_at_2"`
	UserID_2          sql.NullInt64  `json:"user_id_2"`
	PlatformType      sql.NullInt32  `json:"platform_type"`
	TransactionID     sql.NullString `json:"transaction_id"`
	TransactionStatus sql.NullInt32  `json:"transaction_status"`
	CurrencyCode      sql.NullString `json:"currency_code"`
	Amount            sql.NullString `json:"amount"`
}

type GetUserMembershipsByGuildIDRow

type GetUserMembershipsByGuildIDRow struct {
	MembershipUuid    uuid.UUID      `json:"membership_uuid"`
	CreatedAt         time.Time      `json:"created_at"`
	UpdatedAt         time.Time      `json:"updated_at"`
	StartedAt         time.Time      `json:"started_at"`
	ExpiresAt         time.Time      `json:"expires_at"`
	Status            int32          `json:"status"`
	MembershipType    int32          `json:"membership_type"`
	TransactionUuid   uuid.UUID      `json:"transaction_uuid"`
	UserID            int64          `json:"user_id"`
	GuildID           int64          `json:"guild_id"`
	TransactionUuid_2 uuid.NullUUID  `json:"transaction_uuid_2"`
	CreatedAt_2       sql.NullTime   `json:"created_at_2"`
	UpdatedAt_2       sql.NullTime   `json:"updated_at_2"`
	UserID_2          sql.NullInt64  `json:"user_id_2"`
	PlatformType      sql.NullInt32  `json:"platform_type"`
	TransactionID     sql.NullString `json:"transaction_id"`
	TransactionStatus sql.NullInt32  `json:"transaction_status"`
	CurrencyCode      sql.NullString `json:"currency_code"`
	Amount            sql.NullString `json:"amount"`
}

type GetUserMembershipsByUserIDRow

type GetUserMembershipsByUserIDRow struct {
	MembershipUuid    uuid.UUID      `json:"membership_uuid"`
	CreatedAt         time.Time      `json:"created_at"`
	UpdatedAt         time.Time      `json:"updated_at"`
	StartedAt         time.Time      `json:"started_at"`
	ExpiresAt         time.Time      `json:"expires_at"`
	Status            int32          `json:"status"`
	MembershipType    int32          `json:"membership_type"`
	TransactionUuid   uuid.UUID      `json:"transaction_uuid"`
	UserID            int64          `json:"user_id"`
	GuildID           int64          `json:"guild_id"`
	TransactionUuid_2 uuid.NullUUID  `json:"transaction_uuid_2"`
	CreatedAt_2       sql.NullTime   `json:"created_at_2"`
	UpdatedAt_2       sql.NullTime   `json:"updated_at_2"`
	UserID_2          sql.NullInt64  `json:"user_id_2"`
	PlatformType      sql.NullInt32  `json:"platform_type"`
	TransactionID     sql.NullString `json:"transaction_id"`
	TransactionStatus sql.NullInt32  `json:"transaction_status"`
	CurrencyCode      sql.NullString `json:"currency_code"`
	Amount            sql.NullString `json:"amount"`
	GuildID_2         sql.NullInt64  `json:"guild_id_2"`
	EmbedColour       sql.NullInt32  `json:"embed_colour"`
	SiteSplashUrl     sql.NullString `json:"site_splash_url"`
	SiteStaffVisible  sql.NullBool   `json:"site_staff_visible"`
	SiteGuildVisible  sql.NullBool   `json:"site_guild_visible"`
	SiteAllowInvites  sql.NullBool   `json:"site_allow_invites"`
}

type GuildInvites

type GuildInvites struct {
	InviteCode string    `json:"invite_code"`
	GuildID    int64     `json:"guild_id"`
	CreatedBy  int64     `json:"created_by"`
	CreatedAt  time.Time `json:"created_at"`
	Uses       int64     `json:"uses"`
}

type GuildSettingsAutoroles

type GuildSettingsAutoroles struct {
	GuildID       int64   `json:"guild_id"`
	ToggleEnabled bool    `json:"toggle_enabled"`
	Roles         []int64 `json:"roles"`
}
var DefaultAutoroles GuildSettingsAutoroles = GuildSettingsAutoroles{
	ToggleEnabled: false,
	Roles:         []int64{},
}

type GuildSettingsBorderwall

type GuildSettingsBorderwall struct {
	GuildID         int64        `json:"guild_id"`
	ToggleEnabled   bool         `json:"toggle_enabled"`
	ToggleSendDm    bool         `json:"toggle_send_dm"`
	Channel         int64        `json:"channel"`
	MessageVerify   pgtype.JSONB `json:"message_verify"`
	MessageVerified pgtype.JSONB `json:"message_verified"`
	RolesOnJoin     []int64      `json:"roles_on_join"`
	RolesOnVerify   []int64      `json:"roles_on_verify"`
}
var DefaultBorderwall GuildSettingsBorderwall = GuildSettingsBorderwall{
	ToggleEnabled: false,
	ToggleSendDm:  true,
	Channel:       0,
	MessageVerify: MustConvertToJSONB(discord.MessageParams{
		Embeds: []discord.Embed{
			{
				Description: "This server is protected by Borderwall. Please verify at {{Borderwall.Link}}.",
				Color:       utils.EmbedColourInfo,
			},
		},
	}),
	MessageVerified: MustConvertToJSONB(discord.MessageParams{
		Embeds: []discord.Embed{
			{
				Description: "Thank you for verifying! You now have access to the server.",
				Color:       utils.EmbedColourSuccess,
			},
		},
	}),
	RolesOnJoin:   []int64{},
	RolesOnVerify: []int64{},
}

type GuildSettingsFreeroles

type GuildSettingsFreeroles struct {
	GuildID       int64   `json:"guild_id"`
	ToggleEnabled bool    `json:"toggle_enabled"`
	Roles         []int64 `json:"roles"`
}
var DefaultFreeRoles GuildSettingsFreeroles = GuildSettingsFreeroles{
	ToggleEnabled: false,
	Roles:         []int64{},
}

type GuildSettingsLeaver

type GuildSettingsLeaver struct {
	GuildID       int64        `json:"guild_id"`
	ToggleEnabled bool         `json:"toggle_enabled"`
	Channel       int64        `json:"channel"`
	MessageFormat pgtype.JSONB `json:"message_format"`
}
var DefaultLeaver GuildSettingsLeaver = GuildSettingsLeaver{
	ToggleEnabled: false,
	Channel:       0,
	MessageFormat: MustConvertToJSONB(discord.MessageParams{
		Content: "{{User.Name}} has left the server. We now have {{Guild.Members}} members.",
	}),
}

type GuildSettingsRules

type GuildSettingsRules struct {
	GuildID          int64    `json:"guild_id"`
	ToggleEnabled    bool     `json:"toggle_enabled"`
	ToggleDmsEnabled bool     `json:"toggle_dms_enabled"`
	Rules            []string `json:"rules"`
}
var DefaultRules GuildSettingsRules = GuildSettingsRules{
	ToggleEnabled:    false,
	ToggleDmsEnabled: true,
	Rules:            []string{},
}

type GuildSettingsTempchannels

type GuildSettingsTempchannels struct {
	GuildID          int64 `json:"guild_id"`
	ToggleEnabled    bool  `json:"toggle_enabled"`
	ToggleAutopurge  bool  `json:"toggle_autopurge"`
	ChannelLobby     int64 `json:"channel_lobby"`
	ChannelCategory  int64 `json:"channel_category"`
	DefaultUserCount int32 `json:"default_user_count"`
}
var DefaultTempChannels GuildSettingsTempchannels = GuildSettingsTempchannels{
	ToggleEnabled:    false,
	ToggleAutopurge:  true,
	ChannelLobby:     0,
	ChannelCategory:  0,
	DefaultUserCount: 0,
}

type GuildSettingsTimeroles

type GuildSettingsTimeroles struct {
	GuildID       int64        `json:"guild_id"`
	ToggleEnabled bool         `json:"toggle_enabled"`
	Timeroles     pgtype.JSONB `json:"timeroles"`
}
var DefaultTimeRoles GuildSettingsTimeroles = GuildSettingsTimeroles{
	ToggleEnabled: false,
	Timeroles:     pgtype.JSONB{Status: pgtype.Null},
}

type GuildSettingsWelcomerDms

type GuildSettingsWelcomerDms struct {
	GuildID             int64        `json:"guild_id"`
	ToggleEnabled       bool         `json:"toggle_enabled"`
	ToggleUseTextFormat bool         `json:"toggle_use_text_format"`
	ToggleIncludeImage  bool         `json:"toggle_include_image"`
	MessageFormat       pgtype.JSONB `json:"message_format"`
}
var DefaultWelcomerDms GuildSettingsWelcomerDms = GuildSettingsWelcomerDms{
	ToggleEnabled:       false,
	ToggleUseTextFormat: true,
	ToggleIncludeImage:  true,
	MessageFormat: MustConvertToJSONB(discord.MessageParams{
		Content: "Welcome {{User.Mention}} to **{{Guild.Name}}**! You are the {{Ordinal(Guild.Members)}} member!",
	}),
}

type GuildSettingsWelcomerImages

type GuildSettingsWelcomerImages struct {
	GuildID                int64  `json:"guild_id"`
	ToggleEnabled          bool   `json:"toggle_enabled"`
	ToggleImageBorder      bool   `json:"toggle_image_border"`
	BackgroundName         string `json:"background_name"`
	ColourText             string `json:"colour_text"`
	ColourTextBorder       string `json:"colour_text_border"`
	ColourImageBorder      string `json:"colour_image_border"`
	ColourProfileBorder    string `json:"colour_profile_border"`
	ImageAlignment         int32  `json:"image_alignment"`
	ImageTheme             int32  `json:"image_theme"`
	ImageMessage           string `json:"image_message"`
	ImageProfileBorderType int32  `json:"image_profile_border_type"`
}
var DefaultWelcomerImages GuildSettingsWelcomerImages = GuildSettingsWelcomerImages{
	ToggleEnabled:          false,
	ToggleImageBorder:      true,
	BackgroundName:         "solid:profile",
	ColourText:             "#FFFFFF",
	ColourTextBorder:       "#000000",
	ColourImageBorder:      "#FFFFFF",
	ColourProfileBorder:    "#FFFFFF",
	ImageAlignment:         int32(utils.ImageAlignmentLeft),
	ImageTheme:             int32(utils.ImageThemeDefault),
	ImageMessage:           "Welcome {{User.Name}}\nto {{Guild.Name}}you are the {{Ordinal(Guild.Members)}} member!",
	ImageProfileBorderType: int32(utils.ImageProfileBorderTypeCircular),
}

type GuildSettingsWelcomerText

type GuildSettingsWelcomerText struct {
	GuildID       int64        `json:"guild_id"`
	ToggleEnabled bool         `json:"toggle_enabled"`
	Channel       int64        `json:"channel"`
	MessageFormat pgtype.JSONB `json:"message_format"`
}
var DefaultWelcomerText GuildSettingsWelcomerText = GuildSettingsWelcomerText{
	ToggleEnabled: false,
	Channel:       0,
	MessageFormat: MustConvertToJSONB(discord.MessageParams{
		Content: "Welcome {{User.Mention}} to **{{Guild.Name}}**! You are the {{Ordinal(Guild.Members)}} member!",
	}),
}

type Guilds

type Guilds struct {
	GuildID          int64  `json:"guild_id"`
	EmbedColour      int32  `json:"embed_colour"`
	SiteSplashUrl    string `json:"site_splash_url"`
	SiteStaffVisible bool   `json:"site_staff_visible"`
	SiteGuildVisible bool   `json:"site_guild_visible"`
	SiteAllowInvites bool   `json:"site_allow_invites"`
}
var DefaultGuild Guilds = Guilds{
	EmbedColour:      utils.EmbedColourInfo,
	SiteSplashUrl:    "",
	SiteStaffVisible: false,
	SiteGuildVisible: false,
	SiteAllowInvites: false,
}

type InsertBorderwallRequestParams

type InsertBorderwallRequestParams struct {
	RequestUuid uuid.UUID   `json:"request_uuid"`
	GuildID     int64       `json:"guild_id"`
	UserID      int64       `json:"user_id"`
	IsVerified  bool        `json:"is_verified"`
	IpAddress   pgtype.Inet `json:"ip_address"`
}

type MembershipStatus

type MembershipStatus int32

ENUM(unknown, idle, active, expired, refunded, removed)

const (
	// MembershipStatusUnknown is a MembershipStatus of type Unknown.
	MembershipStatusUnknown MembershipStatus = iota
	// MembershipStatusIdle is a MembershipStatus of type Idle.
	MembershipStatusIdle
	// MembershipStatusActive is a MembershipStatus of type Active.
	MembershipStatusActive
	// MembershipStatusExpired is a MembershipStatus of type Expired.
	MembershipStatusExpired
	// MembershipStatusRefunded is a MembershipStatus of type Refunded.
	MembershipStatusRefunded
	// MembershipStatusRemoved is a MembershipStatus of type Removed.
	MembershipStatusRemoved
)

func ParseMembershipStatus

func ParseMembershipStatus(name string) (MembershipStatus, error)

ParseMembershipStatus attempts to convert a string to a MembershipStatus.

func (MembershipStatus) IsValid

func (x MembershipStatus) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (MembershipStatus) Label

func (x MembershipStatus) Label() string

func (MembershipStatus) MarshalText

func (x MembershipStatus) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method.

func (MembershipStatus) String

func (x MembershipStatus) String() string

String implements the Stringer interface.

func (*MembershipStatus) UnmarshalText

func (x *MembershipStatus) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method.

type MembershipType

type MembershipType int32

ENUM(unknown, legacyCustomBackgrounds, legacyWelcomerPro, welcomerPro, customBackgrounds)

const (
	// MembershipTypeUnknown is a MembershipType of type Unknown.
	MembershipTypeUnknown MembershipType = iota
	// MembershipTypeLegacyCustomBackgrounds is a MembershipType of type LegacyCustomBackgrounds.
	MembershipTypeLegacyCustomBackgrounds
	// MembershipTypeLegacyWelcomerPro is a MembershipType of type LegacyWelcomerPro.
	MembershipTypeLegacyWelcomerPro
	// MembershipTypeWelcomerPro is a MembershipType of type WelcomerPro.
	MembershipTypeWelcomerPro
	// MembershipTypeCustomBackgrounds is a MembershipType of type CustomBackgrounds.
	MembershipTypeCustomBackgrounds
)

func ParseMembershipType

func ParseMembershipType(name string) (MembershipType, error)

ParseMembershipType attempts to convert a string to a MembershipType.

func (MembershipType) IsValid

func (x MembershipType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (MembershipType) Label

func (x MembershipType) Label() string

func (MembershipType) MarshalText

func (x MembershipType) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method.

func (MembershipType) String

func (x MembershipType) String() string

String implements the Stringer interface.

func (*MembershipType) UnmarshalText

func (x *MembershipType) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method.

type PatreonUsers

type PatreonUsers struct {
	PatreonUserID    int64     `json:"patreon_user_id"`
	CreatedAt        time.Time `json:"created_at"`
	UpdatedAt        time.Time `json:"updated_at"`
	UserID           int64     `json:"user_id"`
	FullName         string    `json:"full_name"`
	Email            string    `json:"email"`
	ThumbUrl         string    `json:"thumb_url"`
	PledgeCreatedAt  time.Time `json:"pledge_created_at"`
	PledgeEndedAt    time.Time `json:"pledge_ended_at"`
	TierID           int64     `json:"tier_id"`
	LastChargeStatus string    `json:"last_charge_status"`
	PatronStatus     string    `json:"patron_status"`
}

type PlatformType

type PlatformType int32

ENUM(unknown, paypal, patreon, stripe)

const (
	// PlatformTypeUnknown is a PlatformType of type Unknown.
	PlatformTypeUnknown PlatformType = iota
	// PlatformTypePaypal is a PlatformType of type Paypal.
	PlatformTypePaypal
	// PlatformTypePatreon is a PlatformType of type Patreon.
	PlatformTypePatreon
	// PlatformTypeStripe is a PlatformType of type Stripe.
	PlatformTypeStripe
)

func ParsePlatformType

func ParsePlatformType(name string) (PlatformType, error)

ParsePlatformType attempts to convert a string to a PlatformType.

func (PlatformType) IsValid

func (x PlatformType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (PlatformType) MarshalText

func (x PlatformType) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method.

func (PlatformType) String

func (x PlatformType) String() string

String implements the Stringer interface.

func (*PlatformType) UnmarshalText

func (x *PlatformType) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method.

type Querier

type Querier interface {
	CreateAutoRolesGuildSettings(ctx context.Context, arg CreateAutoRolesGuildSettingsParams) (*GuildSettingsAutoroles, error)
	CreateBorderwallGuildSettings(ctx context.Context, arg CreateBorderwallGuildSettingsParams) (*GuildSettingsBorderwall, error)
	CreateBorderwallRequest(ctx context.Context, arg CreateBorderwallRequestParams) (*BorderwallRequests, error)
	CreateCommandError(ctx context.Context, arg CreateCommandErrorParams) (*ScienceCommandErrors, error)
	CreateCommandUsage(ctx context.Context, arg CreateCommandUsageParams) (*ScienceCommandUsages, error)
	CreateFreeRolesGuildSettings(ctx context.Context, arg CreateFreeRolesGuildSettingsParams) (*GuildSettingsFreeroles, error)
	CreateGuild(ctx context.Context, arg CreateGuildParams) (*Guilds, error)
	CreateGuildInvites(ctx context.Context, arg CreateGuildInvitesParams) (*GuildInvites, error)
	CreateLeaverGuildSettings(ctx context.Context, arg CreateLeaverGuildSettingsParams) (*GuildSettingsLeaver, error)
	CreateNewMembership(ctx context.Context, arg CreateNewMembershipParams) (*UserMemberships, error)
	CreateOrUpdateAutoRolesGuildSettings(ctx context.Context, arg CreateOrUpdateAutoRolesGuildSettingsParams) (*GuildSettingsAutoroles, error)
	CreateOrUpdateBorderwallGuildSettings(ctx context.Context, arg CreateOrUpdateBorderwallGuildSettingsParams) (*GuildSettingsBorderwall, error)
	CreateOrUpdateFreeRolesGuildSettings(ctx context.Context, arg CreateOrUpdateFreeRolesGuildSettingsParams) (*GuildSettingsFreeroles, error)
	CreateOrUpdateGuild(ctx context.Context, arg CreateOrUpdateGuildParams) (*Guilds, error)
	CreateOrUpdateGuildInvites(ctx context.Context, arg CreateOrUpdateGuildInvitesParams) (*GuildInvites, error)
	CreateOrUpdateLeaverGuildSettings(ctx context.Context, arg CreateOrUpdateLeaverGuildSettingsParams) (*GuildSettingsLeaver, error)
	CreateOrUpdateNewMembership(ctx context.Context, arg CreateOrUpdateNewMembershipParams) (*UserMemberships, error)
	CreateOrUpdatePatreonUser(ctx context.Context, arg CreateOrUpdatePatreonUserParams) (*PatreonUsers, error)
	CreateOrUpdateRulesGuildSettings(ctx context.Context, arg CreateOrUpdateRulesGuildSettingsParams) (*GuildSettingsRules, error)
	CreateOrUpdateTempChannelsGuildSettings(ctx context.Context, arg CreateOrUpdateTempChannelsGuildSettingsParams) (*GuildSettingsTempchannels, error)
	CreateOrUpdateTimeRolesGuildSettings(ctx context.Context, arg CreateOrUpdateTimeRolesGuildSettingsParams) (*GuildSettingsTimeroles, error)
	CreateOrUpdateUser(ctx context.Context, arg CreateOrUpdateUserParams) (*Users, error)
	CreateOrUpdateUserTransaction(ctx context.Context, arg CreateOrUpdateUserTransactionParams) (*UserTransactions, error)
	CreateOrUpdateWelcomerDMsGuildSettings(ctx context.Context, arg CreateOrUpdateWelcomerDMsGuildSettingsParams) (*GuildSettingsWelcomerDms, error)
	CreateOrUpdateWelcomerImagesGuildSettings(ctx context.Context, arg CreateOrUpdateWelcomerImagesGuildSettingsParams) (*GuildSettingsWelcomerImages, error)
	CreateOrUpdateWelcomerTextGuildSettings(ctx context.Context, arg CreateOrUpdateWelcomerTextGuildSettingsParams) (*GuildSettingsWelcomerText, error)
	CreatePatreonUser(ctx context.Context, arg CreatePatreonUserParams) (*PatreonUsers, error)
	CreateRulesGuildSettings(ctx context.Context, arg CreateRulesGuildSettingsParams) (*GuildSettingsRules, error)
	CreateScienceEvent(ctx context.Context, arg CreateScienceEventParams) (*ScienceEvents, error)
	CreateScienceGuildEvent(ctx context.Context, arg CreateScienceGuildEventParams) (*ScienceGuildEvents, error)
	CreateTempChannelsGuildSettings(ctx context.Context, arg CreateTempChannelsGuildSettingsParams) (*GuildSettingsTempchannels, error)
	CreateTimeRolesGuildSettings(ctx context.Context, arg CreateTimeRolesGuildSettingsParams) (*GuildSettingsTimeroles, error)
	CreateUser(ctx context.Context, arg CreateUserParams) (*Users, error)
	CreateUserTransaction(ctx context.Context, arg CreateUserTransactionParams) (*UserTransactions, error)
	CreateWelcomerDMsGuildSettings(ctx context.Context, arg CreateWelcomerDMsGuildSettingsParams) (*GuildSettingsWelcomerDms, error)
	CreateWelcomerImages(ctx context.Context, arg CreateWelcomerImagesParams) (*WelcomerImages, error)
	CreateWelcomerImagesGuildSettings(ctx context.Context, arg CreateWelcomerImagesGuildSettingsParams) (*GuildSettingsWelcomerImages, error)
	CreateWelcomerTextGuildSettings(ctx context.Context, arg CreateWelcomerTextGuildSettingsParams) (*GuildSettingsWelcomerText, error)
	DeleteGuildInvites(ctx context.Context, arg DeleteGuildInvitesParams) (int64, error)
	DeletePatreonUser(ctx context.Context, arg DeletePatreonUserParams) (int64, error)
	DeleteUserMembership(ctx context.Context, membershipUuid uuid.UUID) (int64, error)
	DeleteUserTransaction(ctx context.Context, transactionUuid uuid.UUID) (int64, error)
	DeleteWelcomerImage(ctx context.Context, imageUuid uuid.UUID) (int64, error)
	GetAutoRolesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsAutoroles, error)
	GetBorderwallGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsBorderwall, error)
	GetBorderwallRequest(ctx context.Context, requestUuid uuid.UUID) (*BorderwallRequests, error)
	GetBorderwallRequestsByGuildIDUserID(ctx context.Context, arg GetBorderwallRequestsByGuildIDUserIDParams) ([]*BorderwallRequests, error)
	GetBorderwallRequestsByIPAddress(ctx context.Context, ipAddress pgtype.Inet) ([]*BorderwallRequests, error)
	GetCommandError(ctx context.Context, commandUuid uuid.UUID) (*GetCommandErrorRow, error)
	GetCommandUsage(ctx context.Context, commandUuid uuid.UUID) (*ScienceCommandUsages, error)
	GetFreeRolesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsFreeroles, error)
	GetGuild(ctx context.Context, guildID int64) (*Guilds, error)
	GetGuildInvites(ctx context.Context, guildID int64) ([]*GuildInvites, error)
	GetLeaverGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsLeaver, error)
	GetPatreonUser(ctx context.Context, patreonUserID int64) (*PatreonUsers, error)
	GetPatreonUsers(ctx context.Context) ([]*PatreonUsers, error)
	GetPatreonUsersByUserID(ctx context.Context, userID int64) ([]*PatreonUsers, error)
	GetRulesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsRules, error)
	GetScienceEvent(ctx context.Context, eventUuid uuid.UUID) (*ScienceEvents, error)
	GetScienceGuildEvent(ctx context.Context, guildEventUuid uuid.UUID) (*ScienceGuildEvents, error)
	GetTempChannelsGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsTempchannels, error)
	GetTimeRolesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsTimeroles, error)
	GetUser(ctx context.Context, userID int64) (*Users, error)
	GetUserMembership(ctx context.Context, membershipUuid uuid.UUID) (*GetUserMembershipRow, error)
	GetUserMembershipsByGuildID(ctx context.Context, guildID int64) ([]*GetUserMembershipsByGuildIDRow, error)
	GetUserMembershipsByUserID(ctx context.Context, userID int64) ([]*GetUserMembershipsByUserIDRow, error)
	GetUserTransaction(ctx context.Context, transactionUuid uuid.UUID) (*UserTransactions, error)
	GetUserTransactionsByTransactionID(ctx context.Context, transactionID string) ([]*UserTransactions, error)
	GetUserTransactionsByUserID(ctx context.Context, userID int64) ([]*UserTransactions, error)
	GetWelcomerDMsGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerDms, error)
	GetWelcomerImages(ctx context.Context, imageUuid uuid.UUID) (*WelcomerImages, error)
	GetWelcomerImagesByGuildId(ctx context.Context, guildID int64) ([]*WelcomerImages, error)
	GetWelcomerImagesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerImages, error)
	GetWelcomerTextGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerText, error)
	InsertBorderwallRequest(ctx context.Context, arg InsertBorderwallRequestParams) (*BorderwallRequests, error)
	UpdateAutoRolesGuildSettings(ctx context.Context, arg UpdateAutoRolesGuildSettingsParams) (int64, error)
	UpdateBorderwallGuildSettings(ctx context.Context, arg UpdateBorderwallGuildSettingsParams) (int64, error)
	UpdateBorderwallRequest(ctx context.Context, arg UpdateBorderwallRequestParams) (int64, error)
	UpdateFreeRolesGuildSettings(ctx context.Context, arg UpdateFreeRolesGuildSettingsParams) (int64, error)
	UpdateGuild(ctx context.Context, arg UpdateGuildParams) (int64, error)
	UpdateLeaverGuildSettings(ctx context.Context, arg UpdateLeaverGuildSettingsParams) (int64, error)
	UpdatePatreonUser(ctx context.Context, arg UpdatePatreonUserParams) (int64, error)
	UpdateRuleGuildSettings(ctx context.Context, arg UpdateRuleGuildSettingsParams) (int64, error)
	UpdateTempChannelsGuildSettings(ctx context.Context, arg UpdateTempChannelsGuildSettingsParams) (int64, error)
	UpdateTimeRolesGuildSettings(ctx context.Context, arg UpdateTimeRolesGuildSettingsParams) (int64, error)
	UpdateUser(ctx context.Context, arg UpdateUserParams) (int64, error)
	UpdateUserMembership(ctx context.Context, arg UpdateUserMembershipParams) (int64, error)
	UpdateUserTransaction(ctx context.Context, arg UpdateUserTransactionParams) (int64, error)
	UpdateWelcomerDMsGuildSettings(ctx context.Context, arg UpdateWelcomerDMsGuildSettingsParams) (int64, error)
	UpdateWelcomerImagesGuildSettings(ctx context.Context, arg UpdateWelcomerImagesGuildSettingsParams) (int64, error)
	UpdateWelcomerTextGuildSettings(ctx context.Context, arg UpdateWelcomerTextGuildSettingsParams) (int64, error)
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CreateAutoRolesGuildSettings

func (q *Queries) CreateAutoRolesGuildSettings(ctx context.Context, arg CreateAutoRolesGuildSettingsParams) (*GuildSettingsAutoroles, error)

func (*Queries) CreateBorderwallGuildSettings

func (q *Queries) CreateBorderwallGuildSettings(ctx context.Context, arg CreateBorderwallGuildSettingsParams) (*GuildSettingsBorderwall, error)

func (*Queries) CreateBorderwallRequest

func (q *Queries) CreateBorderwallRequest(ctx context.Context, arg CreateBorderwallRequestParams) (*BorderwallRequests, error)

func (*Queries) CreateCommandError

func (q *Queries) CreateCommandError(ctx context.Context, arg CreateCommandErrorParams) (*ScienceCommandErrors, error)

func (*Queries) CreateCommandUsage

func (q *Queries) CreateCommandUsage(ctx context.Context, arg CreateCommandUsageParams) (*ScienceCommandUsages, error)

func (*Queries) CreateFreeRolesGuildSettings

func (q *Queries) CreateFreeRolesGuildSettings(ctx context.Context, arg CreateFreeRolesGuildSettingsParams) (*GuildSettingsFreeroles, error)

func (*Queries) CreateGuild

func (q *Queries) CreateGuild(ctx context.Context, arg CreateGuildParams) (*Guilds, error)

func (*Queries) CreateGuildInvites

func (q *Queries) CreateGuildInvites(ctx context.Context, arg CreateGuildInvitesParams) (*GuildInvites, error)

func (*Queries) CreateLeaverGuildSettings

func (q *Queries) CreateLeaverGuildSettings(ctx context.Context, arg CreateLeaverGuildSettingsParams) (*GuildSettingsLeaver, error)

func (*Queries) CreateNewMembership

func (q *Queries) CreateNewMembership(ctx context.Context, arg CreateNewMembershipParams) (*UserMemberships, error)

func (*Queries) CreateOrUpdateAutoRolesGuildSettings

func (q *Queries) CreateOrUpdateAutoRolesGuildSettings(ctx context.Context, arg CreateOrUpdateAutoRolesGuildSettingsParams) (*GuildSettingsAutoroles, error)

func (*Queries) CreateOrUpdateFreeRolesGuildSettings

func (q *Queries) CreateOrUpdateFreeRolesGuildSettings(ctx context.Context, arg CreateOrUpdateFreeRolesGuildSettingsParams) (*GuildSettingsFreeroles, error)

func (*Queries) CreateOrUpdateGuild

func (q *Queries) CreateOrUpdateGuild(ctx context.Context, arg CreateOrUpdateGuildParams) (*Guilds, error)

func (*Queries) CreateOrUpdateGuildInvites

func (q *Queries) CreateOrUpdateGuildInvites(ctx context.Context, arg CreateOrUpdateGuildInvitesParams) (*GuildInvites, error)

func (*Queries) CreateOrUpdateLeaverGuildSettings

func (q *Queries) CreateOrUpdateLeaverGuildSettings(ctx context.Context, arg CreateOrUpdateLeaverGuildSettingsParams) (*GuildSettingsLeaver, error)

func (*Queries) CreateOrUpdateNewMembership

func (q *Queries) CreateOrUpdateNewMembership(ctx context.Context, arg CreateOrUpdateNewMembershipParams) (*UserMemberships, error)

func (*Queries) CreateOrUpdatePatreonUser

func (q *Queries) CreateOrUpdatePatreonUser(ctx context.Context, arg CreateOrUpdatePatreonUserParams) (*PatreonUsers, error)

func (*Queries) CreateOrUpdateRulesGuildSettings

func (q *Queries) CreateOrUpdateRulesGuildSettings(ctx context.Context, arg CreateOrUpdateRulesGuildSettingsParams) (*GuildSettingsRules, error)

func (*Queries) CreateOrUpdateTimeRolesGuildSettings

func (q *Queries) CreateOrUpdateTimeRolesGuildSettings(ctx context.Context, arg CreateOrUpdateTimeRolesGuildSettingsParams) (*GuildSettingsTimeroles, error)

func (*Queries) CreateOrUpdateUser

func (q *Queries) CreateOrUpdateUser(ctx context.Context, arg CreateOrUpdateUserParams) (*Users, error)

func (*Queries) CreateOrUpdateUserTransaction

func (q *Queries) CreateOrUpdateUserTransaction(ctx context.Context, arg CreateOrUpdateUserTransactionParams) (*UserTransactions, error)

func (*Queries) CreatePatreonUser

func (q *Queries) CreatePatreonUser(ctx context.Context, arg CreatePatreonUserParams) (*PatreonUsers, error)

func (*Queries) CreateRulesGuildSettings

func (q *Queries) CreateRulesGuildSettings(ctx context.Context, arg CreateRulesGuildSettingsParams) (*GuildSettingsRules, error)

func (*Queries) CreateScienceEvent

func (q *Queries) CreateScienceEvent(ctx context.Context, arg CreateScienceEventParams) (*ScienceEvents, error)

func (*Queries) CreateScienceGuildEvent

func (q *Queries) CreateScienceGuildEvent(ctx context.Context, arg CreateScienceGuildEventParams) (*ScienceGuildEvents, error)

func (*Queries) CreateTempChannelsGuildSettings

func (q *Queries) CreateTempChannelsGuildSettings(ctx context.Context, arg CreateTempChannelsGuildSettingsParams) (*GuildSettingsTempchannels, error)

func (*Queries) CreateTimeRolesGuildSettings

func (q *Queries) CreateTimeRolesGuildSettings(ctx context.Context, arg CreateTimeRolesGuildSettingsParams) (*GuildSettingsTimeroles, error)

func (*Queries) CreateUser

func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (*Users, error)

func (*Queries) CreateUserTransaction

func (q *Queries) CreateUserTransaction(ctx context.Context, arg CreateUserTransactionParams) (*UserTransactions, error)

func (*Queries) CreateWelcomerDMsGuildSettings

func (q *Queries) CreateWelcomerDMsGuildSettings(ctx context.Context, arg CreateWelcomerDMsGuildSettingsParams) (*GuildSettingsWelcomerDms, error)

func (*Queries) CreateWelcomerImages

func (q *Queries) CreateWelcomerImages(ctx context.Context, arg CreateWelcomerImagesParams) (*WelcomerImages, error)

func (*Queries) CreateWelcomerTextGuildSettings

func (q *Queries) CreateWelcomerTextGuildSettings(ctx context.Context, arg CreateWelcomerTextGuildSettingsParams) (*GuildSettingsWelcomerText, error)

func (*Queries) DeleteGuildInvites

func (q *Queries) DeleteGuildInvites(ctx context.Context, arg DeleteGuildInvitesParams) (int64, error)

func (*Queries) DeletePatreonUser

func (q *Queries) DeletePatreonUser(ctx context.Context, arg DeletePatreonUserParams) (int64, error)

func (*Queries) DeleteUserMembership

func (q *Queries) DeleteUserMembership(ctx context.Context, membershipUuid uuid.UUID) (int64, error)

func (*Queries) DeleteUserTransaction

func (q *Queries) DeleteUserTransaction(ctx context.Context, transactionUuid uuid.UUID) (int64, error)

func (*Queries) DeleteWelcomerImage

func (q *Queries) DeleteWelcomerImage(ctx context.Context, imageUuid uuid.UUID) (int64, error)

func (*Queries) GetAutoRolesGuildSettings

func (q *Queries) GetAutoRolesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsAutoroles, error)

func (*Queries) GetBorderwallGuildSettings

func (q *Queries) GetBorderwallGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsBorderwall, error)

func (*Queries) GetBorderwallRequest

func (q *Queries) GetBorderwallRequest(ctx context.Context, requestUuid uuid.UUID) (*BorderwallRequests, error)

func (*Queries) GetBorderwallRequestsByGuildIDUserID

func (q *Queries) GetBorderwallRequestsByGuildIDUserID(ctx context.Context, arg GetBorderwallRequestsByGuildIDUserIDParams) ([]*BorderwallRequests, error)

func (*Queries) GetBorderwallRequestsByIPAddress

func (q *Queries) GetBorderwallRequestsByIPAddress(ctx context.Context, ipAddress pgtype.Inet) ([]*BorderwallRequests, error)

func (*Queries) GetCommandError

func (q *Queries) GetCommandError(ctx context.Context, commandUuid uuid.UUID) (*GetCommandErrorRow, error)

func (*Queries) GetCommandUsage

func (q *Queries) GetCommandUsage(ctx context.Context, commandUuid uuid.UUID) (*ScienceCommandUsages, error)

func (*Queries) GetFreeRolesGuildSettings

func (q *Queries) GetFreeRolesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsFreeroles, error)

func (*Queries) GetGuild

func (q *Queries) GetGuild(ctx context.Context, guildID int64) (*Guilds, error)

func (*Queries) GetGuildInvites

func (q *Queries) GetGuildInvites(ctx context.Context, guildID int64) ([]*GuildInvites, error)

func (*Queries) GetLeaverGuildSettings

func (q *Queries) GetLeaverGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsLeaver, error)

func (*Queries) GetPatreonUser

func (q *Queries) GetPatreonUser(ctx context.Context, patreonUserID int64) (*PatreonUsers, error)

func (*Queries) GetPatreonUsers

func (q *Queries) GetPatreonUsers(ctx context.Context) ([]*PatreonUsers, error)

func (*Queries) GetPatreonUsersByUserID

func (q *Queries) GetPatreonUsersByUserID(ctx context.Context, userID int64) ([]*PatreonUsers, error)

func (*Queries) GetRulesGuildSettings

func (q *Queries) GetRulesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsRules, error)

func (*Queries) GetScienceEvent

func (q *Queries) GetScienceEvent(ctx context.Context, eventUuid uuid.UUID) (*ScienceEvents, error)

func (*Queries) GetScienceGuildEvent

func (q *Queries) GetScienceGuildEvent(ctx context.Context, guildEventUuid uuid.UUID) (*ScienceGuildEvents, error)

func (*Queries) GetTempChannelsGuildSettings

func (q *Queries) GetTempChannelsGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsTempchannels, error)

func (*Queries) GetTimeRolesGuildSettings

func (q *Queries) GetTimeRolesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsTimeroles, error)

func (*Queries) GetUser

func (q *Queries) GetUser(ctx context.Context, userID int64) (*Users, error)

func (*Queries) GetUserMembership

func (q *Queries) GetUserMembership(ctx context.Context, membershipUuid uuid.UUID) (*GetUserMembershipRow, error)

func (*Queries) GetUserMembershipsByGuildID

func (q *Queries) GetUserMembershipsByGuildID(ctx context.Context, guildID int64) ([]*GetUserMembershipsByGuildIDRow, error)

func (*Queries) GetUserMembershipsByUserID

func (q *Queries) GetUserMembershipsByUserID(ctx context.Context, userID int64) ([]*GetUserMembershipsByUserIDRow, error)

func (*Queries) GetUserTransaction

func (q *Queries) GetUserTransaction(ctx context.Context, transactionUuid uuid.UUID) (*UserTransactions, error)

func (*Queries) GetUserTransactionsByTransactionID

func (q *Queries) GetUserTransactionsByTransactionID(ctx context.Context, transactionID string) ([]*UserTransactions, error)

func (*Queries) GetUserTransactionsByUserID

func (q *Queries) GetUserTransactionsByUserID(ctx context.Context, userID int64) ([]*UserTransactions, error)

func (*Queries) GetValidUserMembershipsByGuildID

func (q *Queries) GetValidUserMembershipsByGuildID(ctx context.Context, guildID discord.Snowflake, time time.Time) ([]*GetUserMembershipsByGuildIDRow, error)

Returns all valid user memberships based on a guild ID.

func (*Queries) GetWelcomerDMsGuildSettings

func (q *Queries) GetWelcomerDMsGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerDms, error)

func (*Queries) GetWelcomerImages

func (q *Queries) GetWelcomerImages(ctx context.Context, imageUuid uuid.UUID) (*WelcomerImages, error)

func (*Queries) GetWelcomerImagesByGuildId

func (q *Queries) GetWelcomerImagesByGuildId(ctx context.Context, guildID int64) ([]*WelcomerImages, error)

func (*Queries) GetWelcomerImagesGuildSettings

func (q *Queries) GetWelcomerImagesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerImages, error)

func (*Queries) GetWelcomerTextGuildSettings

func (q *Queries) GetWelcomerTextGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerText, error)

func (*Queries) InsertBorderwallRequest

func (q *Queries) InsertBorderwallRequest(ctx context.Context, arg InsertBorderwallRequestParams) (*BorderwallRequests, error)

func (*Queries) UpdateAutoRolesGuildSettings

func (q *Queries) UpdateAutoRolesGuildSettings(ctx context.Context, arg UpdateAutoRolesGuildSettingsParams) (int64, error)

func (*Queries) UpdateBorderwallGuildSettings

func (q *Queries) UpdateBorderwallGuildSettings(ctx context.Context, arg UpdateBorderwallGuildSettingsParams) (int64, error)

func (*Queries) UpdateBorderwallRequest

func (q *Queries) UpdateBorderwallRequest(ctx context.Context, arg UpdateBorderwallRequestParams) (int64, error)

func (*Queries) UpdateFreeRolesGuildSettings

func (q *Queries) UpdateFreeRolesGuildSettings(ctx context.Context, arg UpdateFreeRolesGuildSettingsParams) (int64, error)

func (*Queries) UpdateGuild

func (q *Queries) UpdateGuild(ctx context.Context, arg UpdateGuildParams) (int64, error)

func (*Queries) UpdateLeaverGuildSettings

func (q *Queries) UpdateLeaverGuildSettings(ctx context.Context, arg UpdateLeaverGuildSettingsParams) (int64, error)

func (*Queries) UpdatePatreonUser

func (q *Queries) UpdatePatreonUser(ctx context.Context, arg UpdatePatreonUserParams) (int64, error)

func (*Queries) UpdateRuleGuildSettings

func (q *Queries) UpdateRuleGuildSettings(ctx context.Context, arg UpdateRuleGuildSettingsParams) (int64, error)

func (*Queries) UpdateTempChannelsGuildSettings

func (q *Queries) UpdateTempChannelsGuildSettings(ctx context.Context, arg UpdateTempChannelsGuildSettingsParams) (int64, error)

func (*Queries) UpdateTimeRolesGuildSettings

func (q *Queries) UpdateTimeRolesGuildSettings(ctx context.Context, arg UpdateTimeRolesGuildSettingsParams) (int64, error)

func (*Queries) UpdateUser

func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (int64, error)

func (*Queries) UpdateUserMembership

func (q *Queries) UpdateUserMembership(ctx context.Context, arg UpdateUserMembershipParams) (int64, error)

func (*Queries) UpdateUserTransaction

func (q *Queries) UpdateUserTransaction(ctx context.Context, arg UpdateUserTransactionParams) (int64, error)

func (*Queries) UpdateWelcomerDMsGuildSettings

func (q *Queries) UpdateWelcomerDMsGuildSettings(ctx context.Context, arg UpdateWelcomerDMsGuildSettingsParams) (int64, error)

func (*Queries) UpdateWelcomerImagesGuildSettings

func (q *Queries) UpdateWelcomerImagesGuildSettings(ctx context.Context, arg UpdateWelcomerImagesGuildSettingsParams) (int64, error)

func (*Queries) UpdateWelcomerTextGuildSettings

func (q *Queries) UpdateWelcomerTextGuildSettings(ctx context.Context, arg UpdateWelcomerTextGuildSettingsParams) (int64, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

type ScienceCommandErrors

type ScienceCommandErrors struct {
	CommandUuid uuid.UUID    `json:"command_uuid"`
	CreatedAt   time.Time    `json:"created_at"`
	Trace       string       `json:"trace"`
	Data        pgtype.JSONB `json:"data"`
}

type ScienceCommandUsages

type ScienceCommandUsages struct {
	CommandUuid     uuid.UUID     `json:"command_uuid"`
	CreatedAt       time.Time     `json:"created_at"`
	GuildID         int64         `json:"guild_id"`
	UserID          int64         `json:"user_id"`
	ChannelID       sql.NullInt64 `json:"channel_id"`
	Command         string        `json:"command"`
	Errored         bool          `json:"errored"`
	ExecutionTimeMs int64         `json:"execution_time_ms"`
}

type ScienceEventType

type ScienceEventType int32

ENUM(unknown, guildJoin, guildLeave)

const (
	// ScienceEventTypeUnknown is a ScienceEventType of type Unknown.
	ScienceEventTypeUnknown ScienceEventType = iota
	// ScienceEventTypeGuildJoin is a ScienceEventType of type GuildJoin.
	ScienceEventTypeGuildJoin
	// ScienceEventTypeGuildLeave is a ScienceEventType of type GuildLeave.
	ScienceEventTypeGuildLeave
)

func ParseScienceEventType

func ParseScienceEventType(name string) (ScienceEventType, error)

ParseScienceEventType attempts to convert a string to a ScienceEventType.

func (ScienceEventType) IsValid

func (x ScienceEventType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ScienceEventType) MarshalText

func (x ScienceEventType) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method.

func (ScienceEventType) String

func (x ScienceEventType) String() string

String implements the Stringer interface.

func (*ScienceEventType) UnmarshalText

func (x *ScienceEventType) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method.

type ScienceEvents

type ScienceEvents struct {
	EventUuid uuid.UUID    `json:"event_uuid"`
	CreatedAt time.Time    `json:"created_at"`
	EventType int32        `json:"event_type"`
	Data      pgtype.JSONB `json:"data"`
}

type ScienceGuildEventType

type ScienceGuildEventType int32

ENUM(unknown, userJoin, userLeave, userWelcomed, timeRoleGiven, borderwallChallenge, borderwallCompleted, tempChannelCreated, membershipReceived, membershipRemoved)

const (
	// ScienceGuildEventTypeUnknown is a ScienceGuildEventType of type Unknown.
	ScienceGuildEventTypeUnknown ScienceGuildEventType = iota
	// ScienceGuildEventTypeUserJoin is a ScienceGuildEventType of type UserJoin.
	ScienceGuildEventTypeUserJoin
	// ScienceGuildEventTypeUserLeave is a ScienceGuildEventType of type UserLeave.
	ScienceGuildEventTypeUserLeave
	// ScienceGuildEventTypeUserWelcomed is a ScienceGuildEventType of type UserWelcomed.
	ScienceGuildEventTypeUserWelcomed
	// ScienceGuildEventTypeTimeRoleGiven is a ScienceGuildEventType of type TimeRoleGiven.
	ScienceGuildEventTypeTimeRoleGiven
	// ScienceGuildEventTypeBorderwallChallenge is a ScienceGuildEventType of type BorderwallChallenge.
	ScienceGuildEventTypeBorderwallChallenge
	// ScienceGuildEventTypeBorderwallCompleted is a ScienceGuildEventType of type BorderwallCompleted.
	ScienceGuildEventTypeBorderwallCompleted
	// ScienceGuildEventTypeTempChannelCreated is a ScienceGuildEventType of type TempChannelCreated.
	ScienceGuildEventTypeTempChannelCreated
	// ScienceGuildEventTypeMembershipReceived is a ScienceGuildEventType of type MembershipReceived.
	ScienceGuildEventTypeMembershipReceived
	// ScienceGuildEventTypeMembershipRemoved is a ScienceGuildEventType of type MembershipRemoved.
	ScienceGuildEventTypeMembershipRemoved
)

func ParseScienceGuildEventType

func ParseScienceGuildEventType(name string) (ScienceGuildEventType, error)

ParseScienceGuildEventType attempts to convert a string to a ScienceGuildEventType.

func (ScienceGuildEventType) IsValid

func (x ScienceGuildEventType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (ScienceGuildEventType) MarshalText

func (x ScienceGuildEventType) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method.

func (ScienceGuildEventType) String

func (x ScienceGuildEventType) String() string

String implements the Stringer interface.

func (*ScienceGuildEventType) UnmarshalText

func (x *ScienceGuildEventType) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method.

type ScienceGuildEvents

type ScienceGuildEvents struct {
	GuildEventUuid uuid.UUID    `json:"guild_event_uuid"`
	GuildID        int64        `json:"guild_id"`
	CreatedAt      time.Time    `json:"created_at"`
	EventType      int32        `json:"event_type"`
	Data           pgtype.JSONB `json:"data"`
}

type TransactionStatus

type TransactionStatus int32

ENUM(unknown, pending, completed, refunded)

const (
	// TransactionStatusUnknown is a TransactionStatus of type Unknown.
	TransactionStatusUnknown TransactionStatus = iota
	// TransactionStatusPending is a TransactionStatus of type Pending.
	TransactionStatusPending
	// TransactionStatusCompleted is a TransactionStatus of type Completed.
	TransactionStatusCompleted
	// TransactionStatusRefunded is a TransactionStatus of type Refunded.
	TransactionStatusRefunded
)

func ParseTransactionStatus

func ParseTransactionStatus(name string) (TransactionStatus, error)

ParseTransactionStatus attempts to convert a string to a TransactionStatus.

func (TransactionStatus) IsValid

func (x TransactionStatus) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (TransactionStatus) MarshalText

func (x TransactionStatus) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method.

func (TransactionStatus) String

func (x TransactionStatus) String() string

String implements the Stringer interface.

func (*TransactionStatus) UnmarshalText

func (x *TransactionStatus) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method.

type UpdateAutoRolesGuildSettingsParams

type UpdateAutoRolesGuildSettingsParams struct {
	GuildID       int64   `json:"guild_id"`
	ToggleEnabled bool    `json:"toggle_enabled"`
	Roles         []int64 `json:"roles"`
}

type UpdateBorderwallGuildSettingsParams

type UpdateBorderwallGuildSettingsParams struct {
	GuildID         int64        `json:"guild_id"`
	ToggleEnabled   bool         `json:"toggle_enabled"`
	ToggleSendDm    bool         `json:"toggle_send_dm"`
	Channel         int64        `json:"channel"`
	MessageVerify   pgtype.JSONB `json:"message_verify"`
	MessageVerified pgtype.JSONB `json:"message_verified"`
	RolesOnJoin     []int64      `json:"roles_on_join"`
	RolesOnVerify   []int64      `json:"roles_on_verify"`
}

type UpdateBorderwallRequestParams

type UpdateBorderwallRequestParams struct {
	RequestUuid     uuid.UUID       `json:"request_uuid"`
	IsVerified      bool            `json:"is_verified"`
	VerifiedAt      sql.NullTime    `json:"verified_at"`
	IpAddress       pgtype.Inet     `json:"ip_address"`
	RecaptchaScore  sql.NullFloat64 `json:"recaptcha_score"`
	IpintelScore    sql.NullFloat64 `json:"ipintel_score"`
	CountryCode     sql.NullString  `json:"country_code"`
	UaFamily        sql.NullString  `json:"ua_family"`
	UaFamilyVersion sql.NullString  `json:"ua_family_version"`
	UaOs            sql.NullString  `json:"ua_os"`
	UaOsVersion     sql.NullString  `json:"ua_os_version"`
}

type UpdateFreeRolesGuildSettingsParams

type UpdateFreeRolesGuildSettingsParams struct {
	GuildID       int64   `json:"guild_id"`
	ToggleEnabled bool    `json:"toggle_enabled"`
	Roles         []int64 `json:"roles"`
}

type UpdateGuildParams

type UpdateGuildParams struct {
	GuildID          int64  `json:"guild_id"`
	EmbedColour      int32  `json:"embed_colour"`
	SiteSplashUrl    string `json:"site_splash_url"`
	SiteStaffVisible bool   `json:"site_staff_visible"`
	SiteGuildVisible bool   `json:"site_guild_visible"`
	SiteAllowInvites bool   `json:"site_allow_invites"`
}

type UpdateLeaverGuildSettingsParams

type UpdateLeaverGuildSettingsParams struct {
	GuildID       int64        `json:"guild_id"`
	ToggleEnabled bool         `json:"toggle_enabled"`
	Channel       int64        `json:"channel"`
	MessageFormat pgtype.JSONB `json:"message_format"`
}

type UpdatePatreonUserParams

type UpdatePatreonUserParams struct {
	PatreonUserID    int64     `json:"patreon_user_id"`
	UserID           int64     `json:"user_id"`
	FullName         string    `json:"full_name"`
	Email            string    `json:"email"`
	ThumbUrl         string    `json:"thumb_url"`
	PledgeCreatedAt  time.Time `json:"pledge_created_at"`
	PledgeEndedAt    time.Time `json:"pledge_ended_at"`
	TierID           int64     `json:"tier_id"`
	LastChargeStatus string    `json:"last_charge_status"`
	PatronStatus     string    `json:"patron_status"`
}

type UpdateRuleGuildSettingsParams

type UpdateRuleGuildSettingsParams struct {
	GuildID          int64    `json:"guild_id"`
	ToggleEnabled    bool     `json:"toggle_enabled"`
	ToggleDmsEnabled bool     `json:"toggle_dms_enabled"`
	Rules            []string `json:"rules"`
}

type UpdateTempChannelsGuildSettingsParams

type UpdateTempChannelsGuildSettingsParams struct {
	GuildID          int64 `json:"guild_id"`
	ToggleEnabled    bool  `json:"toggle_enabled"`
	ToggleAutopurge  bool  `json:"toggle_autopurge"`
	ChannelLobby     int64 `json:"channel_lobby"`
	ChannelCategory  int64 `json:"channel_category"`
	DefaultUserCount int32 `json:"default_user_count"`
}

type UpdateTimeRolesGuildSettingsParams

type UpdateTimeRolesGuildSettingsParams struct {
	GuildID       int64        `json:"guild_id"`
	ToggleEnabled bool         `json:"toggle_enabled"`
	Timeroles     pgtype.JSONB `json:"timeroles"`
}

type UpdateUserMembershipParams

type UpdateUserMembershipParams struct {
	MembershipUuid  uuid.UUID `json:"membership_uuid"`
	StartedAt       time.Time `json:"started_at"`
	ExpiresAt       time.Time `json:"expires_at"`
	Status          int32     `json:"status"`
	TransactionUuid uuid.UUID `json:"transaction_uuid"`
	UserID          int64     `json:"user_id"`
	GuildID         int64     `json:"guild_id"`
}

type UpdateUserParams

type UpdateUserParams struct {
	UserID        int64  `json:"user_id"`
	Name          string `json:"name"`
	Discriminator string `json:"discriminator"`
	AvatarHash    string `json:"avatar_hash"`
}

type UpdateUserTransactionParams

type UpdateUserTransactionParams struct {
	TransactionUuid   uuid.UUID `json:"transaction_uuid"`
	UserID            int64     `json:"user_id"`
	PlatformType      int32     `json:"platform_type"`
	TransactionID     string    `json:"transaction_id"`
	TransactionStatus int32     `json:"transaction_status"`
	CurrencyCode      string    `json:"currency_code"`
	Amount            string    `json:"amount"`
}

type UpdateWelcomerDMsGuildSettingsParams

type UpdateWelcomerDMsGuildSettingsParams struct {
	GuildID             int64        `json:"guild_id"`
	ToggleEnabled       bool         `json:"toggle_enabled"`
	ToggleUseTextFormat bool         `json:"toggle_use_text_format"`
	ToggleIncludeImage  bool         `json:"toggle_include_image"`
	MessageFormat       pgtype.JSONB `json:"message_format"`
}

type UpdateWelcomerImagesGuildSettingsParams

type UpdateWelcomerImagesGuildSettingsParams struct {
	GuildID                int64  `json:"guild_id"`
	ToggleEnabled          bool   `json:"toggle_enabled"`
	ToggleImageBorder      bool   `json:"toggle_image_border"`
	BackgroundName         string `json:"background_name"`
	ColourText             string `json:"colour_text"`
	ColourTextBorder       string `json:"colour_text_border"`
	ColourImageBorder      string `json:"colour_image_border"`
	ColourProfileBorder    string `json:"colour_profile_border"`
	ImageAlignment         int32  `json:"image_alignment"`
	ImageTheme             int32  `json:"image_theme"`
	ImageMessage           string `json:"image_message"`
	ImageProfileBorderType int32  `json:"image_profile_border_type"`
}

type UpdateWelcomerTextGuildSettingsParams

type UpdateWelcomerTextGuildSettingsParams struct {
	GuildID       int64        `json:"guild_id"`
	ToggleEnabled bool         `json:"toggle_enabled"`
	Channel       int64        `json:"channel"`
	MessageFormat pgtype.JSONB `json:"message_format"`
}

type UserMemberships

type UserMemberships struct {
	MembershipUuid  uuid.UUID `json:"membership_uuid"`
	CreatedAt       time.Time `json:"created_at"`
	UpdatedAt       time.Time `json:"updated_at"`
	StartedAt       time.Time `json:"started_at"`
	ExpiresAt       time.Time `json:"expires_at"`
	Status          int32     `json:"status"`
	MembershipType  int32     `json:"membership_type"`
	TransactionUuid uuid.UUID `json:"transaction_uuid"`
	UserID          int64     `json:"user_id"`
	GuildID         int64     `json:"guild_id"`
}

type UserTransactions

type UserTransactions struct {
	TransactionUuid   uuid.UUID `json:"transaction_uuid"`
	CreatedAt         time.Time `json:"created_at"`
	UpdatedAt         time.Time `json:"updated_at"`
	UserID            int64     `json:"user_id"`
	PlatformType      int32     `json:"platform_type"`
	TransactionID     string    `json:"transaction_id"`
	TransactionStatus int32     `json:"transaction_status"`
	CurrencyCode      string    `json:"currency_code"`
	Amount            string    `json:"amount"`
}

type Users

type Users struct {
	UserID        int64     `json:"user_id"`
	CreatedAt     time.Time `json:"created_at"`
	UpdatedAt     time.Time `json:"updated_at"`
	Name          string    `json:"name"`
	Discriminator string    `json:"discriminator"`
	AvatarHash    string    `json:"avatar_hash"`
}

type WelcomerImages

type WelcomerImages struct {
	ImageUuid uuid.UUID `json:"image_uuid"`
	GuildID   int64     `json:"guild_id"`
	CreatedAt time.Time `json:"created_at"`
	ImageType string    `json:"image_type"`
	Data      []byte    `json:"data"`
}

Jump to

Keyboard shortcuts

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