Documentation ¶
Index ¶
- type CustomBot
- type CustomCommand
- type DBTX
- type DeleteCustomCommandParams
- type DeleteKVEntryParams
- type DeleteSavedMessageForCreatorParams
- type DeleteSavedMessageForGuildParams
- type DeleteScheduledMessageParams
- type EmbedLink
- type Entitlement
- type GetCustomCommandByNameParams
- type GetCustomCommandParams
- type GetEntitlementParams
- type GetKVEntryParams
- type GetMessageActionSetParams
- type GetSavedMessageForGuildParams
- type GetScheduledMessageParams
- type Image
- type IncreaseKVEntryParams
- type InsertCustomCommandParams
- type InsertEmbedLinkParams
- type InsertImageParams
- type InsertMessageActionSetParams
- type InsertSavedMessageParams
- type InsertScheduledMessageParams
- type InsertSessionParams
- type InsertSharedMessageParams
- type KvEntry
- type MessageActionSet
- type Queries
- func (q *Queries) CountCustomCommands(ctx context.Context, guildID string) (int64, error)
- func (q *Queries) CountKVEntries(ctx context.Context, guildID string) (int64, error)
- func (q *Queries) DeleteCustomBot(ctx context.Context, guildID string) (CustomBot, error)
- func (q *Queries) DeleteCustomCommand(ctx context.Context, arg DeleteCustomCommandParams) (CustomCommand, error)
- func (q *Queries) DeleteExpiredSharedMessages(ctx context.Context, expiresAt time.Time) error
- func (q *Queries) DeleteKVEntry(ctx context.Context, arg DeleteKVEntryParams) (KvEntry, error)
- func (q *Queries) DeleteMessageActionSetsForMessage(ctx context.Context, messageID string) error
- func (q *Queries) DeleteSavedMessageForCreator(ctx context.Context, arg DeleteSavedMessageForCreatorParams) error
- func (q *Queries) DeleteSavedMessageForGuild(ctx context.Context, arg DeleteSavedMessageForGuildParams) error
- func (q *Queries) DeleteScheduledMessage(ctx context.Context, arg DeleteScheduledMessageParams) error
- func (q *Queries) DeleteSession(ctx context.Context, tokenHash string) error
- func (q *Queries) DeleteUser(ctx context.Context, id string) error
- func (q *Queries) GetActiveEntitlementsForGuild(ctx context.Context, guildID sql.NullString) ([]Entitlement, error)
- func (q *Queries) GetActiveEntitlementsForUser(ctx context.Context, userID sql.NullString) ([]Entitlement, error)
- func (q *Queries) GetCustomBot(ctx context.Context, id string) (CustomBot, error)
- func (q *Queries) GetCustomBotByGuildID(ctx context.Context, guildID string) (CustomBot, error)
- func (q *Queries) GetCustomBots(ctx context.Context) ([]CustomBot, error)
- func (q *Queries) GetCustomCommand(ctx context.Context, arg GetCustomCommandParams) (CustomCommand, error)
- func (q *Queries) GetCustomCommandByName(ctx context.Context, arg GetCustomCommandByNameParams) (CustomCommand, error)
- func (q *Queries) GetCustomCommands(ctx context.Context, guildID string) ([]CustomCommand, error)
- func (q *Queries) GetDueScheduledMessages(ctx context.Context, nextAt time.Time) ([]ScheduledMessage, error)
- func (q *Queries) GetEmbedLink(ctx context.Context, id string) (EmbedLink, error)
- func (q *Queries) GetEntitlement(ctx context.Context, arg GetEntitlementParams) (Entitlement, error)
- func (q *Queries) GetEntitlements(ctx context.Context) ([]Entitlement, error)
- func (q *Queries) GetImage(ctx context.Context, id string) (Image, error)
- func (q *Queries) GetKVEntry(ctx context.Context, arg GetKVEntryParams) (KvEntry, error)
- func (q *Queries) GetMessageActionSet(ctx context.Context, arg GetMessageActionSetParams) (MessageActionSet, error)
- func (q *Queries) GetMessageActionSets(ctx context.Context, messageID string) ([]MessageActionSet, error)
- func (q *Queries) GetSavedMessageForGuild(ctx context.Context, arg GetSavedMessageForGuildParams) (SavedMessage, error)
- func (q *Queries) GetSavedMessagesForCreator(ctx context.Context, creatorID string) ([]SavedMessage, error)
- func (q *Queries) GetSavedMessagesForGuild(ctx context.Context, guildID sql.NullString) ([]SavedMessage, error)
- func (q *Queries) GetScheduledMessage(ctx context.Context, arg GetScheduledMessageParams) (ScheduledMessage, error)
- func (q *Queries) GetScheduledMessages(ctx context.Context, guildID string) ([]ScheduledMessage, error)
- func (q *Queries) GetSession(ctx context.Context, tokenHash string) (Session, error)
- func (q *Queries) GetSessionsForUser(ctx context.Context, userID string) ([]Session, error)
- func (q *Queries) GetSharedMessage(ctx context.Context, id string) (SharedMessage, error)
- func (q *Queries) GetUser(ctx context.Context, id string) (User, error)
- func (q *Queries) IncreaseKVEntry(ctx context.Context, arg IncreaseKVEntryParams) (KvEntry, error)
- func (q *Queries) InsertCustomCommand(ctx context.Context, arg InsertCustomCommandParams) (CustomCommand, error)
- func (q *Queries) InsertEmbedLink(ctx context.Context, arg InsertEmbedLinkParams) (EmbedLink, error)
- func (q *Queries) InsertImage(ctx context.Context, arg InsertImageParams) (Image, error)
- func (q *Queries) InsertMessageActionSet(ctx context.Context, arg InsertMessageActionSetParams) (MessageActionSet, error)
- func (q *Queries) InsertSavedMessage(ctx context.Context, arg InsertSavedMessageParams) (SavedMessage, error)
- func (q *Queries) InsertScheduledMessage(ctx context.Context, arg InsertScheduledMessageParams) (ScheduledMessage, error)
- func (q *Queries) InsertSession(ctx context.Context, arg InsertSessionParams) (Session, error)
- func (q *Queries) InsertSharedMessage(ctx context.Context, arg InsertSharedMessageParams) (SharedMessage, error)
- func (q *Queries) SearchKVEntries(ctx context.Context, arg SearchKVEntriesParams) ([]KvEntry, error)
- func (q *Queries) SetCustomBotHandledFirstInteraction(ctx context.Context, id string) error
- func (q *Queries) SetCustomCommandsDeployedAt(ctx context.Context, arg SetCustomCommandsDeployedAtParams) (CustomCommand, error)
- func (q *Queries) SetKVEntry(ctx context.Context, arg SetKVEntryParams) error
- func (q *Queries) UpdateCustomBotPresence(ctx context.Context, arg UpdateCustomBotPresenceParams) (CustomBot, error)
- func (q *Queries) UpdateCustomBotTokenInvalid(ctx context.Context, arg UpdateCustomBotTokenInvalidParams) (CustomBot, error)
- func (q *Queries) UpdateCustomBotUser(ctx context.Context, arg UpdateCustomBotUserParams) (CustomBot, error)
- func (q *Queries) UpdateCustomCommand(ctx context.Context, arg UpdateCustomCommandParams) (CustomCommand, error)
- func (q *Queries) UpdateEntitlementConsumedGuildID(ctx context.Context, arg UpdateEntitlementConsumedGuildIDParams) (Entitlement, error)
- func (q *Queries) UpdateSavedMessageForCreator(ctx context.Context, arg UpdateSavedMessageForCreatorParams) (SavedMessage, error)
- func (q *Queries) UpdateSavedMessageForGuild(ctx context.Context, arg UpdateSavedMessageForGuildParams) (SavedMessage, error)
- func (q *Queries) UpdateScheduledMessage(ctx context.Context, arg UpdateScheduledMessageParams) (ScheduledMessage, error)
- func (q *Queries) UpdateScheduledMessageEnabled(ctx context.Context, arg UpdateScheduledMessageEnabledParams) (ScheduledMessage, error)
- func (q *Queries) UpdateScheduledMessageNextAt(ctx context.Context, arg UpdateScheduledMessageNextAtParams) (ScheduledMessage, error)
- func (q *Queries) UpsertCustomBot(ctx context.Context, arg UpsertCustomBotParams) (CustomBot, error)
- func (q *Queries) UpsertEntitlement(ctx context.Context, arg UpsertEntitlementParams) (Entitlement, error)
- func (q *Queries) UpsertUser(ctx context.Context, arg UpsertUserParams) (User, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type SavedMessage
- type ScheduledMessage
- type SearchKVEntriesParams
- type Session
- type SetCustomCommandsDeployedAtParams
- type SetKVEntryParams
- type SharedMessage
- type UpdateCustomBotPresenceParams
- type UpdateCustomBotTokenInvalidParams
- type UpdateCustomBotUserParams
- type UpdateCustomCommandParams
- type UpdateEntitlementConsumedGuildIDParams
- type UpdateSavedMessageForCreatorParams
- type UpdateSavedMessageForGuildParams
- type UpdateScheduledMessageEnabledParams
- type UpdateScheduledMessageNextAtParams
- type UpdateScheduledMessageParams
- type UpsertCustomBotParams
- type UpsertEntitlementParams
- type UpsertUserParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomBot ¶
type CustomBot struct { ID string GuildID string ApplicationID string Token string PublicKey string UserID string UserName string UserDiscriminator string UserAvatar sql.NullString HandledFirstInteraction bool CreatedAt time.Time TokenInvalid bool GatewayStatus string GatewayActivityType sql.NullInt16 GatewayActivityName sql.NullString GatewayActivityState sql.NullString GatewayActivityUrl sql.NullString }
type CustomCommand ¶
type DeleteKVEntryParams ¶
type DeleteSavedMessageForGuildParams ¶
type DeleteSavedMessageForGuildParams struct { ID string GuildID sql.NullString }
type EmbedLink ¶
type EmbedLink struct { ID string Url string ThemeColor sql.NullString OgTitle sql.NullString OgSiteName sql.NullString OgDescription sql.NullString OgImage sql.NullString OeType sql.NullString OeAuthorName sql.NullString OeAuthorUrl sql.NullString OeProviderName sql.NullString OeProviderUrl sql.NullString TwCard sql.NullString ExpiresAt sql.NullTime CreatedAt time.Time }
type Entitlement ¶
type GetCustomCommandParams ¶
type GetEntitlementParams ¶
type GetEntitlementParams struct { ID string UserID sql.NullString }
type GetKVEntryParams ¶
type GetSavedMessageForGuildParams ¶
type GetSavedMessageForGuildParams struct { GuildID sql.NullString ID string }
type IncreaseKVEntryParams ¶
type InsertCustomCommandParams ¶
type InsertCustomCommandParams struct { ID string GuildID string Name string Description string Parameters json.RawMessage Actions json.RawMessage DerivedPermissions pqtype.NullRawMessage CreatedAt time.Time UpdatedAt time.Time }
type InsertEmbedLinkParams ¶
type InsertEmbedLinkParams struct { ID string Url string ThemeColor sql.NullString OgTitle sql.NullString OgSiteName sql.NullString OgDescription sql.NullString OgImage sql.NullString OeType sql.NullString OeAuthorName sql.NullString OeAuthorUrl sql.NullString OeProviderName sql.NullString OeProviderUrl sql.NullString TwCard sql.NullString ExpiresAt sql.NullTime CreatedAt time.Time }
type InsertImageParams ¶
type InsertMessageActionSetParams ¶
type InsertMessageActionSetParams struct { ID string MessageID string SetID string Actions json.RawMessage DerivedPermissions pqtype.NullRawMessage Ephemeral bool }
type InsertSavedMessageParams ¶
type InsertSavedMessageParams struct { ID string CreatorID string GuildID sql.NullString UpdatedAt time.Time Name string Description sql.NullString Data json.RawMessage }
type InsertScheduledMessageParams ¶
type InsertScheduledMessageParams struct { ID string CreatorID string GuildID string ChannelID string MessageID sql.NullString ThreadName sql.NullString SavedMessageID string Name string Description sql.NullString CronExpression sql.NullString CronTimezone sql.NullString StartAt time.Time EndAt sql.NullTime NextAt time.Time OnlyOnce bool Enabled bool CreatedAt time.Time UpdatedAt time.Time }
type InsertSessionParams ¶
type InsertSharedMessageParams ¶
type InsertSharedMessageParams struct {}
type MessageActionSet ¶
type MessageActionSet struct { ID string MessageID string SetID string Actions json.RawMessage DerivedPermissions pqtype.NullRawMessage LastUsedAt time.Time Ephemeral bool }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CountCustomCommands ¶
func (*Queries) CountKVEntries ¶
func (*Queries) DeleteCustomBot ¶
func (*Queries) DeleteCustomCommand ¶
func (q *Queries) DeleteCustomCommand(ctx context.Context, arg DeleteCustomCommandParams) (CustomCommand, error)
func (*Queries) DeleteExpiredSharedMessages ¶
func (*Queries) DeleteKVEntry ¶
func (*Queries) DeleteMessageActionSetsForMessage ¶
func (*Queries) DeleteSavedMessageForCreator ¶
func (q *Queries) DeleteSavedMessageForCreator(ctx context.Context, arg DeleteSavedMessageForCreatorParams) error
func (*Queries) DeleteSavedMessageForGuild ¶
func (q *Queries) DeleteSavedMessageForGuild(ctx context.Context, arg DeleteSavedMessageForGuildParams) error
func (*Queries) DeleteScheduledMessage ¶
func (q *Queries) DeleteScheduledMessage(ctx context.Context, arg DeleteScheduledMessageParams) error
func (*Queries) DeleteSession ¶
func (*Queries) GetActiveEntitlementsForGuild ¶
func (q *Queries) GetActiveEntitlementsForGuild(ctx context.Context, guildID sql.NullString) ([]Entitlement, error)
func (*Queries) GetActiveEntitlementsForUser ¶
func (q *Queries) GetActiveEntitlementsForUser(ctx context.Context, userID sql.NullString) ([]Entitlement, error)
func (*Queries) GetCustomBot ¶
func (*Queries) GetCustomBotByGuildID ¶
func (*Queries) GetCustomBots ¶
func (*Queries) GetCustomCommand ¶
func (q *Queries) GetCustomCommand(ctx context.Context, arg GetCustomCommandParams) (CustomCommand, error)
func (*Queries) GetCustomCommandByName ¶
func (q *Queries) GetCustomCommandByName(ctx context.Context, arg GetCustomCommandByNameParams) (CustomCommand, error)
func (*Queries) GetCustomCommands ¶
func (*Queries) GetDueScheduledMessages ¶
func (*Queries) GetEmbedLink ¶
func (*Queries) GetEntitlement ¶
func (q *Queries) GetEntitlement(ctx context.Context, arg GetEntitlementParams) (Entitlement, error)
func (*Queries) GetEntitlements ¶
func (q *Queries) GetEntitlements(ctx context.Context) ([]Entitlement, error)
func (*Queries) GetKVEntry ¶
func (*Queries) GetMessageActionSet ¶
func (q *Queries) GetMessageActionSet(ctx context.Context, arg GetMessageActionSetParams) (MessageActionSet, error)
func (*Queries) GetMessageActionSets ¶
func (*Queries) GetSavedMessageForGuild ¶
func (q *Queries) GetSavedMessageForGuild(ctx context.Context, arg GetSavedMessageForGuildParams) (SavedMessage, error)
func (*Queries) GetSavedMessagesForCreator ¶
func (*Queries) GetSavedMessagesForGuild ¶
func (q *Queries) GetSavedMessagesForGuild(ctx context.Context, guildID sql.NullString) ([]SavedMessage, error)
func (*Queries) GetScheduledMessage ¶
func (q *Queries) GetScheduledMessage(ctx context.Context, arg GetScheduledMessageParams) (ScheduledMessage, error)
func (*Queries) GetScheduledMessages ¶
func (*Queries) GetSession ¶
func (*Queries) GetSessionsForUser ¶
func (*Queries) GetSharedMessage ¶
func (*Queries) IncreaseKVEntry ¶
func (*Queries) InsertCustomCommand ¶
func (q *Queries) InsertCustomCommand(ctx context.Context, arg InsertCustomCommandParams) (CustomCommand, error)
func (*Queries) InsertEmbedLink ¶
func (*Queries) InsertImage ¶
func (*Queries) InsertMessageActionSet ¶
func (q *Queries) InsertMessageActionSet(ctx context.Context, arg InsertMessageActionSetParams) (MessageActionSet, error)
func (*Queries) InsertSavedMessage ¶
func (q *Queries) InsertSavedMessage(ctx context.Context, arg InsertSavedMessageParams) (SavedMessage, error)
func (*Queries) InsertScheduledMessage ¶
func (q *Queries) InsertScheduledMessage(ctx context.Context, arg InsertScheduledMessageParams) (ScheduledMessage, error)
func (*Queries) InsertSession ¶
func (*Queries) InsertSharedMessage ¶
func (q *Queries) InsertSharedMessage(ctx context.Context, arg InsertSharedMessageParams) (SharedMessage, error)
func (*Queries) SearchKVEntries ¶
func (*Queries) SetCustomBotHandledFirstInteraction ¶
func (*Queries) SetCustomCommandsDeployedAt ¶
func (q *Queries) SetCustomCommandsDeployedAt(ctx context.Context, arg SetCustomCommandsDeployedAtParams) (CustomCommand, error)
func (*Queries) SetKVEntry ¶
func (q *Queries) SetKVEntry(ctx context.Context, arg SetKVEntryParams) error
func (*Queries) UpdateCustomBotPresence ¶
func (*Queries) UpdateCustomBotTokenInvalid ¶
func (*Queries) UpdateCustomBotUser ¶
func (*Queries) UpdateCustomCommand ¶
func (q *Queries) UpdateCustomCommand(ctx context.Context, arg UpdateCustomCommandParams) (CustomCommand, error)
func (*Queries) UpdateEntitlementConsumedGuildID ¶
func (q *Queries) UpdateEntitlementConsumedGuildID(ctx context.Context, arg UpdateEntitlementConsumedGuildIDParams) (Entitlement, error)
func (*Queries) UpdateSavedMessageForCreator ¶
func (q *Queries) UpdateSavedMessageForCreator(ctx context.Context, arg UpdateSavedMessageForCreatorParams) (SavedMessage, error)
func (*Queries) UpdateSavedMessageForGuild ¶
func (q *Queries) UpdateSavedMessageForGuild(ctx context.Context, arg UpdateSavedMessageForGuildParams) (SavedMessage, error)
func (*Queries) UpdateScheduledMessage ¶
func (q *Queries) UpdateScheduledMessage(ctx context.Context, arg UpdateScheduledMessageParams) (ScheduledMessage, error)
func (*Queries) UpdateScheduledMessageEnabled ¶
func (q *Queries) UpdateScheduledMessageEnabled(ctx context.Context, arg UpdateScheduledMessageEnabledParams) (ScheduledMessage, error)
func (*Queries) UpdateScheduledMessageNextAt ¶
func (q *Queries) UpdateScheduledMessageNextAt(ctx context.Context, arg UpdateScheduledMessageNextAtParams) (ScheduledMessage, error)
func (*Queries) UpsertCustomBot ¶
func (*Queries) UpsertEntitlement ¶
func (q *Queries) UpsertEntitlement(ctx context.Context, arg UpsertEntitlementParams) (Entitlement, error)
func (*Queries) UpsertUser ¶
type SavedMessage ¶
type SavedMessage struct { ID string CreatorID string GuildID sql.NullString UpdatedAt time.Time Name string Description sql.NullString Data json.RawMessage }
type ScheduledMessage ¶
type ScheduledMessage struct { ID string CreatorID string GuildID string ChannelID string MessageID sql.NullString SavedMessageID string Name string Description sql.NullString CronExpression sql.NullString OnlyOnce bool StartAt time.Time EndAt sql.NullTime NextAt time.Time Enabled bool CreatedAt time.Time UpdatedAt time.Time CronTimezone sql.NullString ThreadName sql.NullString }
type SearchKVEntriesParams ¶
type SetKVEntryParams ¶
type SharedMessage ¶
type SharedMessage struct {}
type UpdateCustomBotPresenceParams ¶
type UpdateCustomBotPresenceParams struct { GuildID string GatewayStatus string GatewayActivityType sql.NullInt16 GatewayActivityName sql.NullString GatewayActivityState sql.NullString GatewayActivityUrl sql.NullString }
type UpdateCustomBotUserParams ¶
type UpdateCustomBotUserParams struct { GuildID string UserName string UserDiscriminator string UserAvatar sql.NullString }
type UpdateCustomCommandParams ¶
type UpdateCustomCommandParams struct { ID string GuildID string Name string Description string Enabled bool Actions json.RawMessage Parameters json.RawMessage DerivedPermissions pqtype.NullRawMessage UpdatedAt time.Time }
type UpdateEntitlementConsumedGuildIDParams ¶
type UpdateEntitlementConsumedGuildIDParams struct { ID string ConsumedGuildID sql.NullString }
type UpdateSavedMessageForCreatorParams ¶
type UpdateSavedMessageForCreatorParams struct { ID string CreatorID string UpdatedAt time.Time Name string Description sql.NullString Data json.RawMessage }
type UpdateSavedMessageForGuildParams ¶
type UpdateSavedMessageForGuildParams struct { ID string GuildID sql.NullString UpdatedAt time.Time Name string Description sql.NullString Data json.RawMessage }
type UpdateScheduledMessageParams ¶
type UpdateScheduledMessageParams struct { ID string GuildID string ChannelID string MessageID sql.NullString ThreadName sql.NullString SavedMessageID string Name string Description sql.NullString CronExpression sql.NullString NextAt time.Time StartAt time.Time EndAt sql.NullTime OnlyOnce bool Enabled bool UpdatedAt time.Time CronTimezone sql.NullString }
type UpsertCustomBotParams ¶
type UpsertEntitlementParams ¶
type UpsertUserParams ¶
type UpsertUserParams struct { ID string Name string Discriminator string Avatar sql.NullString }
Click to show internal directories.
Click to hide internal directories.