Documentation ¶
Index ¶
- Constants
- Variables
- func MustConvertToJSONB(v interface{}) pgtype.JSONB
- type BorderwallRequests
- type CreateAutoRolesGuildSettingsParams
- type CreateBorderwallGuildSettingsParams
- type CreateBorderwallRequestParams
- type CreateCommandErrorParams
- type CreateCommandUsageParams
- type CreateFreeRolesGuildSettingsParams
- type CreateGuildInvitesParams
- type CreateGuildParams
- type CreateLeaverGuildSettingsParams
- type CreateNewMembershipParams
- type CreateOrUpdateAutoRolesGuildSettingsParams
- type CreateOrUpdateBorderwallGuildSettingsParams
- type CreateOrUpdateFreeRolesGuildSettingsParams
- type CreateOrUpdateGuildInvitesParams
- type CreateOrUpdateGuildParams
- type CreateOrUpdateLeaverGuildSettingsParams
- type CreateOrUpdateNewMembershipParams
- type CreateOrUpdatePatreonUserParams
- type CreateOrUpdateRulesGuildSettingsParams
- type CreateOrUpdateTempChannelsGuildSettingsParams
- type CreateOrUpdateTimeRolesGuildSettingsParams
- type CreateOrUpdateUserParams
- type CreateOrUpdateUserTransactionParams
- type CreateOrUpdateWelcomerDMsGuildSettingsParams
- type CreateOrUpdateWelcomerImagesGuildSettingsParams
- type CreateOrUpdateWelcomerTextGuildSettingsParams
- type CreatePatreonUserParams
- type CreateRulesGuildSettingsParams
- type CreateScienceEventParams
- type CreateScienceGuildEventParams
- type CreateTempChannelsGuildSettingsParams
- type CreateTimeRolesGuildSettingsParams
- type CreateUserParams
- type CreateUserTransactionParams
- type CreateWelcomerDMsGuildSettingsParams
- type CreateWelcomerImagesGuildSettingsParams
- type CreateWelcomerImagesParams
- type CreateWelcomerTextGuildSettingsParams
- type DBTX
- type DeleteGuildInvitesParams
- type DeletePatreonUserParams
- type GetBorderwallRequestsByGuildIDUserIDParams
- type GetCommandErrorRow
- type GetUserMembershipRow
- type GetUserMembershipsByGuildIDRow
- type GetUserMembershipsByUserIDRow
- type GuildInvites
- type GuildSettingsAutoroles
- type GuildSettingsBorderwall
- type GuildSettingsFreeroles
- type GuildSettingsLeaver
- type GuildSettingsRules
- type GuildSettingsTempchannels
- type GuildSettingsTimeroles
- type GuildSettingsWelcomerDms
- type GuildSettingsWelcomerImages
- type GuildSettingsWelcomerText
- type Guilds
- type InsertBorderwallRequestParams
- type MembershipStatus
- type MembershipType
- type PatreonUsers
- type PlatformType
- type Querier
- type Queries
- func (q *Queries) CreateAutoRolesGuildSettings(ctx context.Context, arg CreateAutoRolesGuildSettingsParams) (*GuildSettingsAutoroles, error)
- 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) CreateGuildInvites(ctx context.Context, arg CreateGuildInvitesParams) (*GuildInvites, error)
- func (q *Queries) CreateLeaverGuildSettings(ctx context.Context, arg CreateLeaverGuildSettingsParams) (*GuildSettingsLeaver, error)
- func (q *Queries) CreateNewMembership(ctx context.Context, arg CreateNewMembershipParams) (*UserMemberships, error)
- func (q *Queries) CreateOrUpdateAutoRolesGuildSettings(ctx context.Context, arg CreateOrUpdateAutoRolesGuildSettingsParams) (*GuildSettingsAutoroles, error)
- func (q *Queries) CreateOrUpdateBorderwallGuildSettings(ctx context.Context, arg CreateOrUpdateBorderwallGuildSettingsParams) (*GuildSettingsBorderwall, 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) CreateOrUpdateGuildInvites(ctx context.Context, arg CreateOrUpdateGuildInvitesParams) (*GuildInvites, error)
- func (q *Queries) CreateOrUpdateLeaverGuildSettings(ctx context.Context, arg CreateOrUpdateLeaverGuildSettingsParams) (*GuildSettingsLeaver, 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) CreateOrUpdateTimeRolesGuildSettings(ctx context.Context, arg CreateOrUpdateTimeRolesGuildSettingsParams) (*GuildSettingsTimeroles, 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) CreateTimeRolesGuildSettings(ctx context.Context, arg CreateTimeRolesGuildSettingsParams) (*GuildSettingsTimeroles, 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) CreateWelcomerDMsGuildSettings(ctx context.Context, arg CreateWelcomerDMsGuildSettingsParams) (*GuildSettingsWelcomerDms, error)
- func (q *Queries) CreateWelcomerImages(ctx context.Context, arg CreateWelcomerImagesParams) (*WelcomerImages, 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) DeleteGuildInvites(ctx context.Context, arg DeleteGuildInvitesParams) (int64, error)
- func (q *Queries) DeletePatreonUser(ctx context.Context, arg DeletePatreonUserParams) (int64, error)
- func (q *Queries) DeleteUserMembership(ctx context.Context, membershipUuid uuid.UUID) (int64, error)
- func (q *Queries) DeleteUserTransaction(ctx context.Context, transactionUuid uuid.UUID) (int64, error)
- func (q *Queries) DeleteWelcomerImage(ctx context.Context, imageUuid uuid.UUID) (int64, error)
- func (q *Queries) GetAutoRolesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsAutoroles, 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) GetBorderwallRequestsByIPAddress(ctx context.Context, ipAddress pgtype.Inet) ([]*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) GetGuildInvites(ctx context.Context, guildID int64) ([]*GuildInvites, error)
- func (q *Queries) GetLeaverGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsLeaver, error)
- func (q *Queries) GetPatreonUser(ctx context.Context, patreonUserID int64) (*PatreonUsers, error)
- func (q *Queries) GetPatreonUsers(ctx context.Context) ([]*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) GetTimeRolesGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsTimeroles, 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) GetUserTransactionsByTransactionID(ctx context.Context, transactionID string) ([]*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) GetWelcomerDMsGuildSettings(ctx context.Context, guildID int64) (*GuildSettingsWelcomerDms, error)
- func (q *Queries) GetWelcomerImages(ctx context.Context, imageUuid uuid.UUID) (*WelcomerImages, error)
- func (q *Queries) GetWelcomerImagesByGuildId(ctx context.Context, guildID int64) ([]*WelcomerImages, 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) InsertBorderwallRequest(ctx context.Context, arg InsertBorderwallRequestParams) (*BorderwallRequests, error)
- func (q *Queries) UpdateAutoRolesGuildSettings(ctx context.Context, arg UpdateAutoRolesGuildSettingsParams) (int64, 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) UpdateLeaverGuildSettings(ctx context.Context, arg UpdateLeaverGuildSettingsParams) (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) UpdateTimeRolesGuildSettings(ctx context.Context, arg UpdateTimeRolesGuildSettingsParams) (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 UpdateAutoRolesGuildSettingsParams
- type UpdateBorderwallGuildSettingsParams
- type UpdateBorderwallRequestParams
- type UpdateFreeRolesGuildSettingsParams
- type UpdateGuildParams
- type UpdateLeaverGuildSettingsParams
- type UpdatePatreonUserParams
- type UpdateRuleGuildSettingsParams
- type UpdateTempChannelsGuildSettingsParams
- type UpdateTimeRolesGuildSettingsParams
- type UpdateUserMembershipParams
- type UpdateUserParams
- type UpdateUserTransactionParams
- type UpdateWelcomerDMsGuildSettingsParams
- type UpdateWelcomerImagesGuildSettingsParams
- type UpdateWelcomerTextGuildSettingsParams
- type UserMemberships
- type UserTransactions
- type Users
- type WelcomerImages
Constants ¶
const CreateAutoRolesGuildSettings = `` /* 184-byte string literal not displayed */
const CreateBorderwallGuildSettings = `` /* 374-byte string literal not displayed */
const CreateBorderwallRequest = `` /* 408-byte string literal not displayed */
const CreateCommandError = `` /* 191-byte string literal not displayed */
const CreateCommandUsage = `` /* 333-byte string literal not displayed */
const CreateFreeRolesGuildSettings = `` /* 184-byte string literal not displayed */
const CreateGuild = `` /* 297-byte string literal not displayed */
const CreateGuildInvites = `` /* 211-byte string literal not displayed */
const CreateLeaverGuildSettings = `` /* 218-byte string literal not displayed */
const CreateNewMembership = `` /* 405-byte string literal not displayed */
const CreateOrUpdateAutoRolesGuildSettings = `` /* 305-byte string literal not displayed */
const CreateOrUpdateBorderwallGuildSettings = `` /* 759-byte string literal not displayed */
const CreateOrUpdateFreeRolesGuildSettings = `` /* 305-byte string literal not displayed */
const CreateOrUpdateGuild = `` /* 608-byte string literal not displayed */
const CreateOrUpdateGuildInvites = `` /* 405-byte string literal not displayed */
const CreateOrUpdateLeaverGuildSettings = `` /* 393-byte string literal not displayed */
const CreateOrUpdateNewMembership = `` /* 739-byte string literal not displayed */
const CreateOrUpdatePatreonUser = `` /* 943-byte string literal not displayed */
const CreateOrUpdateRulesGuildSettings = `` /* 399-byte string literal not displayed */
const CreateOrUpdateTempChannelsGuildSettings = `` /* 633-byte string literal not displayed */
const CreateOrUpdateTimeRolesGuildSettings = `` /* 321-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 = `` /* 457-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 CreateTimeRolesGuildSettings = `` /* 192-byte string literal not displayed */
const CreateUser = `` /* 233-byte string literal not displayed */
const CreateUserTransaction = `` /* 400-byte string literal not displayed */
const CreateWelcomerDMsGuildSettings = `` /* 307-byte string literal not displayed */
const CreateWelcomerImages = `` /* 213-byte string literal not displayed */
const CreateWelcomerImagesGuildSettings = `` /* 594-byte string literal not displayed */
const CreateWelcomerTextGuildSettings = `` /* 231-byte string literal not displayed */
const DeleteGuildInvites = `-- name: DeleteGuildInvites :execrows
DELETE FROM
guild_invites
WHERE
invite_code = $1
AND guild_id = $2
`
const DeletePatreonUser = `-- name: DeletePatreonUser :execrows
DELETE FROM patreon_users
WHERE patreon_user_id = $1 AND user_id = $2
`
const DeleteUserMembership = `-- name: DeleteUserMembership :execrows
DELETE FROM
user_memberships
WHERE
membership_uuid = $1
`
const DeleteUserTransaction = `-- name: DeleteUserTransaction :execrows
DELETE FROM
user_transactions
WHERE
transaction_uuid = $1
`
const DeleteWelcomerImage = `-- name: DeleteWelcomerImage :execrows
DELETE FROM welcomer_images
WHERE image_uuid = $1
`
const GetAutoRolesGuildSettings = `` /* 141-byte string literal not displayed */
const GetBorderwallGuildSettings = `` /* 227-byte string literal not displayed */
const GetBorderwallRequest = `` /* 295-byte string literal not displayed */
const GetBorderwallRequestsByGuildIDUserID = `` /* 329-byte string literal not displayed */
const GetBorderwallRequestsByIPAddress = `` /* 306-byte string literal not displayed */
const GetCommandError = `` /* 464-byte string literal not displayed */
const GetCommandUsage = `` /* 194-byte string literal not displayed */
const GetFreeRolesGuildSettings = `` /* 141-byte string literal not displayed */
const GetGuild = `` /* 174-byte string literal not displayed */
const GetGuildInvites = `` /* 141-byte string literal not displayed */
const GetLeaverGuildSettings = `` /* 153-byte string literal not displayed */
const GetPatreonUser = `` /* 252-byte string literal not displayed */
const GetPatreonUsers = `` /* 223-byte string literal not displayed */
const GetPatreonUsersByUserID = `` /* 254-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 GetTimeRolesGuildSettings = `` /* 145-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 = `` /* 813-byte string literal not displayed */
const GetUserTransaction = `` /* 227-byte string literal not displayed */
const GetUserTransactionsByTransactionID = `` /* 267-byte string literal not displayed */
const GetUserTransactionsByUserID = `` /* 228-byte string literal not displayed */
const GetWelcomerDMsGuildSettings = `` /* 201-byte string literal not displayed */
const GetWelcomerImages = `` /* 145-byte string literal not displayed */
const GetWelcomerImagesByGuildId = `` /* 153-byte string literal not displayed */
const GetWelcomerImagesGuildSettings = `` /* 332-byte string literal not displayed */
const GetWelcomerTextGuildSettings = `` /* 166-byte string literal not displayed */
const InsertBorderwallRequest = `` /* 405-byte string literal not displayed */
const UpdateAutoRolesGuildSettings = `` /* 152-byte string literal not displayed */
const UpdateBorderwallGuildSettings = `` /* 283-byte string literal not displayed */
const UpdateBorderwallRequest = `` /* 357-byte string literal not displayed */
const UpdateFreeRolesGuildSettings = `` /* 152-byte string literal not displayed */
const UpdateGuild = `` /* 212-byte string literal not displayed */
const UpdateLeaverGuildSettings = `` /* 173-byte string literal not displayed */
const UpdatePatreonUser = `` /* 320-byte string literal not displayed */
const UpdateRuleGuildSettings = `` /* 172-byte string literal not displayed */
const UpdateTempChannelsGuildSettings = `` /* 249-byte string literal not displayed */
const UpdateTimeRolesGuildSettings = `` /* 156-byte string literal not displayed */
const UpdateUser = `` /* 158-byte string literal not displayed */
const UpdateUserMembership = `` /* 249-byte string literal not displayed */
const UpdateUserTransaction = `` /* 266-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 ¶
var ErrInvalidMembershipStatus = errors.New("not a valid MembershipStatus")
var ErrInvalidMembershipType = errors.New("not a valid MembershipType")
var ErrInvalidPlatformType = errors.New("not a valid PlatformType")
var ErrInvalidScienceEventType = errors.New("not a valid ScienceEventType")
var ErrInvalidScienceGuildEventType = errors.New("not a valid ScienceGuildEventType")
var ErrInvalidTransactionStatus = errors.New("not a valid TransactionStatus")
Functions ¶
func MustConvertToJSONB ¶
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 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 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 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"` 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 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 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 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 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 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 DeletePatreonUserParams ¶
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 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 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 (*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 (*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) CreateOrUpdateBorderwallGuildSettings ¶
func (q *Queries) CreateOrUpdateBorderwallGuildSettings(ctx context.Context, arg CreateOrUpdateBorderwallGuildSettingsParams) (*GuildSettingsBorderwall, error)
func (*Queries) CreateOrUpdateFreeRolesGuildSettings ¶
func (q *Queries) CreateOrUpdateFreeRolesGuildSettings(ctx context.Context, arg CreateOrUpdateFreeRolesGuildSettingsParams) (*GuildSettingsFreeroles, error)
func (*Queries) CreateOrUpdateGuild ¶
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) CreateOrUpdateTempChannelsGuildSettings ¶
func (q *Queries) CreateOrUpdateTempChannelsGuildSettings(ctx context.Context, arg CreateOrUpdateTempChannelsGuildSettingsParams) (*GuildSettingsTempchannels, error)
func (*Queries) CreateOrUpdateTimeRolesGuildSettings ¶
func (q *Queries) CreateOrUpdateTimeRolesGuildSettings(ctx context.Context, arg CreateOrUpdateTimeRolesGuildSettingsParams) (*GuildSettingsTimeroles, 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) CreateTimeRolesGuildSettings ¶
func (q *Queries) CreateTimeRolesGuildSettings(ctx context.Context, arg CreateTimeRolesGuildSettingsParams) (*GuildSettingsTimeroles, error)
func (*Queries) CreateUser ¶
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) 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) DeleteGuildInvites ¶
func (*Queries) DeletePatreonUser ¶
func (*Queries) DeleteUserMembership ¶
func (*Queries) DeleteUserTransaction ¶
func (*Queries) DeleteWelcomerImage ¶
func (*Queries) GetAutoRolesGuildSettings ¶
func (*Queries) GetBorderwallGuildSettings ¶
func (*Queries) GetBorderwallRequest ¶
func (*Queries) GetBorderwallRequestsByGuildIDUserID ¶
func (q *Queries) GetBorderwallRequestsByGuildIDUserID(ctx context.Context, arg GetBorderwallRequestsByGuildIDUserIDParams) ([]*BorderwallRequests, error)
func (*Queries) GetBorderwallRequestsByIPAddress ¶
func (*Queries) GetCommandError ¶
func (*Queries) GetCommandUsage ¶
func (*Queries) GetFreeRolesGuildSettings ¶
func (*Queries) GetGuildInvites ¶
func (*Queries) GetLeaverGuildSettings ¶
func (*Queries) GetPatreonUser ¶
func (*Queries) GetPatreonUsers ¶
func (q *Queries) GetPatreonUsers(ctx context.Context) ([]*PatreonUsers, error)
func (*Queries) GetPatreonUsersByUserID ¶
func (*Queries) GetRulesGuildSettings ¶
func (*Queries) GetScienceEvent ¶
func (*Queries) GetScienceGuildEvent ¶
func (*Queries) GetTempChannelsGuildSettings ¶
func (*Queries) GetTimeRolesGuildSettings ¶
func (*Queries) GetUserMembership ¶
func (*Queries) GetUserMembershipsByGuildID ¶
func (*Queries) GetUserMembershipsByUserID ¶
func (*Queries) GetUserTransaction ¶
func (*Queries) GetUserTransactionsByTransactionID ¶
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) GetWelcomerDMsGuildSettings ¶
func (*Queries) GetWelcomerImages ¶
func (*Queries) GetWelcomerImagesByGuildId ¶
func (*Queries) GetWelcomerImagesGuildSettings ¶
func (*Queries) GetWelcomerTextGuildSettings ¶
func (*Queries) InsertBorderwallRequest ¶
func (q *Queries) InsertBorderwallRequest(ctx context.Context, arg InsertBorderwallRequestParams) (*BorderwallRequests, error)
func (*Queries) UpdateAutoRolesGuildSettings ¶
func (*Queries) UpdateBorderwallGuildSettings ¶
func (*Queries) UpdateBorderwallRequest ¶
func (*Queries) UpdateFreeRolesGuildSettings ¶
func (*Queries) UpdateGuild ¶
func (*Queries) UpdateLeaverGuildSettings ¶
func (*Queries) UpdatePatreonUser ¶
func (*Queries) UpdateRuleGuildSettings ¶
func (*Queries) UpdateTempChannelsGuildSettings ¶
func (*Queries) UpdateTimeRolesGuildSettings ¶
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"` 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 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 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 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 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 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 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 { 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 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 string `json:"amount"` }
Source Files ¶
- database.go
- database_enum.go
- database_enum_utils.go
- db.go
- default_configuration.go
- guild_borderwall_requests_query.sql.go
- guild_invites_query.sql.go
- guild_settings_autoroles_query.sql.go
- guild_settings_borderwall_query.sql.go
- guild_settings_freeroles_query.sql.go
- guild_settings_leaver.sql.go
- guild_settings_rules_query.sql.go
- guild_settings_tempchannels_query.sql.go
- guild_settings_timeroles_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
- welcomer_images_query.sql.go