Documentation ¶
Index ¶
- Constants
- type BackgroundFileType
- type BorderwallRequests
- type CreateBorderwallGuildSettingsParams
- type CreateBorderwallRequestParams
- type CreateCommandErrorParams
- type CreateCommandUsageParams
- type CreateFreeRolesGuildSettingsParams
- type CreateGuildParams
- type CreateNewMembershipParams
- type CreateOrUpdateBorderwallGuildSettingsParams
- type CreateOrUpdateBorderwallRequestParams
- type CreateOrUpdateFreeRolesGuildSettingsParams
- type CreateOrUpdateGuildParams
- type CreateOrUpdateNewMembershipParams
- type CreateOrUpdatePatreonUserParams
- type CreateOrUpdateRulesGuildSettingsParams
- type CreateOrUpdateTempChannelsGuildSettingsParams
- type CreateOrUpdateUserParams
- type CreateOrUpdateUserTransactionParams
- type CreateOrUpdateWelcomerDMsGuildSettingsParams
- type CreateOrUpdateWelcomerImagesGuildSettingsParams
- type CreateOrUpdateWelcomerTextGuildSettingsParams
- type CreatePatreonUserParams
- type CreateRulesGuildSettingsParams
- type CreateScienceEventParams
- type CreateScienceGuildEventParams
- type CreateTempChannelsGuildSettingsParams
- type CreateUserParams
- type CreateUserTransactionParams
- type CreateWelcomerBackgroundParams
- type CreateWelcomerDMsGuildSettingsParams
- type CreateWelcomerImagesGuildSettingsParams
- type CreateWelcomerTextGuildSettingsParams
- type DBTX
- type GetBorderwallRequestsByGuildIDUserIDParams
- type GetCommandErrorRow
- type GetUserMembershipRow
- type GetUserMembershipsByGuildIDRow
- type GetUserMembershipsByUserIDRow
- type GuildSettingsBorderwall
- type GuildSettingsFreeroles
- type GuildSettingsRules
- type GuildSettingsTempchannels
- type GuildSettingsWelcomerBackgrounds
- type GuildSettingsWelcomerDms
- type GuildSettingsWelcomerImages
- type GuildSettingsWelcomerText
- type Guilds
- type MembershipStatus
- type MembershipType
- type PatreonUsers
- type PlatformType
- type Querier
- type Queries
- func (q *Queries) CreateBorderwallGuildSettings(ctx context.Context, arg *CreateBorderwallGuildSettingsParams) (*GuildSettingsBorderwall, error)
- func (q *Queries) CreateBorderwallRequest(ctx context.Context, arg *CreateBorderwallRequestParams) (*BorderwallRequests, error)
- func (q *Queries) CreateCommandError(ctx context.Context, arg *CreateCommandErrorParams) (*ScienceCommandErrors, error)
- func (q *Queries) CreateCommandUsage(ctx context.Context, arg *CreateCommandUsageParams) (*ScienceCommandUsages, error)
- func (q *Queries) CreateFreeRolesGuildSettings(ctx context.Context, arg *CreateFreeRolesGuildSettingsParams) (*GuildSettingsFreeroles, error)
- func (q *Queries) CreateGuild(ctx context.Context, arg *CreateGuildParams) (*Guilds, error)
- func (q *Queries) CreateNewMembership(ctx context.Context, arg *CreateNewMembershipParams) (*UserMemberships, error)
- func (q *Queries) CreateOrUpdateBorderwallGuildSettings(ctx context.Context, arg *CreateOrUpdateBorderwallGuildSettingsParams) (*GuildSettingsBorderwall, error)
- func (q *Queries) CreateOrUpdateBorderwallRequest(ctx context.Context, arg *CreateOrUpdateBorderwallRequestParams) (*BorderwallRequests, error)
- func (q *Queries) CreateOrUpdateFreeRolesGuildSettings(ctx context.Context, arg *CreateOrUpdateFreeRolesGuildSettingsParams) (*GuildSettingsFreeroles, error)
- func (q *Queries) CreateOrUpdateGuild(ctx context.Context, arg *CreateOrUpdateGuildParams) (*Guilds, error)
- func (q *Queries) CreateOrUpdateNewMembership(ctx context.Context, arg *CreateOrUpdateNewMembershipParams) (*UserMemberships, error)
- func (q *Queries) CreateOrUpdatePatreonUser(ctx context.Context, arg *CreateOrUpdatePatreonUserParams) (*PatreonUsers, error)
- func (q *Queries) CreateOrUpdateRulesGuildSettings(ctx context.Context, arg *CreateOrUpdateRulesGuildSettingsParams) (*GuildSettingsRules, error)
- func (q *Queries) CreateOrUpdateTempChannelsGuildSettings(ctx context.Context, arg *CreateOrUpdateTempChannelsGuildSettingsParams) (*GuildSettingsTempchannels, error)
- func (q *Queries) CreateOrUpdateUser(ctx context.Context, arg *CreateOrUpdateUserParams) (*Users, error)
- func (q *Queries) CreateOrUpdateUserTransaction(ctx context.Context, arg *CreateOrUpdateUserTransactionParams) (*UserTransactions, error)
- func (q *Queries) CreateOrUpdateWelcomerDMsGuildSettings(ctx context.Context, arg *CreateOrUpdateWelcomerDMsGuildSettingsParams) (*GuildSettingsWelcomerDms, error)
- func (q *Queries) CreateOrUpdateWelcomerImagesGuildSettings(ctx context.Context, arg *CreateOrUpdateWelcomerImagesGuildSettingsParams) (*GuildSettingsWelcomerImages, error)
- func (q *Queries) CreateOrUpdateWelcomerTextGuildSettings(ctx context.Context, arg *CreateOrUpdateWelcomerTextGuildSettingsParams) (*GuildSettingsWelcomerText, error)
- func (q *Queries) CreatePatreonUser(ctx context.Context, arg *CreatePatreonUserParams) (*PatreonUsers, error)
- func (q *Queries) CreateRulesGuildSettings(ctx context.Context, arg *CreateRulesGuildSettingsParams) (*GuildSettingsRules, error)
- func (q *Queries) CreateScienceEvent(ctx context.Context, arg *CreateScienceEventParams) (*ScienceEvents, error)
- func (q *Queries) CreateScienceGuildEvent(ctx context.Context, arg *CreateScienceGuildEventParams) (*ScienceGuildEvents, error)
- func (q *Queries) CreateTempChannelsGuildSettings(ctx context.Context, arg *CreateTempChannelsGuildSettingsParams) (*GuildSettingsTempchannels, error)
- func (q *Queries) CreateUser(ctx context.Context, arg *CreateUserParams) (*Users, error)
- func (q *Queries) CreateUserTransaction(ctx context.Context, arg *CreateUserTransactionParams) (*UserTransactions, error)
- func (q *Queries) CreateWelcomerBackground(ctx context.Context, arg *CreateWelcomerBackgroundParams) (*GuildSettingsWelcomerBackgrounds, error)
- func (q *Queries) CreateWelcomerDMsGuildSettings(ctx context.Context, arg *CreateWelcomerDMsGuildSettingsParams) (*GuildSettingsWelcomerDms, error)
- func (q *Queries) CreateWelcomerImagesGuildSettings(ctx context.Context, arg *CreateWelcomerImagesGuildSettingsParams) (*GuildSettingsWelcomerImages, error)
- func (q *Queries) CreateWelcomerTextGuildSettings(ctx context.Context, arg *CreateWelcomerTextGuildSettingsParams) (*GuildSettingsWelcomerText, error)
- func (q *Queries) DeletePatreonUser(ctx context.Context, patreonUserID int64) (int64, error)
- func (q *Queries) DeleteWelcomerBackground(ctx context.Context, imageUuid uuid.UUID) (int64, error)
- func (q *Queries) GetBorderwallGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsBorderwall, error)
- func (q *Queries) GetBorderwallRequest(ctx context.Context, requestUuid uuid.UUID) (*BorderwallRequests, error)
- func (q *Queries) GetBorderwallRequestsByGuildIDUserID(ctx context.Context, arg *GetBorderwallRequestsByGuildIDUserIDParams) ([]*BorderwallRequests, error)
- func (q *Queries) GetCommandError(ctx context.Context, commandUuid uuid.UUID) (*GetCommandErrorRow, error)
- func (q *Queries) GetCommandUsage(ctx context.Context, commandUuid uuid.UUID) (*ScienceCommandUsages, error)
- func (q *Queries) GetFreeRolesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsFreeroles, error)
- func (q *Queries) GetGuild(ctx context.Context, guildID int64) (*Guilds, error)
- func (q *Queries) GetPatreonUser(ctx context.Context, patreonUserID int64) (*PatreonUsers, error)
- func (q *Queries) GetPatreonUsersByUserID(ctx context.Context, userID int64) ([]*PatreonUsers, error)
- func (q *Queries) GetRulesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsRules, error)
- func (q *Queries) GetScienceEvent(ctx context.Context, eventUuid uuid.UUID) (*ScienceEvents, error)
- func (q *Queries) GetScienceGuildEvent(ctx context.Context, guildEventUuid uuid.UUID) (*ScienceGuildEvents, error)
- func (q *Queries) GetTempChannelsGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsTempchannels, error)
- func (q *Queries) GetUser(ctx context.Context, userID int64) (*Users, error)
- func (q *Queries) GetUserMembership(ctx context.Context, membershipUuid uuid.UUID) (*GetUserMembershipRow, error)
- func (q *Queries) GetUserMembershipsByGuildID(ctx context.Context, guildID int64) ([]*GetUserMembershipsByGuildIDRow, error)
- func (q *Queries) GetUserMembershipsByUserID(ctx context.Context, userID int64) ([]*GetUserMembershipsByUserIDRow, error)
- func (q *Queries) GetUserTransaction(ctx context.Context, transactionUuid uuid.UUID) (*UserTransactions, error)
- func (q *Queries) GetUserTransactionsByUserID(ctx context.Context, userID int64) ([]*UserTransactions, error)
- func (q *Queries) GetValidUserMembershipsByGuildID(ctx context.Context, guildID discord.Snowflake, time time.Time) ([]*GetUserMembershipsByGuildIDRow, error)
- func (q *Queries) GetWelcomerBackground(ctx context.Context, imageUuid uuid.UUID) (*GuildSettingsWelcomerBackgrounds, error)
- func (q *Queries) GetWelcomerBackgroundByGuildID(ctx context.Context, guildID int64) ([]*GuildSettingsWelcomerBackgrounds, error)
- func (q *Queries) GetWelcomerDMsGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerDms, error)
- func (q *Queries) GetWelcomerImagesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerImages, error)
- func (q *Queries) GetWelcomerTextGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerText, error)
- func (q *Queries) UpdateBorderwallGuildSettings(ctx context.Context, arg *UpdateBorderwallGuildSettingsParams) (int64, error)
- func (q *Queries) UpdateBorderwallRequest(ctx context.Context, arg *UpdateBorderwallRequestParams) (int64, error)
- func (q *Queries) UpdateFreeRolesGuildSettings(ctx context.Context, arg *UpdateFreeRolesGuildSettingsParams) (int64, error)
- func (q *Queries) UpdateGuild(ctx context.Context, arg *UpdateGuildParams) (int64, error)
- func (q *Queries) UpdatePatreonUser(ctx context.Context, arg *UpdatePatreonUserParams) (int64, error)
- func (q *Queries) UpdateRuleGuildSettings(ctx context.Context, arg *UpdateRuleGuildSettingsParams) (int64, error)
- func (q *Queries) UpdateTempChannelsGuildSettings(ctx context.Context, arg *UpdateTempChannelsGuildSettingsParams) (int64, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg *UpdateUserParams) (int64, error)
- func (q *Queries) UpdateUserMembership(ctx context.Context, arg *UpdateUserMembershipParams) (int64, error)
- func (q *Queries) UpdateUserTransaction(ctx context.Context, arg *UpdateUserTransactionParams) (int64, error)
- func (q *Queries) UpdateWelcomerDMsGuildSettings(ctx context.Context, arg *UpdateWelcomerDMsGuildSettingsParams) (int64, error)
- func (q *Queries) UpdateWelcomerImagesGuildSettings(ctx context.Context, arg *UpdateWelcomerImagesGuildSettingsParams) (int64, error)
- func (q *Queries) UpdateWelcomerTextGuildSettings(ctx context.Context, arg *UpdateWelcomerTextGuildSettingsParams) (int64, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type ScienceCommandErrors
- type ScienceCommandUsages
- type ScienceEventType
- type ScienceEvents
- type ScienceGuildEventType
- type ScienceGuildEvents
- type TransactionStatus
- type UpdateBorderwallGuildSettingsParams
- type UpdateBorderwallRequestParams
- type UpdateFreeRolesGuildSettingsParams
- type UpdateGuildParams
- type UpdatePatreonUserParams
- type UpdateRuleGuildSettingsParams
- type UpdateTempChannelsGuildSettingsParams
- type UpdateUserMembershipParams
- type UpdateUserParams
- type UpdateUserTransactionParams
- type UpdateWelcomerDMsGuildSettingsParams
- type UpdateWelcomerImagesGuildSettingsParams
- type UpdateWelcomerTextGuildSettingsParams
- type UserMemberships
- type UserTransactions
- type Users
Constants ¶
const CreateBorderwallGuildSettings = `` /* 316-byte string literal not displayed */
const CreateBorderwallRequest = `` /* 312-byte string literal not displayed */
const CreateCommandError = `` /* 191-byte string literal not displayed */
const CreateCommandUsage = `` /* 364-byte string literal not displayed */
const CreateFreeRolesGuildSettings = `` /* 184-byte string literal not displayed */
const CreateGuild = `` /* 375-byte string literal not displayed */
const CreateNewMembership = `` /* 405-byte string literal not displayed */
const CreateOrUpdateBorderwallGuildSettings = `` /* 609-byte string literal not displayed */
const CreateOrUpdateBorderwallRequest = `` /* 523-byte string literal not displayed */
const CreateOrUpdateFreeRolesGuildSettings = `` /* 305-byte string literal not displayed */
const CreateOrUpdateGuild = `` /* 744-byte string literal not displayed */
const CreateOrUpdateNewMembership = `` /* 739-byte string literal not displayed */
const CreateOrUpdatePatreonUser = `` /* 512-byte string literal not displayed */
const CreateOrUpdateRulesGuildSettings = `` /* 399-byte string literal not displayed */
const CreateOrUpdateTempChannelsGuildSettings = `` /* 633-byte string literal not displayed */
const CreateOrUpdateUser = `` /* 435-byte string literal not displayed */
const CreateOrUpdateUserTransaction = `` /* 763-byte string literal not displayed */
const CreateOrUpdateWelcomerDMsGuildSettings = `` /* 577-byte string literal not displayed */
const CreateOrUpdateWelcomerImagesGuildSettings = `` /* 1237-byte string literal not displayed */
const CreateOrUpdateWelcomerTextGuildSettings = `` /* 406-byte string literal not displayed */
const CreatePatreonUser = `` /* 276-byte string literal not displayed */
const CreateRulesGuildSettings = `` /* 220-byte string literal not displayed */
const CreateScienceEvent = `` /* 205-byte string literal not displayed */
const CreateScienceGuildEvent = `` /* 252-byte string literal not displayed */
const CreateTempChannelsGuildSettings = `` /* 330-byte string literal not displayed */
const CreateUser = `` /* 233-byte string literal not displayed */
const CreateUserTransaction = `` /* 400-byte string literal not displayed */
const CreateWelcomerBackground = `` /* 284-byte string literal not displayed */
const CreateWelcomerDMsGuildSettings = `` /* 307-byte string literal not displayed */
const CreateWelcomerImagesGuildSettings = `` /* 594-byte string literal not displayed */
const CreateWelcomerTextGuildSettings = `` /* 231-byte string literal not displayed */
const DeletePatreonUser = `-- name: DeletePatreonUser :execrows
DELETE FROM patreon_users
WHERE patreon_user_id = $1
`
const DeleteWelcomerBackground = `-- name: DeleteWelcomerBackground :execrows
DELETE FROM guild_settings_welcomer_backgrounds
WHERE image_uuid = $1
`
const GetBorderwallGuildSettings = `` /* 202-byte string literal not displayed */
const GetBorderwallRequest = `` /* 185-byte string literal not displayed */
const GetBorderwallRequestsByGuildIDUserID = `` /* 219-byte string literal not displayed */
const GetCommandError = `` /* 476-byte string literal not displayed */
const GetCommandUsage = `` /* 206-byte string literal not displayed */
const GetFreeRolesGuildSettings = `` /* 141-byte string literal not displayed */
const GetGuild = `` /* 204-byte string literal not displayed */
const GetPatreonUser = `` /* 172-byte string literal not displayed */
const GetPatreonUsersByUserID = `` /* 174-byte string literal not displayed */
const GetRulesGuildSettings = `` /* 153-byte string literal not displayed */
const GetScienceEvent = `` /* 132-byte string literal not displayed */
const GetScienceGuildEvent = `` /* 165-byte string literal not displayed */
const GetTempChannelsGuildSettings = `` /* 211-byte string literal not displayed */
const GetUser = `` /* 137-byte string literal not displayed */
const GetUserMembership = `` /* 616-byte string literal not displayed */
const GetUserMembershipsByGuildID = `` /* 620-byte string literal not displayed */
const GetUserMembershipsByUserID = `` /* 618-byte string literal not displayed */
const GetUserTransaction = `` /* 227-byte string literal not displayed */
const GetUserTransactionsByUserID = `` /* 228-byte string literal not displayed */
const GetWelcomerBackground = `` /* 181-byte string literal not displayed */
const GetWelcomerBackgroundByGuildID = `` /* 189-byte string literal not displayed */
const GetWelcomerDMsGuildSettings = `` /* 201-byte string literal not displayed */
const GetWelcomerImagesGuildSettings = `` /* 332-byte string literal not displayed */
const GetWelcomerTextGuildSettings = `` /* 166-byte string literal not displayed */
const UpdateBorderwallGuildSettings = `` /* 240-byte string literal not displayed */
const UpdateBorderwallRequest = `` /* 192-byte string literal not displayed */
const UpdateFreeRolesGuildSettings = `` /* 152-byte string literal not displayed */
const UpdateGuild = `` /* 251-byte string literal not displayed */
const UpdatePatreonUser = `` /* 194-byte string literal not displayed */
const UpdateRuleGuildSettings = `` /* 172-byte string literal not displayed */
const UpdateTempChannelsGuildSettings = `` /* 249-byte string literal not displayed */
const UpdateUser = `` /* 158-byte string literal not displayed */
const UpdateUserMembership = `` /* 249-byte string literal not displayed */
const UpdateUserTransaction = `` /* 264-byte string literal not displayed */
const UpdateWelcomerDMsGuildSettings = `` /* 230-byte string literal not displayed */
const UpdateWelcomerImagesGuildSettings = `` /* 427-byte string literal not displayed */
const UpdateWelcomerTextGuildSettings = `` /* 186-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundFileType ¶
type BackgroundFileType int32
ENUM(unknown, PNG, JPG, GIF, WEBP)
const ( // BackgroundFileTypeUnknown is a BackgroundFileType of type Unknown. BackgroundFileTypeUnknown BackgroundFileType = iota // BackgroundFileTypePNG is a BackgroundFileType of type PNG. BackgroundFileTypePNG // BackgroundFileTypeJPG is a BackgroundFileType of type JPG. BackgroundFileTypeJPG // BackgroundFileTypeGIF is a BackgroundFileType of type GIF. BackgroundFileTypeGIF // BackgroundFileTypeWEBP is a BackgroundFileType of type WEBP. BackgroundFileTypeWEBP )
func ParseBackgroundFileType ¶
func ParseBackgroundFileType(name string) (BackgroundFileType, error)
ParseBackgroundFileType attempts to convert a string to a BackgroundFileType.
func (BackgroundFileType) MarshalText ¶
func (x BackgroundFileType) MarshalText() ([]byte, error)
MarshalText implements the text marshaller method.
func (BackgroundFileType) String ¶
func (x BackgroundFileType) String() string
String implements the Stringer interface.
func (*BackgroundFileType) UnmarshalText ¶
func (x *BackgroundFileType) UnmarshalText(text []byte) error
UnmarshalText implements the text unmarshaller method.
type BorderwallRequests ¶
type CreateBorderwallGuildSettingsParams ¶
type CreateBorderwallGuildSettingsParams struct { GuildID int64 `json:"guild_id"` ToggleEnabled bool `json:"toggle_enabled"` 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 CreateGuildParams ¶
type CreateGuildParams struct { GuildID int64 `json:"guild_id"` Name string `json:"name"` 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 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 CreateOrUpdateBorderwallGuildSettingsParams ¶
type CreateOrUpdateBorderwallGuildSettingsParams struct { GuildID int64 `json:"guild_id"` ToggleEnabled bool `json:"toggle_enabled"` 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 CreateOrUpdateGuildParams ¶
type CreateOrUpdateGuildParams struct { GuildID int64 `json:"guild_id"` Name string `json:"name"` 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 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 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 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 CreatePatreonUserParams ¶
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 CreateUserParams ¶
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 GetCommandErrorRow ¶
type GetCommandErrorRow struct { CommandUuid uuid.UUID `json:"command_uuid"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_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.NullInt32 `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.NullInt32 `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.NullInt32 `json:"amount"` }
type GuildSettingsBorderwall ¶
type GuildSettingsBorderwall struct { GuildID int64 `json:"guild_id"` ToggleEnabled bool `json:"toggle_enabled"` 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 GuildSettingsFreeroles ¶
type GuildSettingsRules ¶
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"` }
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"` }
type Guilds ¶
type Guilds struct { GuildID int64 `json:"guild_id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Name string `json:"name"` 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 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) 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, legacyWelcomerPro1, legacyWelcomerPro3, legacyWelcomerPro5, welcomerPro, customBackgrounds)
const ( // MembershipTypeUnknown is a MembershipType of type Unknown. MembershipTypeUnknown MembershipType = iota // MembershipTypeLegacyCustomBackgrounds is a MembershipType of type LegacyCustomBackgrounds. MembershipTypeLegacyCustomBackgrounds // MembershipTypeLegacyWelcomerPro1 is a MembershipType of type LegacyWelcomerPro1. MembershipTypeLegacyWelcomerPro1 // MembershipTypeLegacyWelcomerPro3 is a MembershipType of type LegacyWelcomerPro3. MembershipTypeLegacyWelcomerPro3 // MembershipTypeLegacyWelcomerPro5 is a MembershipType of type LegacyWelcomerPro5. MembershipTypeLegacyWelcomerPro5 // 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) 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 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) 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 { 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) CreateNewMembership(ctx context.Context, arg *CreateNewMembershipParams) (*UserMemberships, error) CreateOrUpdateBorderwallGuildSettings(ctx context.Context, arg *CreateOrUpdateBorderwallGuildSettingsParams) (*GuildSettingsBorderwall, error) CreateOrUpdateBorderwallRequest(ctx context.Context, arg *CreateOrUpdateBorderwallRequestParams) (*BorderwallRequests, error) CreateOrUpdateFreeRolesGuildSettings(ctx context.Context, arg *CreateOrUpdateFreeRolesGuildSettingsParams) (*GuildSettingsFreeroles, error) CreateOrUpdateGuild(ctx context.Context, arg *CreateOrUpdateGuildParams) (*Guilds, 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) 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) CreateUser(ctx context.Context, arg *CreateUserParams) (*Users, error) CreateUserTransaction(ctx context.Context, arg *CreateUserTransactionParams) (*UserTransactions, error) CreateWelcomerBackground(ctx context.Context, arg *CreateWelcomerBackgroundParams) (*GuildSettingsWelcomerBackgrounds, error) CreateWelcomerDMsGuildSettings(ctx context.Context, arg *CreateWelcomerDMsGuildSettingsParams) (*GuildSettingsWelcomerDms, error) CreateWelcomerImagesGuildSettings(ctx context.Context, arg *CreateWelcomerImagesGuildSettingsParams) (*GuildSettingsWelcomerImages, error) CreateWelcomerTextGuildSettings(ctx context.Context, arg *CreateWelcomerTextGuildSettingsParams) (*GuildSettingsWelcomerText, error) DeletePatreonUser(ctx context.Context, patreonUserID int64) (int64, error) DeleteWelcomerBackground(ctx context.Context, imageUuid uuid.UUID) (int64, 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) 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) GetPatreonUser(ctx context.Context, patreonUserID int64) (*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) 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) GetUserTransactionsByUserID(ctx context.Context, userID int64) ([]*UserTransactions, error) GetWelcomerBackground(ctx context.Context, imageUuid uuid.UUID) (*GuildSettingsWelcomerBackgrounds, error) GetWelcomerBackgroundByGuildID(ctx context.Context, guildID int64) ([]*GuildSettingsWelcomerBackgrounds, error) GetWelcomerDMsGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerDms, error) GetWelcomerImagesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerImages, error) GetWelcomerTextGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerText, 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) UpdatePatreonUser(ctx context.Context, arg *UpdatePatreonUserParams) (int64, error) UpdateRuleGuildSettings(ctx context.Context, arg *UpdateRuleGuildSettingsParams) (int64, error) UpdateTempChannelsGuildSettings(ctx context.Context, arg *UpdateTempChannelsGuildSettingsParams) (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 (*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 (*Queries) CreateNewMembership ¶
func (q *Queries) CreateNewMembership(ctx context.Context, arg *CreateNewMembershipParams) (*UserMemberships, error)
func (*Queries) CreateOrUpdateBorderwallGuildSettings ¶
func (q *Queries) CreateOrUpdateBorderwallGuildSettings(ctx context.Context, arg *CreateOrUpdateBorderwallGuildSettingsParams) (*GuildSettingsBorderwall, error)
func (*Queries) CreateOrUpdateBorderwallRequest ¶
func (q *Queries) CreateOrUpdateBorderwallRequest(ctx context.Context, arg *CreateOrUpdateBorderwallRequestParams) (*BorderwallRequests, error)
func (*Queries) CreateOrUpdateFreeRolesGuildSettings ¶
func (q *Queries) CreateOrUpdateFreeRolesGuildSettings(ctx context.Context, arg *CreateOrUpdateFreeRolesGuildSettingsParams) (*GuildSettingsFreeroles, error)
func (*Queries) CreateOrUpdateGuild ¶
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) CreateOrUpdateTempChannelsGuildSettings ¶
func (q *Queries) CreateOrUpdateTempChannelsGuildSettings(ctx context.Context, arg *CreateOrUpdateTempChannelsGuildSettingsParams) (*GuildSettingsTempchannels, error)
func (*Queries) CreateOrUpdateUser ¶
func (*Queries) CreateOrUpdateUserTransaction ¶
func (q *Queries) CreateOrUpdateUserTransaction(ctx context.Context, arg *CreateOrUpdateUserTransactionParams) (*UserTransactions, error)
func (*Queries) CreateOrUpdateWelcomerDMsGuildSettings ¶
func (q *Queries) CreateOrUpdateWelcomerDMsGuildSettings(ctx context.Context, arg *CreateOrUpdateWelcomerDMsGuildSettingsParams) (*GuildSettingsWelcomerDms, error)
func (*Queries) CreateOrUpdateWelcomerImagesGuildSettings ¶
func (q *Queries) CreateOrUpdateWelcomerImagesGuildSettings(ctx context.Context, arg *CreateOrUpdateWelcomerImagesGuildSettingsParams) (*GuildSettingsWelcomerImages, error)
func (*Queries) CreateOrUpdateWelcomerTextGuildSettings ¶
func (q *Queries) CreateOrUpdateWelcomerTextGuildSettings(ctx context.Context, arg *CreateOrUpdateWelcomerTextGuildSettingsParams) (*GuildSettingsWelcomerText, 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) CreateUser ¶
func (*Queries) CreateUserTransaction ¶
func (q *Queries) CreateUserTransaction(ctx context.Context, arg *CreateUserTransactionParams) (*UserTransactions, error)
func (*Queries) CreateWelcomerBackground ¶
func (q *Queries) CreateWelcomerBackground(ctx context.Context, arg *CreateWelcomerBackgroundParams) (*GuildSettingsWelcomerBackgrounds, error)
func (*Queries) CreateWelcomerDMsGuildSettings ¶
func (q *Queries) CreateWelcomerDMsGuildSettings(ctx context.Context, arg *CreateWelcomerDMsGuildSettingsParams) (*GuildSettingsWelcomerDms, error)
func (*Queries) CreateWelcomerImagesGuildSettings ¶
func (q *Queries) CreateWelcomerImagesGuildSettings(ctx context.Context, arg *CreateWelcomerImagesGuildSettingsParams) (*GuildSettingsWelcomerImages, error)
func (*Queries) CreateWelcomerTextGuildSettings ¶
func (q *Queries) CreateWelcomerTextGuildSettings(ctx context.Context, arg *CreateWelcomerTextGuildSettingsParams) (*GuildSettingsWelcomerText, error)
func (*Queries) DeletePatreonUser ¶
func (*Queries) DeleteWelcomerBackground ¶
func (*Queries) GetBorderwallGuildSettings ¶
func (*Queries) GetBorderwallRequest ¶
func (*Queries) GetBorderwallRequestsByGuildIDUserID ¶
func (q *Queries) GetBorderwallRequestsByGuildIDUserID(ctx context.Context, arg *GetBorderwallRequestsByGuildIDUserIDParams) ([]*BorderwallRequests, error)
func (*Queries) GetCommandError ¶
func (*Queries) GetCommandUsage ¶
func (*Queries) GetFreeRolesGuildSettings ¶
func (*Queries) GetPatreonUser ¶
func (*Queries) GetPatreonUsersByUserID ¶
func (*Queries) GetRulesGuildSettings ¶
func (*Queries) GetScienceEvent ¶
func (*Queries) GetScienceGuildEvent ¶
func (*Queries) GetTempChannelsGuildSettings ¶
func (*Queries) GetUserMembership ¶
func (*Queries) GetUserMembershipsByGuildID ¶
func (*Queries) GetUserMembershipsByUserID ¶
func (*Queries) GetUserTransaction ¶
func (*Queries) GetUserTransactionsByUserID ¶
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) GetWelcomerBackground ¶
func (*Queries) GetWelcomerBackgroundByGuildID ¶
func (*Queries) GetWelcomerDMsGuildSettings ¶
func (*Queries) GetWelcomerImagesGuildSettings ¶
func (*Queries) GetWelcomerTextGuildSettings ¶
func (*Queries) UpdateBorderwallGuildSettings ¶
func (*Queries) UpdateBorderwallRequest ¶
func (*Queries) UpdateFreeRolesGuildSettings ¶
func (*Queries) UpdateGuild ¶
func (*Queries) UpdatePatreonUser ¶
func (*Queries) UpdateRuleGuildSettings ¶
func (*Queries) UpdateTempChannelsGuildSettings ¶
func (*Queries) UpdateUser ¶
func (*Queries) UpdateUserMembership ¶
func (*Queries) UpdateUserTransaction ¶
func (*Queries) UpdateWelcomerDMsGuildSettings ¶
func (*Queries) UpdateWelcomerImagesGuildSettings ¶
func (*Queries) UpdateWelcomerTextGuildSettings ¶
type ScienceCommandErrors ¶
type ScienceCommandUsages ¶
type ScienceCommandUsages struct { CommandUuid uuid.UUID `json:"command_uuid"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_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) 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 ScienceGuildEventType ¶
type ScienceGuildEventType int32
ENUM(unknown, join, leave, userJoin, userLeave, userWelcomed, timeRoleGiven, borderwallChallenge, borderwallCompleted, tempChannelCreated, membershipReceived, membershipRemoved)
const ( // ScienceGuildEventTypeUnknown is a ScienceGuildEventType of type Unknown. ScienceGuildEventTypeUnknown ScienceGuildEventType = iota // ScienceGuildEventTypeJoin is a ScienceGuildEventType of type Join. ScienceGuildEventTypeJoin // ScienceGuildEventTypeLeave is a ScienceGuildEventType of type Leave. ScienceGuildEventTypeLeave // 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) 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 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) 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 UpdateBorderwallGuildSettingsParams ¶
type UpdateBorderwallGuildSettingsParams struct { GuildID int64 `json:"guild_id"` ToggleEnabled bool `json:"toggle_enabled"` 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 UpdateGuildParams ¶
type UpdateGuildParams struct { GuildID int64 `json:"guild_id"` Name string `json:"name"` 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 UpdatePatreonUserParams ¶
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 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 UpdateUserTransactionParams ¶
type UpdateUserTransactionParams struct { TransactionID string `json:"transaction_id"` UserID int64 `json:"user_id"` PlatformType int32 `json:"platform_type"` TransactionID_2 string `json:"transaction_id_2"` TransactionStatus int32 `json:"transaction_status"` CurrencyCode string `json:"currency_code"` Amount int32 `json:"amount"` }
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 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 int32 `json:"amount"` }
Source Files ¶
- database.go
- database_enum.go
- db.go
- guild_borderwall_requests_query.sql.go
- guild_settings_borderwall_query.sql.go
- guild_settings_freeroles_query.sql.go
- guild_settings_rules_query.sql.go
- guild_settings_tempchannels_query.sql.go
- guild_settings_welcomer_backgrounds_query.sql.go
- guild_settings_welcomer_dms_query.sql.go
- guild_settings_welcomer_images_query.sql.go
- guild_settings_welcomer_text_query.sql.go
- guilds_query.sql.go
- models.go
- patreon_users_query.sql.go
- querier.go
- science_command_errors_query.sql.go
- science_command_usages_query.sql.go
- science_events_query.sql.go
- science_guild_events_query.sql.go
- user_memberships_logic.go
- user_memberships_query.sql.go
- user_transactions_query.sql.go
- users_query.sql.go