Documentation
¶
Overview ¶
Code generated by tools/protocol/generate-backend-api.py; DO NOT EDIT.
Code generated by tools/protocol/generate-backend-api.py; DO NOT EDIT.
Package discordbackend implements the host-owned Discord v2 backend.
Code generated by tools/protocol/generate-backend-events.py; DO NOT EDIT.
Code generated by tools/protocol/generate-backend-api.py; DO NOT EDIT.
Code generated by tools/protocol/generate-backend-api.py; DO NOT EDIT.
Index ¶
- Constants
- type Backend
- func (b *Backend) Activate(ctx context.Context, p runtime.InstancePrincipal) error
- func (b *Backend) AttachDispatcher(d *runtime.Dispatcher) error
- func (b *Backend) AttachExtension(e Extension) error
- func (b *Backend) AttachVoicePort(v VoicePort) error
- func (b *Backend) Cleanup(ctx context.Context, p runtime.InstancePrincipal) error
- func (b *Backend) Close() error
- func (b *Backend) Drain(ctx context.Context, p runtime.InstancePrincipal) error
- func (b *Backend) HostVoiceSession() *discordgo.Session
- func (b *Backend) Open(ctx context.Context) error
- func (b *Backend) Prepare(ctx context.Context, p runtime.InstancePrincipal, ...) (*runtime.BackendBinding, error)
- func (b *Backend) ReconcileCommand(ctx context.Context, module runtime.ModuleID, guild string, key CommandKey, ...) error
- func (b *Backend) Registration() runtime.BackendRegistration
- func (b *Backend) ResolveVoiceChannel(ctx context.Context, p runtime.InstancePrincipal, channelID string) (string, error)
- func (b *Backend) SendVoiceState(ctx context.Context, guildID, channelID string, mute, deaf bool) error
- type BotVoiceState
- type CommandKey
- type CommandMutation
- type Config
- type CredentialUse
- type Extension
- type Helper
- func (h *Helper) Application(ctx context.Context, req *wire.ApplicationRequest) (response *wire.ApplicationResponse, err error)
- func (h *Helper) ApplicationCommand(ctx context.Context, req *wire.ApplicationCommandRequest) (response *wire.ApplicationCommandResponse, err error)
- func (h *Helper) ApplicationCommandBulkOverwrite(ctx context.Context, req *wire.ApplicationCommandBulkOverwriteRequest) (response *wire.ApplicationCommandBulkOverwriteResponse, err error)
- func (h *Helper) ApplicationCommandCreate(ctx context.Context, req *wire.ApplicationCommandCreateRequest) (response *wire.ApplicationCommandCreateResponse, err error)
- func (h *Helper) ApplicationCommandDelete(ctx context.Context, req *wire.ApplicationCommandDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ApplicationCommandEdit(ctx context.Context, req *wire.ApplicationCommandEditRequest) (response *wire.ApplicationCommandEditResponse, err error)
- func (h *Helper) ApplicationCommandPermissions(ctx context.Context, req *wire.ApplicationCommandPermissionsRequest) (response *wire.ApplicationCommandPermissionsResponse, err error)
- func (h *Helper) ApplicationCommands(ctx context.Context, req *wire.ApplicationCommandsRequest) (response *wire.ApplicationCommandsResponse, err error)
- func (h *Helper) ApplicationEmoji(ctx context.Context, req *wire.ApplicationEmojiRequest) (response *wire.ApplicationEmojiResponse, err error)
- func (h *Helper) ApplicationEmojiCreate(ctx context.Context, req *wire.ApplicationEmojiCreateRequest) (response *wire.ApplicationEmojiCreateResponse, err error)
- func (h *Helper) ApplicationEmojiDelete(ctx context.Context, req *wire.ApplicationEmojiDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ApplicationEmojiEdit(ctx context.Context, req *wire.ApplicationEmojiEditRequest) (response *wire.ApplicationEmojiEditResponse, err error)
- func (h *Helper) ApplicationEmojis(ctx context.Context, req *wire.ApplicationEmojisRequest) (response *wire.ApplicationEmojisResponse, err error)
- func (h *Helper) ApplicationRoleConnectionMetadata(ctx context.Context, req *wire.ApplicationRoleConnectionMetadataRequest) (response *wire.ApplicationRoleConnectionMetadataResponse, err error)
- func (h *Helper) ApplicationRoleConnectionMetadataUpdate(ctx context.Context, req *wire.ApplicationRoleConnectionMetadataUpdateRequest) (response *wire.ApplicationRoleConnectionMetadataUpdateResponse, err error)
- func (h *Helper) AutoModerationRule(ctx context.Context, req *wire.AutoModerationRuleRequest) (response *wire.AutoModerationRuleResponse, err error)
- func (h *Helper) AutoModerationRuleCreate(ctx context.Context, req *wire.AutoModerationRuleCreateRequest) (response *wire.AutoModerationRuleCreateResponse, err error)
- func (h *Helper) AutoModerationRuleDelete(ctx context.Context, req *wire.AutoModerationRuleDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) AutoModerationRuleEdit(ctx context.Context, req *wire.AutoModerationRuleEditRequest) (response *wire.AutoModerationRuleEditResponse, err error)
- func (h *Helper) AutoModerationRules(ctx context.Context, req *wire.AutoModerationRulesRequest) (response *wire.AutoModerationRulesResponse, err error)
- func (h *Helper) Channel(ctx context.Context, req *wire.ChannelRequest) (response *wire.ChannelResponse, err error)
- func (h *Helper) ChannelDelete(ctx context.Context, req *wire.ChannelDeleteRequest) (response *wire.ChannelDeleteResponse, err error)
- func (h *Helper) ChannelEdit(ctx context.Context, req *wire.ChannelEditRequest) (response *wire.ChannelEditResponse, err error)
- func (h *Helper) ChannelInviteCreate(ctx context.Context, req *wire.ChannelInviteCreateRequest) (response *wire.ChannelInviteCreateResponse, err error)
- func (h *Helper) ChannelInvites(ctx context.Context, req *wire.ChannelInvitesRequest) (response *wire.ChannelInvitesResponse, err error)
- func (h *Helper) ChannelMessage(ctx context.Context, req *wire.ChannelMessageRequest) (response *wire.ChannelMessageResponse, err error)
- func (h *Helper) ChannelMessageCrosspost(ctx context.Context, req *wire.ChannelMessageCrosspostRequest) (response *wire.ChannelMessageCrosspostResponse, err error)
- func (h *Helper) ChannelMessageDelete(ctx context.Context, req *wire.ChannelMessageDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ChannelMessageEditComplex(ctx context.Context, req *wire.ChannelMessageEditComplexRequest) (response *wire.ChannelMessageEditComplexResponse, err error)
- func (h *Helper) ChannelMessagePin(ctx context.Context, req *wire.ChannelMessagePinRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ChannelMessageSendComplex(ctx context.Context, req *wire.ChannelMessageSendComplexRequest) (response *wire.ChannelMessageSendComplexResponse, err error)
- func (h *Helper) ChannelMessageUnpin(ctx context.Context, req *wire.ChannelMessageUnpinRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ChannelMessages(ctx context.Context, req *wire.ChannelMessagesRequest) (response *wire.ChannelMessagesResponse, err error)
- func (h *Helper) ChannelMessagesBulkDelete(ctx context.Context, req *wire.ChannelMessagesBulkDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ChannelMessagesPinned(ctx context.Context, req *wire.ChannelMessagesPinnedRequest) (response *wire.ChannelMessagesPinnedResponse, err error)
- func (h *Helper) ChannelNewsFollow(ctx context.Context, req *wire.ChannelNewsFollowRequest) (response *wire.ChannelNewsFollowResponse, err error)
- func (h *Helper) ChannelPermissionDelete(ctx context.Context, req *wire.ChannelPermissionDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ChannelPermissionSet(ctx context.Context, req *wire.ChannelPermissionSetRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ChannelTyping(ctx context.Context, req *wire.ChannelTypingRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ChannelWebhooks(ctx context.Context, req *wire.ChannelWebhooksRequest) (response *wire.ChannelWebhooksResponse, err error)
- func (h *Helper) EntitlementConsume(ctx context.Context, req *wire.EntitlementConsumeRequest) (response *emptypb.Empty, err error)
- func (h *Helper) EntitlementTestCreate(ctx context.Context, req *wire.EntitlementTestCreateRequest) (response *emptypb.Empty, err error)
- func (h *Helper) EntitlementTestDelete(ctx context.Context, req *wire.EntitlementTestDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) Entitlements(ctx context.Context, req *wire.EntitlementsRequest) (response *wire.EntitlementsResponse, err error)
- func (h *Helper) ForumThreadStartComplex(ctx context.Context, req *wire.ForumThreadStartComplexRequest) (response *wire.ForumThreadStartComplexResponse, err error)
- func (h *Helper) Gateway(ctx context.Context, req *wire.GatewayRequest) (response *wire.GatewayResponse, err error)
- func (h *Helper) GatewayBot(ctx context.Context, req *wire.GatewayBotRequest) (response *wire.GatewayBotResponse, err error)
- func (h *Helper) GetProvisionedCredentialRef(ctx context.Context, req *wire.GetProvisionedCredentialRefRequest) (response *corewire.CredentialRef, err error)
- func (h *Helper) Guild(ctx context.Context, req *wire.GuildRequest) (response *wire.GuildResponse, err error)
- func (h *Helper) GuildApplicationCommandsPermissions(ctx context.Context, req *wire.GuildApplicationCommandsPermissionsRequest) (response *wire.GuildApplicationCommandsPermissionsResponse, err error)
- func (h *Helper) GuildAuditLog(ctx context.Context, req *wire.GuildAuditLogRequest) (response *wire.GuildAuditLogResponse, err error)
- func (h *Helper) GuildBan(ctx context.Context, req *wire.GuildBanRequest) (response *wire.GuildBanResponse, err error)
- func (h *Helper) GuildBanCreateWithReason(ctx context.Context, req *wire.GuildBanCreateWithReasonRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildBanDelete(ctx context.Context, req *wire.GuildBanDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildBans(ctx context.Context, req *wire.GuildBansRequest) (response *wire.GuildBansResponse, err error)
- func (h *Helper) GuildChannelCreateComplex(ctx context.Context, req *wire.GuildChannelCreateComplexRequest) (response *wire.GuildChannelCreateComplexResponse, err error)
- func (h *Helper) GuildChannels(ctx context.Context, req *wire.GuildChannelsRequest) (response *wire.GuildChannelsResponse, err error)
- func (h *Helper) GuildChannelsReorder(ctx context.Context, req *wire.GuildChannelsReorderRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildEdit(ctx context.Context, req *wire.GuildEditRequest) (response *wire.GuildEditResponse, err error)
- func (h *Helper) GuildEmbed(ctx context.Context, req *wire.GuildEmbedRequest) (response *wire.GuildEmbedResponse, err error)
- func (h *Helper) GuildEmbedEdit(ctx context.Context, req *wire.GuildEmbedEditRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildEmoji(ctx context.Context, req *wire.GuildEmojiRequest) (response *wire.GuildEmojiResponse, err error)
- func (h *Helper) GuildEmojiCreate(ctx context.Context, req *wire.GuildEmojiCreateRequest) (response *wire.GuildEmojiCreateResponse, err error)
- func (h *Helper) GuildEmojiDelete(ctx context.Context, req *wire.GuildEmojiDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildEmojiEdit(ctx context.Context, req *wire.GuildEmojiEditRequest) (response *wire.GuildEmojiEditResponse, err error)
- func (h *Helper) GuildEmojis(ctx context.Context, req *wire.GuildEmojisRequest) (response *wire.GuildEmojisResponse, err error)
- func (h *Helper) GuildIntegrationDelete(ctx context.Context, req *wire.GuildIntegrationDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildIntegrations(ctx context.Context, req *wire.GuildIntegrationsRequest) (response *wire.GuildIntegrationsResponse, err error)
- func (h *Helper) GuildInvites(ctx context.Context, req *wire.GuildInvitesRequest) (response *wire.GuildInvitesResponse, err error)
- func (h *Helper) GuildLeave(ctx context.Context, req *wire.GuildLeaveRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildMember(ctx context.Context, req *wire.GuildMemberRequest) (response *wire.GuildMemberResponse, err error)
- func (h *Helper) GuildMemberAdd(ctx context.Context, req *wire.GuildMemberAddRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildMemberDeleteWithReason(ctx context.Context, req *wire.GuildMemberDeleteWithReasonRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildMemberEdit(ctx context.Context, req *wire.GuildMemberEditRequest) (response *wire.GuildMemberEditResponse, err error)
- func (h *Helper) GuildMemberNickname(ctx context.Context, req *wire.GuildMemberNicknameRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildMemberRoleAdd(ctx context.Context, req *wire.GuildMemberRoleAddRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildMemberRoleRemove(ctx context.Context, req *wire.GuildMemberRoleRemoveRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildMembers(ctx context.Context, req *wire.GuildMembersRequest) (response *wire.GuildMembersResponse, err error)
- func (h *Helper) GuildMembersSearch(ctx context.Context, req *wire.GuildMembersSearchRequest) (response *wire.GuildMembersSearchResponse, err error)
- func (h *Helper) GuildOnboarding(ctx context.Context, req *wire.GuildOnboardingRequest) (response *wire.GuildOnboardingResponse, err error)
- func (h *Helper) GuildOnboardingEdit(ctx context.Context, req *wire.GuildOnboardingEditRequest) (response *wire.GuildOnboardingEditResponse, err error)
- func (h *Helper) GuildPreview(ctx context.Context, req *wire.GuildPreviewRequest) (response *wire.GuildPreviewResponse, err error)
- func (h *Helper) GuildPrune(ctx context.Context, req *wire.GuildPruneRequest) (response *wire.GuildPruneResponse, err error)
- func (h *Helper) GuildPruneCount(ctx context.Context, req *wire.GuildPruneCountRequest) (response *wire.GuildPruneCountResponse, err error)
- func (h *Helper) GuildRole(ctx context.Context, req *wire.GuildRoleRequest) (response *wire.GuildRoleResponse, err error)
- func (h *Helper) GuildRoleCreate(ctx context.Context, req *wire.GuildRoleCreateRequest) (response *wire.GuildRoleCreateResponse, err error)
- func (h *Helper) GuildRoleDelete(ctx context.Context, req *wire.GuildRoleDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildRoleEdit(ctx context.Context, req *wire.GuildRoleEditRequest) (response *wire.GuildRoleEditResponse, err error)
- func (h *Helper) GuildRoleMemberCounts(ctx context.Context, req *wire.GuildRoleMemberCountsRequest) (response *wire.GuildRoleMemberCountsResponse, err error)
- func (h *Helper) GuildRoleReorder(ctx context.Context, req *wire.GuildRoleReorderRequest) (response *wire.GuildRoleReorderResponse, err error)
- func (h *Helper) GuildRoles(ctx context.Context, req *wire.GuildRolesRequest) (response *wire.GuildRolesResponse, err error)
- func (h *Helper) GuildScheduledEvent(ctx context.Context, req *wire.GuildScheduledEventRequest) (response *wire.GuildScheduledEventResponse, err error)
- func (h *Helper) GuildScheduledEventCreate(ctx context.Context, req *wire.GuildScheduledEventCreateRequest) (response *wire.GuildScheduledEventCreateResponse, err error)
- func (h *Helper) GuildScheduledEventDelete(ctx context.Context, req *wire.GuildScheduledEventDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildScheduledEventEdit(ctx context.Context, req *wire.GuildScheduledEventEditRequest) (response *wire.GuildScheduledEventEditResponse, err error)
- func (h *Helper) GuildScheduledEventUsers(ctx context.Context, req *wire.GuildScheduledEventUsersRequest) (response *wire.GuildScheduledEventUsersResponse, err error)
- func (h *Helper) GuildScheduledEvents(ctx context.Context, req *wire.GuildScheduledEventsRequest) (response *wire.GuildScheduledEventsResponse, err error)
- func (h *Helper) GuildTemplate(ctx context.Context, req *wire.GuildTemplateRequest) (response *wire.GuildTemplateResponse, err error)
- func (h *Helper) GuildTemplateCreate(ctx context.Context, req *wire.GuildTemplateCreateRequest) (response *wire.GuildTemplateCreateResponse, err error)
- func (h *Helper) GuildTemplateDelete(ctx context.Context, req *wire.GuildTemplateDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildTemplateEdit(ctx context.Context, req *wire.GuildTemplateEditRequest) (response *wire.GuildTemplateEditResponse, err error)
- func (h *Helper) GuildTemplateSync(ctx context.Context, req *wire.GuildTemplateSyncRequest) (response *emptypb.Empty, err error)
- func (h *Helper) GuildTemplates(ctx context.Context, req *wire.GuildTemplatesRequest) (response *wire.GuildTemplatesResponse, err error)
- func (h *Helper) GuildThreadsActive(ctx context.Context, req *wire.GuildThreadsActiveRequest) (response *wire.GuildThreadsActiveResponse, err error)
- func (h *Helper) GuildWebhooks(ctx context.Context, req *wire.GuildWebhooksRequest) (response *wire.GuildWebhooksResponse, err error)
- func (h *Helper) InteractionRespond(ctx context.Context, req *wire.InteractionRespondRequest) (response *emptypb.Empty, err error)
- func (h *Helper) InviteComplex(ctx context.Context, req *wire.InviteComplexRequest) (response *wire.InviteComplexResponse, err error)
- func (h *Helper) InviteDelete(ctx context.Context, req *wire.InviteDeleteRequest) (response *wire.InviteDeleteResponse, err error)
- func (h *Helper) MessageReactionAdd(ctx context.Context, req *wire.MessageReactionAddRequest) (response *emptypb.Empty, err error)
- func (h *Helper) MessageReactionRemove(ctx context.Context, req *wire.MessageReactionRemoveRequest) (response *emptypb.Empty, err error)
- func (h *Helper) MessageReactions(ctx context.Context, req *wire.MessageReactionsRequest) (response *wire.MessageReactionsResponse, err error)
- func (h *Helper) MessageReactionsRemoveAll(ctx context.Context, req *wire.MessageReactionsRemoveAllRequest) (response *emptypb.Empty, err error)
- func (h *Helper) MessageReactionsRemoveEmoji(ctx context.Context, req *wire.MessageReactionsRemoveEmojiRequest) (response *emptypb.Empty, err error)
- func (h *Helper) MessageThreadStartComplex(ctx context.Context, req *wire.MessageThreadStartComplexRequest) (response *wire.MessageThreadStartComplexResponse, err error)
- func (h *Helper) PollAnswerVoters(ctx context.Context, req *wire.PollAnswerVotersRequest) (response *wire.PollAnswerVotersResponse, err error)
- func (h *Helper) PollExpire(ctx context.Context, req *wire.PollExpireRequest) (response *wire.PollExpireResponse, err error)
- func (h *Helper) RegisterInteractionRoutes(ctx context.Context, req *wire.RegisterInteractionRoutesRequest) (response *emptypb.Empty, err error)
- func (h *Helper) RequestGuildMembers(ctx context.Context, req *wire.RequestGuildMembersRequest) (response *emptypb.Empty, err error)
- func (h *Helper) RequestGuildMembersList(ctx context.Context, req *wire.RequestGuildMembersListRequest) (response *emptypb.Empty, err error)
- func (h *Helper) SKUs(ctx context.Context, req *wire.SKUsRequest) (response *wire.SKUsResponse, err error)
- func (h *Helper) StageInstance(ctx context.Context, req *wire.StageInstanceRequest) (response *wire.StageInstanceResponse, err error)
- func (h *Helper) StageInstanceCreate(ctx context.Context, req *wire.StageInstanceCreateRequest) (response *wire.StageInstanceCreateResponse, err error)
- func (h *Helper) StageInstanceDelete(ctx context.Context, req *wire.StageInstanceDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) StageInstanceEdit(ctx context.Context, req *wire.StageInstanceEditRequest) (response *wire.StageInstanceEditResponse, err error)
- func (h *Helper) Subscription(ctx context.Context, req *wire.SubscriptionRequest) (response *wire.SubscriptionResponse, err error)
- func (h *Helper) Subscriptions(ctx context.Context, req *wire.SubscriptionsRequest) (response *wire.SubscriptionsResponse, err error)
- func (h *Helper) ThreadJoin(ctx context.Context, req *wire.ThreadJoinRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ThreadLeave(ctx context.Context, req *wire.ThreadLeaveRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ThreadMember(ctx context.Context, req *wire.ThreadMemberRequest) (response *wire.ThreadMemberResponse, err error)
- func (h *Helper) ThreadMemberAdd(ctx context.Context, req *wire.ThreadMemberAddRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ThreadMemberRemove(ctx context.Context, req *wire.ThreadMemberRemoveRequest) (response *emptypb.Empty, err error)
- func (h *Helper) ThreadMembers(ctx context.Context, req *wire.ThreadMembersRequest) (response *wire.ThreadMembersResponse, err error)
- func (h *Helper) ThreadStartComplex(ctx context.Context, req *wire.ThreadStartComplexRequest) (response *wire.ThreadStartComplexResponse, err error)
- func (h *Helper) ThreadsArchived(ctx context.Context, req *wire.ThreadsArchivedRequest) (response *wire.ThreadsArchivedResponse, err error)
- func (h *Helper) ThreadsPrivateArchived(ctx context.Context, req *wire.ThreadsPrivateArchivedRequest) (response *wire.ThreadsPrivateArchivedResponse, err error)
- func (h *Helper) ThreadsPrivateJoinedArchived(ctx context.Context, req *wire.ThreadsPrivateJoinedArchivedRequest) (response *wire.ThreadsPrivateJoinedArchivedResponse, err error)
- func (h *Helper) UnregisterInteractionRoutes(ctx context.Context, req *wire.UnregisterInteractionRoutesRequest) (response *emptypb.Empty, err error)
- func (h *Helper) UpdateStatusComplex(ctx context.Context, req *wire.UpdateStatusComplexRequest) (response *emptypb.Empty, err error)
- func (h *Helper) User(ctx context.Context, req *wire.UserRequest) (response *wire.UserResponse, err error)
- func (h *Helper) UserChannelCreate(ctx context.Context, req *wire.UserChannelCreateRequest) (response *wire.UserChannelCreateResponse, err error)
- func (h *Helper) UserChannelPermissions(ctx context.Context, req *wire.UserChannelPermissionsRequest) (response *wire.UserChannelPermissionsResponse, err error)
- func (h *Helper) UserGuilds(ctx context.Context, req *wire.UserGuildsRequest) (response *wire.UserGuildsResponse, err error)
- func (h *Helper) UserUpdate(ctx context.Context, req *wire.UserUpdateRequest) (response *wire.UserUpdateResponse, err error)
- func (h *Helper) UserVoiceState(ctx context.Context, req *wire.UserVoiceStateRequest) (response *wire.UserVoiceStateResponse, err error)
- func (h *Helper) VoiceRegions(ctx context.Context, req *wire.VoiceRegionsRequest) (response *wire.VoiceRegionsResponse, err error)
- func (h *Helper) Webhook(ctx context.Context, req *wire.WebhookRequest) (response *wire.WebhookResponse, err error)
- func (h *Helper) WebhookCreate(ctx context.Context, req *wire.WebhookCreateRequest) (response *wire.WebhookCreateResponse, err error)
- func (h *Helper) WebhookDelete(ctx context.Context, req *wire.WebhookDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) WebhookDeleteWithToken(ctx context.Context, req *wire.WebhookDeleteWithTokenRequest) (response *emptypb.Empty, err error)
- func (h *Helper) WebhookEdit(ctx context.Context, req *wire.WebhookEditRequest) (response *wire.WebhookEditResponse, err error)
- func (h *Helper) WebhookEditWithToken(ctx context.Context, req *wire.WebhookEditWithTokenRequest) (response *wire.WebhookEditWithTokenResponse, err error)
- func (h *Helper) WebhookMessage(ctx context.Context, req *wire.WebhookMessageRequest) (response *wire.WebhookMessageResponse, err error)
- func (h *Helper) WebhookMessageDelete(ctx context.Context, req *wire.WebhookMessageDeleteRequest) (response *emptypb.Empty, err error)
- func (h *Helper) WebhookMessageEdit(ctx context.Context, req *wire.WebhookMessageEditRequest) (response *wire.WebhookMessageEditResponse, err error)
- func (h *Helper) WebhookThreadExecute(ctx context.Context, req *wire.WebhookThreadExecuteRequest) (response *wire.WebhookThreadExecuteResponse, err error)
- func (h *Helper) WebhookWithToken(ctx context.Context, req *wire.WebhookWithTokenRequest) (response *wire.WebhookWithTokenResponse, err error)
- type MemberRoleReplacement
- type OperationContext
- type RESTPlan
- type ResourceTarget
- type RouteKey
- type Secret
- type VoicePort
- type VoiceServer
Constants ¶
const BackendID = "discord"
const BackendMajor uint32 = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func (*Backend) AttachDispatcher ¶
func (b *Backend) AttachDispatcher(d *runtime.Dispatcher) error
AttachDispatcher is called once after NewManager and before Open or Launch.
func (*Backend) AttachExtension ¶
func (*Backend) AttachVoicePort ¶
func (*Backend) HostVoiceSession ¶
HostVoiceSession is only for trusted optional voice transport composition. It is never returned by a module helper or included in any DTO/SDK binding.
func (*Backend) Prepare ¶
func (b *Backend) Prepare(ctx context.Context, p runtime.InstancePrincipal, in runtime.BackendPreparation) (*runtime.BackendBinding, error)
func (*Backend) ReconcileCommand ¶
func (b *Backend) ReconcileCommand(ctx context.Context, module runtime.ModuleID, guild string, key CommandKey, commandID string) error
ReconcileCommand is a trusted operator API, never a module RPC. It confirms an existing retained claim against the exact observed remote key and command ID; it cannot silently acquire an unregistered command or mutate Discord.
func (*Backend) Registration ¶
func (b *Backend) Registration() runtime.BackendRegistration
func (*Backend) ResolveVoiceChannel ¶
type BotVoiceState ¶
type BotVoiceState struct{ GuildID, ChannelID, UserID, SessionID string }
type CommandKey ¶
type CommandMutation ¶
type Config ¶
type Config struct {
BotToken string
ApplicationID string
BotUserID string
// OwnershipDirectory is a separate operator-created, runtime-owned 0700
// directory, never the generic root-owned runtime management directory.
OwnershipDirectory string
HTTP discordhttp.Config
Client *http.Client
Intents discordgo.Intent
GatewayFrameMaxBytes int64
GatewayDecodedMaxBytes int64
CredentialTTL time.Duration
InteractionTTL time.Duration
NonceTTL time.Duration
NoncesPerInstance int
NoncesPerHost int
NonceChunksMax int
RoutesPerModule int
RoutesPerHost int
MaxRoutesPerRequest int
MaxFilesPerRequest int
FileMaxBytes int64
RequestMaxBytes int64
PresenceOwner runtime.ModuleID
Secrets map[string]Secret
Uploads *upload.UploadStore
// OnError runs on ingress callbacks too; it must not synchronously reenter
// backend or SDK lifecycle APIs.
OnError func(error)
}
Config is operator input. Secrets never originate in ModuleSpec.Config. All resource limits are required; zero never means unbounded.
type CredentialUse ¶
type CredentialUse struct {
Ref *corewire.CredentialRef
Purpose string
Resource *corewire.ResourceSelector
// ThreadDestination is only the explicit WebhookThreadExecute destination.
// Resource remains the credential's immutable parent binding.
ThreadDestination string
// Apply inserts a resolved secret only into the fixed endpoint path/body slot.
Apply func(secret string) error
InitialCallback bool
}
type Extension ¶
type Extension interface {
Operations() []runtime.OperationPolicy
Register(runtime.InstanceServices) (core.HelperRegistrar, error)
Prepare(context.Context, runtime.InstancePrincipal, runtime.BackendPreparation) (*runtime.BackendBinding, error)
Activate(context.Context, runtime.InstancePrincipal) error
Drain(context.Context, runtime.InstancePrincipal) error
Cleanup(context.Context, runtime.InstancePrincipal) error
Close(context.Context) error
ValidateConstraints(*corewire.CapabilityGrant) error
ValidateConstraintsSubset(actual, ceiling *corewire.CapabilityGrant) error
}
Extension is a host-only optional component of the same Discord registration. Its package need not import this parent package, avoiding an import cycle.
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
func (*Helper) Application ¶
func (h *Helper) Application(ctx context.Context, req *wire.ApplicationRequest) (response *wire.ApplicationResponse, err error)
func (*Helper) ApplicationCommand ¶
func (h *Helper) ApplicationCommand(ctx context.Context, req *wire.ApplicationCommandRequest) (response *wire.ApplicationCommandResponse, err error)
func (*Helper) ApplicationCommandBulkOverwrite ¶
func (h *Helper) ApplicationCommandBulkOverwrite(ctx context.Context, req *wire.ApplicationCommandBulkOverwriteRequest) (response *wire.ApplicationCommandBulkOverwriteResponse, err error)
func (*Helper) ApplicationCommandCreate ¶
func (h *Helper) ApplicationCommandCreate(ctx context.Context, req *wire.ApplicationCommandCreateRequest) (response *wire.ApplicationCommandCreateResponse, err error)
func (*Helper) ApplicationCommandDelete ¶
func (*Helper) ApplicationCommandEdit ¶
func (h *Helper) ApplicationCommandEdit(ctx context.Context, req *wire.ApplicationCommandEditRequest) (response *wire.ApplicationCommandEditResponse, err error)
func (*Helper) ApplicationCommandPermissions ¶
func (h *Helper) ApplicationCommandPermissions(ctx context.Context, req *wire.ApplicationCommandPermissionsRequest) (response *wire.ApplicationCommandPermissionsResponse, err error)
func (*Helper) ApplicationCommands ¶
func (h *Helper) ApplicationCommands(ctx context.Context, req *wire.ApplicationCommandsRequest) (response *wire.ApplicationCommandsResponse, err error)
func (*Helper) ApplicationEmoji ¶
func (h *Helper) ApplicationEmoji(ctx context.Context, req *wire.ApplicationEmojiRequest) (response *wire.ApplicationEmojiResponse, err error)
func (*Helper) ApplicationEmojiCreate ¶
func (h *Helper) ApplicationEmojiCreate(ctx context.Context, req *wire.ApplicationEmojiCreateRequest) (response *wire.ApplicationEmojiCreateResponse, err error)
func (*Helper) ApplicationEmojiDelete ¶
func (*Helper) ApplicationEmojiEdit ¶
func (h *Helper) ApplicationEmojiEdit(ctx context.Context, req *wire.ApplicationEmojiEditRequest) (response *wire.ApplicationEmojiEditResponse, err error)
func (*Helper) ApplicationEmojis ¶
func (h *Helper) ApplicationEmojis(ctx context.Context, req *wire.ApplicationEmojisRequest) (response *wire.ApplicationEmojisResponse, err error)
func (*Helper) ApplicationRoleConnectionMetadata ¶
func (h *Helper) ApplicationRoleConnectionMetadata(ctx context.Context, req *wire.ApplicationRoleConnectionMetadataRequest) (response *wire.ApplicationRoleConnectionMetadataResponse, err error)
func (*Helper) ApplicationRoleConnectionMetadataUpdate ¶
func (h *Helper) ApplicationRoleConnectionMetadataUpdate(ctx context.Context, req *wire.ApplicationRoleConnectionMetadataUpdateRequest) (response *wire.ApplicationRoleConnectionMetadataUpdateResponse, err error)
func (*Helper) AutoModerationRule ¶
func (h *Helper) AutoModerationRule(ctx context.Context, req *wire.AutoModerationRuleRequest) (response *wire.AutoModerationRuleResponse, err error)
func (*Helper) AutoModerationRuleCreate ¶
func (h *Helper) AutoModerationRuleCreate(ctx context.Context, req *wire.AutoModerationRuleCreateRequest) (response *wire.AutoModerationRuleCreateResponse, err error)
func (*Helper) AutoModerationRuleDelete ¶
func (*Helper) AutoModerationRuleEdit ¶
func (h *Helper) AutoModerationRuleEdit(ctx context.Context, req *wire.AutoModerationRuleEditRequest) (response *wire.AutoModerationRuleEditResponse, err error)
func (*Helper) AutoModerationRules ¶
func (h *Helper) AutoModerationRules(ctx context.Context, req *wire.AutoModerationRulesRequest) (response *wire.AutoModerationRulesResponse, err error)
func (*Helper) Channel ¶
func (h *Helper) Channel(ctx context.Context, req *wire.ChannelRequest) (response *wire.ChannelResponse, err error)
func (*Helper) ChannelDelete ¶
func (h *Helper) ChannelDelete(ctx context.Context, req *wire.ChannelDeleteRequest) (response *wire.ChannelDeleteResponse, err error)
func (*Helper) ChannelEdit ¶
func (h *Helper) ChannelEdit(ctx context.Context, req *wire.ChannelEditRequest) (response *wire.ChannelEditResponse, err error)
func (*Helper) ChannelInviteCreate ¶
func (h *Helper) ChannelInviteCreate(ctx context.Context, req *wire.ChannelInviteCreateRequest) (response *wire.ChannelInviteCreateResponse, err error)
func (*Helper) ChannelInvites ¶
func (h *Helper) ChannelInvites(ctx context.Context, req *wire.ChannelInvitesRequest) (response *wire.ChannelInvitesResponse, err error)
func (*Helper) ChannelMessage ¶
func (h *Helper) ChannelMessage(ctx context.Context, req *wire.ChannelMessageRequest) (response *wire.ChannelMessageResponse, err error)
func (*Helper) ChannelMessageCrosspost ¶
func (h *Helper) ChannelMessageCrosspost(ctx context.Context, req *wire.ChannelMessageCrosspostRequest) (response *wire.ChannelMessageCrosspostResponse, err error)
func (*Helper) ChannelMessageDelete ¶
func (*Helper) ChannelMessageEditComplex ¶
func (h *Helper) ChannelMessageEditComplex(ctx context.Context, req *wire.ChannelMessageEditComplexRequest) (response *wire.ChannelMessageEditComplexResponse, err error)
func (*Helper) ChannelMessagePin ¶
func (*Helper) ChannelMessageSendComplex ¶
func (h *Helper) ChannelMessageSendComplex(ctx context.Context, req *wire.ChannelMessageSendComplexRequest) (response *wire.ChannelMessageSendComplexResponse, err error)
func (*Helper) ChannelMessageUnpin ¶
func (*Helper) ChannelMessages ¶
func (h *Helper) ChannelMessages(ctx context.Context, req *wire.ChannelMessagesRequest) (response *wire.ChannelMessagesResponse, err error)
func (*Helper) ChannelMessagesBulkDelete ¶
func (*Helper) ChannelMessagesPinned ¶
func (h *Helper) ChannelMessagesPinned(ctx context.Context, req *wire.ChannelMessagesPinnedRequest) (response *wire.ChannelMessagesPinnedResponse, err error)
func (*Helper) ChannelNewsFollow ¶
func (h *Helper) ChannelNewsFollow(ctx context.Context, req *wire.ChannelNewsFollowRequest) (response *wire.ChannelNewsFollowResponse, err error)
func (*Helper) ChannelPermissionDelete ¶
func (*Helper) ChannelPermissionSet ¶
func (*Helper) ChannelTyping ¶
func (*Helper) ChannelWebhooks ¶
func (h *Helper) ChannelWebhooks(ctx context.Context, req *wire.ChannelWebhooksRequest) (response *wire.ChannelWebhooksResponse, err error)
func (*Helper) EntitlementConsume ¶
func (*Helper) EntitlementTestCreate ¶
func (*Helper) EntitlementTestDelete ¶
func (*Helper) Entitlements ¶
func (h *Helper) Entitlements(ctx context.Context, req *wire.EntitlementsRequest) (response *wire.EntitlementsResponse, err error)
func (*Helper) ForumThreadStartComplex ¶
func (h *Helper) ForumThreadStartComplex(ctx context.Context, req *wire.ForumThreadStartComplexRequest) (response *wire.ForumThreadStartComplexResponse, err error)
func (*Helper) Gateway ¶
func (h *Helper) Gateway(ctx context.Context, req *wire.GatewayRequest) (response *wire.GatewayResponse, err error)
func (*Helper) GatewayBot ¶
func (h *Helper) GatewayBot(ctx context.Context, req *wire.GatewayBotRequest) (response *wire.GatewayBotResponse, err error)
func (*Helper) GetProvisionedCredentialRef ¶
func (h *Helper) GetProvisionedCredentialRef(ctx context.Context, req *wire.GetProvisionedCredentialRefRequest) (response *corewire.CredentialRef, err error)
func (*Helper) Guild ¶
func (h *Helper) Guild(ctx context.Context, req *wire.GuildRequest) (response *wire.GuildResponse, err error)
func (*Helper) GuildApplicationCommandsPermissions ¶
func (h *Helper) GuildApplicationCommandsPermissions(ctx context.Context, req *wire.GuildApplicationCommandsPermissionsRequest) (response *wire.GuildApplicationCommandsPermissionsResponse, err error)
func (*Helper) GuildAuditLog ¶
func (h *Helper) GuildAuditLog(ctx context.Context, req *wire.GuildAuditLogRequest) (response *wire.GuildAuditLogResponse, err error)
func (*Helper) GuildBan ¶
func (h *Helper) GuildBan(ctx context.Context, req *wire.GuildBanRequest) (response *wire.GuildBanResponse, err error)
func (*Helper) GuildBanCreateWithReason ¶
func (*Helper) GuildBanDelete ¶
func (*Helper) GuildBans ¶
func (h *Helper) GuildBans(ctx context.Context, req *wire.GuildBansRequest) (response *wire.GuildBansResponse, err error)
func (*Helper) GuildChannelCreateComplex ¶
func (h *Helper) GuildChannelCreateComplex(ctx context.Context, req *wire.GuildChannelCreateComplexRequest) (response *wire.GuildChannelCreateComplexResponse, err error)
func (*Helper) GuildChannels ¶
func (h *Helper) GuildChannels(ctx context.Context, req *wire.GuildChannelsRequest) (response *wire.GuildChannelsResponse, err error)
func (*Helper) GuildChannelsReorder ¶
func (*Helper) GuildEdit ¶
func (h *Helper) GuildEdit(ctx context.Context, req *wire.GuildEditRequest) (response *wire.GuildEditResponse, err error)
func (*Helper) GuildEmbed ¶
func (h *Helper) GuildEmbed(ctx context.Context, req *wire.GuildEmbedRequest) (response *wire.GuildEmbedResponse, err error)
func (*Helper) GuildEmbedEdit ¶
func (*Helper) GuildEmoji ¶
func (h *Helper) GuildEmoji(ctx context.Context, req *wire.GuildEmojiRequest) (response *wire.GuildEmojiResponse, err error)
func (*Helper) GuildEmojiCreate ¶
func (h *Helper) GuildEmojiCreate(ctx context.Context, req *wire.GuildEmojiCreateRequest) (response *wire.GuildEmojiCreateResponse, err error)
func (*Helper) GuildEmojiDelete ¶
func (*Helper) GuildEmojiEdit ¶
func (h *Helper) GuildEmojiEdit(ctx context.Context, req *wire.GuildEmojiEditRequest) (response *wire.GuildEmojiEditResponse, err error)
func (*Helper) GuildEmojis ¶
func (h *Helper) GuildEmojis(ctx context.Context, req *wire.GuildEmojisRequest) (response *wire.GuildEmojisResponse, err error)
func (*Helper) GuildIntegrationDelete ¶
func (*Helper) GuildIntegrations ¶
func (h *Helper) GuildIntegrations(ctx context.Context, req *wire.GuildIntegrationsRequest) (response *wire.GuildIntegrationsResponse, err error)
func (*Helper) GuildInvites ¶
func (h *Helper) GuildInvites(ctx context.Context, req *wire.GuildInvitesRequest) (response *wire.GuildInvitesResponse, err error)
func (*Helper) GuildLeave ¶
func (*Helper) GuildMember ¶
func (h *Helper) GuildMember(ctx context.Context, req *wire.GuildMemberRequest) (response *wire.GuildMemberResponse, err error)
func (*Helper) GuildMemberAdd ¶
func (*Helper) GuildMemberDeleteWithReason ¶
func (*Helper) GuildMemberEdit ¶
func (h *Helper) GuildMemberEdit(ctx context.Context, req *wire.GuildMemberEditRequest) (response *wire.GuildMemberEditResponse, err error)
func (*Helper) GuildMemberNickname ¶
func (*Helper) GuildMemberRoleAdd ¶
func (*Helper) GuildMemberRoleRemove ¶
func (*Helper) GuildMembers ¶
func (h *Helper) GuildMembers(ctx context.Context, req *wire.GuildMembersRequest) (response *wire.GuildMembersResponse, err error)
func (*Helper) GuildMembersSearch ¶
func (h *Helper) GuildMembersSearch(ctx context.Context, req *wire.GuildMembersSearchRequest) (response *wire.GuildMembersSearchResponse, err error)
func (*Helper) GuildOnboarding ¶
func (h *Helper) GuildOnboarding(ctx context.Context, req *wire.GuildOnboardingRequest) (response *wire.GuildOnboardingResponse, err error)
func (*Helper) GuildOnboardingEdit ¶
func (h *Helper) GuildOnboardingEdit(ctx context.Context, req *wire.GuildOnboardingEditRequest) (response *wire.GuildOnboardingEditResponse, err error)
func (*Helper) GuildPreview ¶
func (h *Helper) GuildPreview(ctx context.Context, req *wire.GuildPreviewRequest) (response *wire.GuildPreviewResponse, err error)
func (*Helper) GuildPrune ¶
func (h *Helper) GuildPrune(ctx context.Context, req *wire.GuildPruneRequest) (response *wire.GuildPruneResponse, err error)
func (*Helper) GuildPruneCount ¶
func (h *Helper) GuildPruneCount(ctx context.Context, req *wire.GuildPruneCountRequest) (response *wire.GuildPruneCountResponse, err error)
func (*Helper) GuildRole ¶
func (h *Helper) GuildRole(ctx context.Context, req *wire.GuildRoleRequest) (response *wire.GuildRoleResponse, err error)
func (*Helper) GuildRoleCreate ¶
func (h *Helper) GuildRoleCreate(ctx context.Context, req *wire.GuildRoleCreateRequest) (response *wire.GuildRoleCreateResponse, err error)
func (*Helper) GuildRoleDelete ¶
func (*Helper) GuildRoleEdit ¶
func (h *Helper) GuildRoleEdit(ctx context.Context, req *wire.GuildRoleEditRequest) (response *wire.GuildRoleEditResponse, err error)
func (*Helper) GuildRoleMemberCounts ¶
func (h *Helper) GuildRoleMemberCounts(ctx context.Context, req *wire.GuildRoleMemberCountsRequest) (response *wire.GuildRoleMemberCountsResponse, err error)
func (*Helper) GuildRoleReorder ¶
func (h *Helper) GuildRoleReorder(ctx context.Context, req *wire.GuildRoleReorderRequest) (response *wire.GuildRoleReorderResponse, err error)
func (*Helper) GuildRoles ¶
func (h *Helper) GuildRoles(ctx context.Context, req *wire.GuildRolesRequest) (response *wire.GuildRolesResponse, err error)
func (*Helper) GuildScheduledEvent ¶
func (h *Helper) GuildScheduledEvent(ctx context.Context, req *wire.GuildScheduledEventRequest) (response *wire.GuildScheduledEventResponse, err error)
func (*Helper) GuildScheduledEventCreate ¶
func (h *Helper) GuildScheduledEventCreate(ctx context.Context, req *wire.GuildScheduledEventCreateRequest) (response *wire.GuildScheduledEventCreateResponse, err error)
func (*Helper) GuildScheduledEventDelete ¶
func (*Helper) GuildScheduledEventEdit ¶
func (h *Helper) GuildScheduledEventEdit(ctx context.Context, req *wire.GuildScheduledEventEditRequest) (response *wire.GuildScheduledEventEditResponse, err error)
func (*Helper) GuildScheduledEventUsers ¶
func (h *Helper) GuildScheduledEventUsers(ctx context.Context, req *wire.GuildScheduledEventUsersRequest) (response *wire.GuildScheduledEventUsersResponse, err error)
func (*Helper) GuildScheduledEvents ¶
func (h *Helper) GuildScheduledEvents(ctx context.Context, req *wire.GuildScheduledEventsRequest) (response *wire.GuildScheduledEventsResponse, err error)
func (*Helper) GuildTemplate ¶
func (h *Helper) GuildTemplate(ctx context.Context, req *wire.GuildTemplateRequest) (response *wire.GuildTemplateResponse, err error)
func (*Helper) GuildTemplateCreate ¶
func (h *Helper) GuildTemplateCreate(ctx context.Context, req *wire.GuildTemplateCreateRequest) (response *wire.GuildTemplateCreateResponse, err error)
func (*Helper) GuildTemplateDelete ¶
func (*Helper) GuildTemplateEdit ¶
func (h *Helper) GuildTemplateEdit(ctx context.Context, req *wire.GuildTemplateEditRequest) (response *wire.GuildTemplateEditResponse, err error)
func (*Helper) GuildTemplateSync ¶
func (*Helper) GuildTemplates ¶
func (h *Helper) GuildTemplates(ctx context.Context, req *wire.GuildTemplatesRequest) (response *wire.GuildTemplatesResponse, err error)
func (*Helper) GuildThreadsActive ¶
func (h *Helper) GuildThreadsActive(ctx context.Context, req *wire.GuildThreadsActiveRequest) (response *wire.GuildThreadsActiveResponse, err error)
func (*Helper) GuildWebhooks ¶
func (h *Helper) GuildWebhooks(ctx context.Context, req *wire.GuildWebhooksRequest) (response *wire.GuildWebhooksResponse, err error)
func (*Helper) InteractionRespond ¶
func (*Helper) InviteComplex ¶
func (h *Helper) InviteComplex(ctx context.Context, req *wire.InviteComplexRequest) (response *wire.InviteComplexResponse, err error)
func (*Helper) InviteDelete ¶
func (h *Helper) InviteDelete(ctx context.Context, req *wire.InviteDeleteRequest) (response *wire.InviteDeleteResponse, err error)
func (*Helper) MessageReactionAdd ¶
func (*Helper) MessageReactionRemove ¶
func (*Helper) MessageReactions ¶
func (h *Helper) MessageReactions(ctx context.Context, req *wire.MessageReactionsRequest) (response *wire.MessageReactionsResponse, err error)
func (*Helper) MessageReactionsRemoveAll ¶
func (*Helper) MessageReactionsRemoveEmoji ¶
func (*Helper) MessageThreadStartComplex ¶
func (h *Helper) MessageThreadStartComplex(ctx context.Context, req *wire.MessageThreadStartComplexRequest) (response *wire.MessageThreadStartComplexResponse, err error)
func (*Helper) PollAnswerVoters ¶
func (h *Helper) PollAnswerVoters(ctx context.Context, req *wire.PollAnswerVotersRequest) (response *wire.PollAnswerVotersResponse, err error)
func (*Helper) PollExpire ¶
func (h *Helper) PollExpire(ctx context.Context, req *wire.PollExpireRequest) (response *wire.PollExpireResponse, err error)
func (*Helper) RegisterInteractionRoutes ¶
func (*Helper) RequestGuildMembers ¶
func (*Helper) RequestGuildMembersList ¶
func (*Helper) SKUs ¶
func (h *Helper) SKUs(ctx context.Context, req *wire.SKUsRequest) (response *wire.SKUsResponse, err error)
func (*Helper) StageInstance ¶
func (h *Helper) StageInstance(ctx context.Context, req *wire.StageInstanceRequest) (response *wire.StageInstanceResponse, err error)
func (*Helper) StageInstanceCreate ¶
func (h *Helper) StageInstanceCreate(ctx context.Context, req *wire.StageInstanceCreateRequest) (response *wire.StageInstanceCreateResponse, err error)
func (*Helper) StageInstanceDelete ¶
func (*Helper) StageInstanceEdit ¶
func (h *Helper) StageInstanceEdit(ctx context.Context, req *wire.StageInstanceEditRequest) (response *wire.StageInstanceEditResponse, err error)
func (*Helper) Subscription ¶
func (h *Helper) Subscription(ctx context.Context, req *wire.SubscriptionRequest) (response *wire.SubscriptionResponse, err error)
func (*Helper) Subscriptions ¶
func (h *Helper) Subscriptions(ctx context.Context, req *wire.SubscriptionsRequest) (response *wire.SubscriptionsResponse, err error)
func (*Helper) ThreadJoin ¶
func (*Helper) ThreadLeave ¶
func (*Helper) ThreadMember ¶
func (h *Helper) ThreadMember(ctx context.Context, req *wire.ThreadMemberRequest) (response *wire.ThreadMemberResponse, err error)
func (*Helper) ThreadMemberAdd ¶
func (*Helper) ThreadMemberRemove ¶
func (*Helper) ThreadMembers ¶
func (h *Helper) ThreadMembers(ctx context.Context, req *wire.ThreadMembersRequest) (response *wire.ThreadMembersResponse, err error)
func (*Helper) ThreadStartComplex ¶
func (h *Helper) ThreadStartComplex(ctx context.Context, req *wire.ThreadStartComplexRequest) (response *wire.ThreadStartComplexResponse, err error)
func (*Helper) ThreadsArchived ¶
func (h *Helper) ThreadsArchived(ctx context.Context, req *wire.ThreadsArchivedRequest) (response *wire.ThreadsArchivedResponse, err error)
func (*Helper) ThreadsPrivateArchived ¶
func (h *Helper) ThreadsPrivateArchived(ctx context.Context, req *wire.ThreadsPrivateArchivedRequest) (response *wire.ThreadsPrivateArchivedResponse, err error)
func (*Helper) ThreadsPrivateJoinedArchived ¶
func (h *Helper) ThreadsPrivateJoinedArchived(ctx context.Context, req *wire.ThreadsPrivateJoinedArchivedRequest) (response *wire.ThreadsPrivateJoinedArchivedResponse, err error)
func (*Helper) UnregisterInteractionRoutes ¶
func (*Helper) UpdateStatusComplex ¶
func (*Helper) User ¶
func (h *Helper) User(ctx context.Context, req *wire.UserRequest) (response *wire.UserResponse, err error)
func (*Helper) UserChannelCreate ¶
func (h *Helper) UserChannelCreate(ctx context.Context, req *wire.UserChannelCreateRequest) (response *wire.UserChannelCreateResponse, err error)
func (*Helper) UserChannelPermissions ¶
func (h *Helper) UserChannelPermissions(ctx context.Context, req *wire.UserChannelPermissionsRequest) (response *wire.UserChannelPermissionsResponse, err error)
func (*Helper) UserGuilds ¶
func (h *Helper) UserGuilds(ctx context.Context, req *wire.UserGuildsRequest) (response *wire.UserGuildsResponse, err error)
func (*Helper) UserUpdate ¶
func (h *Helper) UserUpdate(ctx context.Context, req *wire.UserUpdateRequest) (response *wire.UserUpdateResponse, err error)
func (*Helper) UserVoiceState ¶
func (h *Helper) UserVoiceState(ctx context.Context, req *wire.UserVoiceStateRequest) (response *wire.UserVoiceStateResponse, err error)
func (*Helper) VoiceRegions ¶
func (h *Helper) VoiceRegions(ctx context.Context, req *wire.VoiceRegionsRequest) (response *wire.VoiceRegionsResponse, err error)
func (*Helper) Webhook ¶
func (h *Helper) Webhook(ctx context.Context, req *wire.WebhookRequest) (response *wire.WebhookResponse, err error)
func (*Helper) WebhookCreate ¶
func (h *Helper) WebhookCreate(ctx context.Context, req *wire.WebhookCreateRequest) (response *wire.WebhookCreateResponse, err error)
func (*Helper) WebhookDelete ¶
func (*Helper) WebhookDeleteWithToken ¶
func (*Helper) WebhookEdit ¶
func (h *Helper) WebhookEdit(ctx context.Context, req *wire.WebhookEditRequest) (response *wire.WebhookEditResponse, err error)
func (*Helper) WebhookEditWithToken ¶
func (h *Helper) WebhookEditWithToken(ctx context.Context, req *wire.WebhookEditWithTokenRequest) (response *wire.WebhookEditWithTokenResponse, err error)
func (*Helper) WebhookMessage ¶
func (h *Helper) WebhookMessage(ctx context.Context, req *wire.WebhookMessageRequest) (response *wire.WebhookMessageResponse, err error)
func (*Helper) WebhookMessageDelete ¶
func (*Helper) WebhookMessageEdit ¶
func (h *Helper) WebhookMessageEdit(ctx context.Context, req *wire.WebhookMessageEditRequest) (response *wire.WebhookMessageEditResponse, err error)
func (*Helper) WebhookThreadExecute ¶
func (h *Helper) WebhookThreadExecute(ctx context.Context, req *wire.WebhookThreadExecuteRequest) (response *wire.WebhookThreadExecuteResponse, err error)
func (*Helper) WebhookWithToken ¶
func (h *Helper) WebhookWithToken(ctx context.Context, req *wire.WebhookWithTokenRequest) (response *wire.WebhookWithTokenResponse, err error)
type MemberRoleReplacement ¶
MemberRoleReplacement is present only when the roles field is present. Replacement requires guild-wide authority because Discord has no atomic assignment-version precondition for the member PATCH.
type OperationContext ¶
type OperationContext struct {
Context context.Context
Principal runtime.InstancePrincipal
Admission *runtime.Admission
Scopes []*corewire.ResourceScope
// contains filtered or unexported fields
}
type RESTPlan ¶
type RESTPlan struct {
Request discordhttp.Request
Targets []ResourceTarget
// RequiredRoots are real mutation roots, never pruned as relationship-only
// ancestors of nested resources.
RequiredRoots []ResourceTarget
RoleReplacement *MemberRoleReplacement
// FullList requires an actual all_resources grant; filtering cannot turn a
// namespace-wide result into a correctly scoped response.
FullList bool
ResourceFree bool
NoDispatch bool
RequireResponse bool
Credentials []CredentialUse
Files []*wire.FileAttachment
Routes []RouteKey
Command *CommandMutation
// ValidateResult checks relationships that are only knowable from the result.
ValidateResult func(context.Context, []byte, []*corewire.ResourceScope) error
// contains filtered or unexported fields
}
RESTPlan is constructed only by fixed, typed, operation-specific code.
type ResourceTarget ¶
type ResourceTarget struct {
Kind string
ID string
GuildID string
ChannelID string
ApplicationID string
MessageID string
}
ResourceTarget is a trusted planner declaration, never a caller assertion of ownership. Kind is a selector key (guild_id, channel_id, user_id, ...). GuildID/ChannelID/ApplicationID are expected relationships and are verified.
type VoicePort ¶
type VoicePort interface {
OnBotVoiceState(context.Context, BotVoiceState)
OnVoiceServer(context.Context, VoiceServer)
}
VoicePort is host-only. No module DTO or credential can access this port.
type VoiceServer ¶
type VoiceServer struct{ GuildID, Endpoint, Token string }
Source Files
¶
- api.go
- api_generated.go
- api_projection_generated.go
- asset_resources.go
- backend.go
- cache.go
- callback.go
- commerce_resources.go
- config.go
- contracts.go
- credential_resources.go
- credentials.go
- errors.go
- events.go
- events_generated.go
- execution.go
- extension.go
- gateway.go
- identity.go
- json_codec.go
- json_codec_generated.go
- nested_resources.go
- ownership.go
- reconcile.go
- resources.go
- rest_plans.go
- rest_plans_generated.go
- result_scopes.go
- statehelper.go
- voice_state.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package http implements the host-only, single-attempt Discord HTTP boundary.
|
Package http implements the host-only, single-attempt Discord HTTP boundary. |
|
Package voicejobs implements the optional owner-bound Discord voice service.
|
Package voicejobs implements the optional owner-bound Discord voice service. |