Documentation ¶
Index ¶
- type APIResponse
- type AssistantGenerateMessageRequestWire
- type AssistantGenerateMessageResponseDataWire
- type AssistantGenerateMessageResponseWire
- type AuthExchangeRequestWire
- type AuthExchangeResponseDataWire
- type AuthExchangeResponseWire
- type ConsumeEntitlementRequestWire
- type ConsumeEntitlementResponseWire
- type CustomBotConfigureRequestWire
- type CustomBotConfigureResponseWire
- type CustomBotDisableResponseDataWire
- type CustomBotDisableResponseWire
- type CustomBotGetResponseWire
- type CustomBotInfoWire
- type CustomBotPresenceWire
- type CustomBotUpdatePresenceRequestWire
- type CustomBotUpdatePresenceResponseWire
- type CustomCommandCreateRequestWire
- type CustomCommandCreateResponseWire
- type CustomCommandDeleteResponseWire
- type CustomCommandGetResponseWire
- type CustomCommandParameterWire
- type CustomCommandUpdateRequestWire
- type CustomCommandUpdateResponseWire
- type CustomCommandWire
- type CustomCommandsDeployResponseWire
- type CustomCommandsListResponseWire
- type EmbedLinkCreateRequestWire
- type EmbedLinkCreateResponseDataWire
- type EmbedLinkCreateResponseWire
- type EmbedLinkOEmbedResponseWire
- type Error
- type GetGuildBrandingResponseWire
- type GetGuildResponseWire
- type GetImageResponseWire
- type GetPremiumPlanFeaturesResponseDataWire
- type GetPremiumPlanFeaturesResponseWire
- type GuildBrandingWire
- type GuildChannelWire
- type GuildEmojiWire
- type GuildRoleWire
- type GuildStickerWire
- type GuildWire
- type ImageWire
- type ListChannelsResponseWire
- type ListEmojisResponseWire
- type ListGuildsResponseWire
- type ListPremiumEntitlementsResponseDataWire
- type ListPremiumEntitlementsResponseWire
- type ListRolesResponseWire
- type ListStickersResponseWire
- type MessageAttachmentWire
- type MessageRestoreFromChannelRequestWire
- type MessageRestoreFromWebhookRequestWire
- type MessageRestoreResponseDataWire
- type MessageRestoreResponseWire
- type MessageSendResponseDataWire
- type MessageSendResponseWire
- type MessageSendToChannelRequestWire
- type MessageSendToWebhookRequestWire
- type PremiumEntitlementWire
- type SavedMessageCreateRequestWire
- type SavedMessageCreateResponseWire
- type SavedMessageDeleteResponseWire
- type SavedMessageGetResponseWire
- type SavedMessageImportDataWire
- type SavedMessageListResponseWire
- type SavedMessageUpdateRequestWire
- type SavedMessageUpdateResponseWire
- type SavedMessageWire
- type SavedMessagesImportRequestWire
- type SavedMessagesImportResponseWire
- type ScheduledMessageCreateRequestWire
- type ScheduledMessageCreateResponseWire
- type ScheduledMessageDeleteResponseWire
- type ScheduledMessageGetResponseWire
- type ScheduledMessageListResponseWire
- type ScheduledMessageUpdateRequestWire
- type ScheduledMessageUpdateResponseWire
- type ScheduledMessageWire
- type SharedMessageCreateRequestWire
- type SharedMessageCreateResponseWire
- type SharedMessageGetResponseWire
- type SharedMessageWire
- type UploadImageResponseWire
- type UserResponseWire
- type UserWire
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type AssistantGenerateMessageRequestWire ¶
type AssistantGenerateMessageRequestWire struct { BaseData null.String `json:"base_data"` Prompt string `json:"prompt"` }
type AssistantGenerateMessageResponseDataWire ¶
type AssistantGenerateMessageResponseDataWire struct {
Data string `json:"data"`
}
type AssistantGenerateMessageResponseWire ¶
type AssistantGenerateMessageResponseWire APIResponse[AssistantGenerateMessageResponseDataWire]
type AuthExchangeRequestWire ¶
type AuthExchangeRequestWire struct {
Code string `json:"code"`
}
type AuthExchangeResponseWire ¶
type AuthExchangeResponseWire APIResponse[AuthExchangeResponseDataWire]
type ConsumeEntitlementRequestWire ¶
type ConsumeEntitlementRequestWire struct {
GuildID string `json:"guild_id"`
}
func (ConsumeEntitlementRequestWire) Validate ¶
func (req ConsumeEntitlementRequestWire) Validate() error
type ConsumeEntitlementResponseWire ¶
type ConsumeEntitlementResponseWire APIResponse[struct{}]
type CustomBotConfigureRequestWire ¶
type CustomBotConfigureRequestWire struct {
Token string `json:"token"`
}
func (CustomBotConfigureRequestWire) Validate ¶
func (req CustomBotConfigureRequestWire) Validate() error
type CustomBotConfigureResponseWire ¶
type CustomBotConfigureResponseWire APIResponse[CustomBotInfoWire]
type CustomBotDisableResponseDataWire ¶
type CustomBotDisableResponseDataWire struct{}
type CustomBotDisableResponseWire ¶
type CustomBotDisableResponseWire APIResponse[CustomBotDisableResponseDataWire]
type CustomBotGetResponseWire ¶
type CustomBotGetResponseWire APIResponse[CustomBotInfoWire]
type CustomBotInfoWire ¶
type CustomBotInfoWire struct { ID string `json:"id"` ApplicationID string `json:"application_id"` UserID string `json:"user_id"` UserName string `json:"user_name"` UserDiscriminator string `json:"user_discriminator"` UserAvatar null.String `json:"user_avatar"` TokenValid bool `json:"token_valid"` IsMember bool `json:"is_member"` HasPermissions bool `json:"has_permissions"` HandledFirstInteraction bool `json:"handled_first_interaction"` InviteURL string `json:"invite_url"` InteractionEndpointURL string `json:"interaction_endpoint_url"` GatewayStatus string `json:"gateway_status"` GatewayActivityType null.Int `json:"gateway_activity_type"` GatewayActivityName null.String `json:"gateway_activity_name"` GatewayActivityState null.String `json:"gateway_activity_state"` GatewayActivityURL null.String `json:"gateway_activity_url"` }
type CustomBotPresenceWire ¶
type CustomBotPresenceWire struct { GatewayStatus string `json:"gateway_status"` GatewayActivityType int `json:"gateway_activity_type,omitempty"` GatewayActivityName string `json:"gateway_activity_name,omitempty"` GatewayActivityState string `json:"gateway_activity_state,omitempty"` GatewayActivityURL string `json:"gateway_activity_url,omitempty"` }
type CustomBotUpdatePresenceRequestWire ¶
type CustomBotUpdatePresenceRequestWire CustomBotPresenceWire
func (CustomBotUpdatePresenceRequestWire) Validate ¶
func (req CustomBotUpdatePresenceRequestWire) Validate() error
type CustomBotUpdatePresenceResponseWire ¶
type CustomBotUpdatePresenceResponseWire APIResponse[CustomBotPresenceWire]
type CustomCommandCreateRequestWire ¶
type CustomCommandCreateRequestWire struct { Name string `json:"name"` Description string `json:"description"` Parameters []CustomCommandParameterWire `json:"parameters"` Actions json.RawMessage `json:"actions"` }
func (*CustomCommandCreateRequestWire) Normalize ¶
func (r *CustomCommandCreateRequestWire) Normalize()
func (CustomCommandCreateRequestWire) Validate ¶
func (r CustomCommandCreateRequestWire) Validate() error
type CustomCommandCreateResponseWire ¶
type CustomCommandCreateResponseWire APIResponse[CustomCommandWire]
type CustomCommandDeleteResponseWire ¶
type CustomCommandDeleteResponseWire APIResponse[struct{}]
type CustomCommandGetResponseWire ¶
type CustomCommandGetResponseWire APIResponse[CustomCommandWire]
type CustomCommandUpdateRequestWire ¶
type CustomCommandUpdateRequestWire struct { Name string `json:"name"` Description string `json:"description"` Enabled bool `json:"enabled"` Parameters []CustomCommandParameterWire `json:"parameters"` Actions json.RawMessage `json:"actions"` }
func (*CustomCommandUpdateRequestWire) Normalize ¶
func (r *CustomCommandUpdateRequestWire) Normalize()
func (CustomCommandUpdateRequestWire) Validate ¶
func (r CustomCommandUpdateRequestWire) Validate() error
type CustomCommandUpdateResponseWire ¶
type CustomCommandUpdateResponseWire APIResponse[CustomCommandWire]
type CustomCommandWire ¶
type CustomCommandWire struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Enabled bool `json:"enabled"` Parameters []CustomCommandParameterWire `json:"parameters"` Actions json.RawMessage `json:"actions"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` DeployedAt null.Time `json:"deployed_at"` }
type CustomCommandsDeployResponseWire ¶
type CustomCommandsDeployResponseWire APIResponse[struct{}]
type CustomCommandsListResponseWire ¶
type CustomCommandsListResponseWire APIResponse[[]CustomCommandWire]
type EmbedLinkCreateRequestWire ¶
type EmbedLinkCreateRequestWire struct { Url string `json:"url"` ThemeColor null.String `json:"theme_color"` OgTitle null.String `json:"og_title"` OgSiteName null.String `json:"og_site_name"` OgDescription null.String `json:"og_description"` OgImage null.String `json:"og_image"` OeType null.String `json:"oe_type"` OeAuthorName null.String `json:"oe_author_name"` OeAuthorUrl null.String `json:"oe_author_url"` OeProviderName null.String `json:"oe_provider_name"` OeProviderUrl null.String `json:"oe_provider_url"` TwCard null.String `json:"tw_card"` }
func (EmbedLinkCreateRequestWire) Validate ¶
func (req EmbedLinkCreateRequestWire) Validate() error
type EmbedLinkCreateResponseWire ¶
type EmbedLinkCreateResponseWire APIResponse[EmbedLinkCreateResponseDataWire]
type EmbedLinkOEmbedResponseWire ¶
type EmbedLinkOEmbedResponseWire struct { Type string `json:"type,omitempty"` Title string `json:"title,omitempty"` AuthorName string `json:"author_name,omitempty"` AuthorUrl string `json:"author_url,omitempty"` ProviderName string `json:"provider_name,omitempty"` ProviderUrl string `json:"provider_url,omitempty"` }
type Error ¶
type Error struct { Status int `json:"-"` Code string `json:"code"` Message string `json:"message"` Data interface{} `json:"data,omitempty"` }
func (Error) MarshalJSON ¶
type GetGuildBrandingResponseWire ¶
type GetGuildBrandingResponseWire APIResponse[GuildBrandingWire]
type GetGuildResponseWire ¶
type GetGuildResponseWire APIResponse[GuildWire]
type GetImageResponseWire ¶
type GetImageResponseWire APIResponse[ImageWire]
type GetPremiumPlanFeaturesResponseDataWire ¶
type GetPremiumPlanFeaturesResponseDataWire struct { MaxSavedMessages int `json:"max_saved_messages"` MaxActionsPerComponent int `json:"max_actions_per_component"` AdvancedActionTypes bool `json:"advanced_action_types"` AIAssistant bool `json:"ai_assistant"` CustomBot bool `json:"custom_bot"` MaxCustomCommands int `json:"max_custom_commands"` IsPremium bool `json:"is_premium"` MaxImageUploadSize int `json:"max_image_upload_size"` MaxScheduledMessages int `json:"max_scheduled_messages"` PeriodicScheduledMessages bool `json:"periodic_scheduled_messages"` MaxTemplateOps int `json:"max_template_ops"` MaxKVKeys int `json:"max_kv_keys"` }
type GetPremiumPlanFeaturesResponseWire ¶
type GetPremiumPlanFeaturesResponseWire APIResponse[GetPremiumPlanFeaturesResponseDataWire]
type GuildBrandingWire ¶
type GuildBrandingWire struct { DefaultUsername null.String `json:"default_username"` DefaultAvatarURL null.String `json:"default_avatar_url"` }
type GuildChannelWire ¶
type GuildChannelWire struct { ID string `json:"id"` Name string `json:"name"` Position int `json:"position"` ParentID null.String `json:"parent_id"` Type int `json:"type"` UserAccess bool `json:"user_access"` UserPermissions string `json:"user_permissions"` BotAccess bool `json:"bot_access"` BotPermissions string `json:"bot_permissions"` }
type GuildEmojiWire ¶
type GuildRoleWire ¶
type GuildStickerWire ¶
type ListChannelsResponseWire ¶
type ListChannelsResponseWire APIResponse[[]GuildChannelWire]
type ListEmojisResponseWire ¶
type ListEmojisResponseWire APIResponse[[]GuildEmojiWire]
type ListGuildsResponseWire ¶
type ListGuildsResponseWire APIResponse[[]GuildWire]
type ListPremiumEntitlementsResponseDataWire ¶
type ListPremiumEntitlementsResponseDataWire struct {
Entitlements []PremiumEntitlementWire `json:"entitlements"`
}
type ListPremiumEntitlementsResponseWire ¶
type ListPremiumEntitlementsResponseWire APIResponse[ListPremiumEntitlementsResponseDataWire]
type ListRolesResponseWire ¶
type ListRolesResponseWire APIResponse[[]GuildRoleWire]
type ListStickersResponseWire ¶
type ListStickersResponseWire APIResponse[[]GuildStickerWire]
type MessageAttachmentWire ¶
type MessageRestoreFromChannelRequestWire ¶
type MessageRestoreFromChannelRequestWire struct { GuildID string `json:"guild_id"` ChannelID string `json:"channel_id"` MessageID string `json:"message_id"` }
func (MessageRestoreFromChannelRequestWire) Validate ¶
func (req MessageRestoreFromChannelRequestWire) Validate() error
type MessageRestoreFromWebhookRequestWire ¶
type MessageRestoreFromWebhookRequestWire struct { WebhookID string `json:"webhook_id"` WebhookToken string `json:"webhook_token"` ThreadID null.String `json:"thread_id"` MessageID string `json:"message_id"` }
func (MessageRestoreFromWebhookRequestWire) Validate ¶
func (req MessageRestoreFromWebhookRequestWire) Validate() error
type MessageRestoreResponseDataWire ¶
type MessageRestoreResponseDataWire struct { Data json.RawMessage `json:"data"` Attachments []*MessageAttachmentWire `json:"attachments"` }
type MessageRestoreResponseWire ¶
type MessageRestoreResponseWire APIResponse[MessageRestoreResponseDataWire]
type MessageSendResponseWire ¶
type MessageSendResponseWire APIResponse[MessageSendResponseDataWire]
type MessageSendToChannelRequestWire ¶
type MessageSendToChannelRequestWire struct { GuildID string `json:"guild_id"` ChannelID string `json:"channel_id"` ThreadName null.String `json:"thread_name"` MessageID null.String `json:"message_id"` Data json.RawMessage `json:"data"` Attachments []*MessageAttachmentWire `json:"attachments"` }
func (MessageSendToChannelRequestWire) Validate ¶
func (req MessageSendToChannelRequestWire) Validate() error
type MessageSendToWebhookRequestWire ¶
type MessageSendToWebhookRequestWire struct { WebhookType string `json:"webhook_type"` WebhookID string `json:"webhook_id"` WebhookToken string `json:"webhook_token"` ThreadID null.String `json:"thread_id"` MessageID null.String `json:"message_id"` Data json.RawMessage `json:"data"` Attachments []*MessageAttachmentWire `json:"attachments"` }
func (MessageSendToWebhookRequestWire) Validate ¶
func (req MessageSendToWebhookRequestWire) Validate() error
type PremiumEntitlementWire ¶
type PremiumEntitlementWire struct { ID string `json:"id"` SkuID string `json:"sku_id"` UserID null.String `json:"user_id"` GuildID null.String `json:"guild_id"` UpdatedAt time.Time `json:"updated_at"` Deleted bool `json:"deleted"` StartsAt null.Time `json:"starts_at"` EndsAt null.Time `json:"ends_at"` Consumable bool `json:"consumable"` Consumed bool `json:"consumed"` ConsumedGuildID null.String `json:"consumed_guild_id"` }
type SavedMessageCreateRequestWire ¶
type SavedMessageCreateRequestWire struct { Name string `json:"name"` Description null.String `json:"description"` Data json.RawMessage `json:"data"` }
func (SavedMessageCreateRequestWire) Validate ¶
func (req SavedMessageCreateRequestWire) Validate() error
type SavedMessageCreateResponseWire ¶
type SavedMessageCreateResponseWire APIResponse[SavedMessageWire]
type SavedMessageDeleteResponseWire ¶
type SavedMessageDeleteResponseWire APIResponse[struct{}]
type SavedMessageGetResponseWire ¶
type SavedMessageGetResponseWire APIResponse[SavedMessageWire]
type SavedMessageImportDataWire ¶
type SavedMessageImportDataWire struct { Name string `json:"name"` Description null.String `json:"description"` Data json.RawMessage `json:"data"` }
type SavedMessageListResponseWire ¶
type SavedMessageListResponseWire APIResponse[[]SavedMessageWire]
type SavedMessageUpdateRequestWire ¶
type SavedMessageUpdateRequestWire struct { Name string `json:"name"` Description null.String `json:"description"` Data json.RawMessage `json:"data"` }
func (SavedMessageUpdateRequestWire) Validate ¶
func (req SavedMessageUpdateRequestWire) Validate() error
type SavedMessageUpdateResponseWire ¶
type SavedMessageUpdateResponseWire APIResponse[SavedMessageWire]
type SavedMessageWire ¶
type SavedMessagesImportRequestWire ¶
type SavedMessagesImportRequestWire struct {
Messages []SavedMessageImportDataWire `json:"messages"`
}
func (SavedMessagesImportRequestWire) Validate ¶
func (req SavedMessagesImportRequestWire) Validate() error
type SavedMessagesImportResponseWire ¶
type SavedMessagesImportResponseWire APIResponse[[]SavedMessageWire]
type ScheduledMessageCreateRequestWire ¶
type ScheduledMessageCreateRequestWire struct { ChannelID string `json:"channel_id"` MessageID null.String `json:"message_id"` ThreadName null.String `json:"thread_name"` SavedMessageID string `json:"saved_message_id"` Name string `json:"name"` Description null.String `json:"description"` CronExpression null.String `json:"cron_expression"` CronTimezone null.String `json:"cron_timezone"` StartAt time.Time `json:"start_at"` EndAt null.Time `json:"end_at"` OnlyOnce bool `json:"only_once"` Enabled bool `json:"enabled"` }
func (ScheduledMessageCreateRequestWire) Validate ¶
func (req ScheduledMessageCreateRequestWire) Validate() error
type ScheduledMessageCreateResponseWire ¶
type ScheduledMessageCreateResponseWire APIResponse[ScheduledMessageWire]
type ScheduledMessageDeleteResponseWire ¶
type ScheduledMessageDeleteResponseWire APIResponse[struct{}]
type ScheduledMessageGetResponseWire ¶
type ScheduledMessageGetResponseWire APIResponse[ScheduledMessageWire]
type ScheduledMessageListResponseWire ¶
type ScheduledMessageListResponseWire APIResponse[[]ScheduledMessageWire]
type ScheduledMessageUpdateRequestWire ¶
type ScheduledMessageUpdateRequestWire struct { ChannelID string `json:"channel_id"` MessageID null.String `json:"message_id"` ThreadName null.String `json:"thread_name"` SavedMessageID string `json:"saved_message_id"` Name string `json:"name"` Description null.String `json:"description"` CronExpression null.String `json:"cron_expression"` CronTimezone null.String `json:"cron_timezone"` StartAt time.Time `json:"start_at"` EndAt null.Time `json:"end_at"` OnlyOnce bool `json:"only_once"` Enabled bool `json:"enabled"` }
func (ScheduledMessageUpdateRequestWire) Validate ¶
func (req ScheduledMessageUpdateRequestWire) Validate() error
type ScheduledMessageUpdateResponseWire ¶
type ScheduledMessageUpdateResponseWire APIResponse[ScheduledMessageWire]
type ScheduledMessageWire ¶
type ScheduledMessageWire struct { ID string `json:"id"` CreatorID string `json:"creator_id"` GuildID string `json:"guild_id"` ChannelID string `json:"channel_id"` MessageID null.String `json:"message_id"` ThreadName null.String `json:"thread_name"` SavedMessageID string `json:"saved_message_id"` Name string `json:"name"` Description null.String `json:"description"` CronExpression null.String `json:"cron_expression"` CronTimezone null.String `json:"cron_timezone"` StartAt time.Time `json:"start_at"` EndAt null.Time `json:"end_at"` NextAt time.Time `json:"next_at"` OnlyOnce bool `json:"only_once"` Enabled bool `json:"enabled"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type SharedMessageCreateRequestWire ¶
type SharedMessageCreateRequestWire struct {
}func (SharedMessageCreateRequestWire) Validate ¶
func (req SharedMessageCreateRequestWire) Validate() error
type SharedMessageCreateResponseWire ¶
type SharedMessageCreateResponseWire APIResponse[SharedMessageWire]
type SharedMessageGetResponseWire ¶
type SharedMessageGetResponseWire APIResponse[SharedMessageWire]
type SharedMessageWire ¶
type SharedMessageWire struct {}
type UploadImageResponseWire ¶
type UploadImageResponseWire APIResponse[ImageWire]
type UserResponseWire ¶
type UserResponseWire APIResponse[UserWire]
Click to show internal directories.
Click to hide internal directories.