Documentation
¶
Index ¶
- Variables
- func GRPCToChannel(sandwichChannel *Channel) (channel discord.Channel, err error)
- func GRPCToEmoji(sandwichEmoji *Emoji) (emoji discord.Emoji, err error)
- func GRPCToGuild(sandwichGuild *Guild) (guild discord.Guild, err error)
- func GRPCToGuildMember(sandwichGuildMember *GuildMember) (guildMember discord.GuildMember, err error)
- func GRPCToRole(sandwichRole *Role) (role discord.Role, err error)
- func GRPCToUser(sandwichUser *User) (user discord.User, err error)
- func RegisterSandwichServer(s grpc.ServiceRegistrar, srv SandwichServer)
- type Activity
- func (*Activity) Descriptor() ([]byte, []int)deprecated
- func (x *Activity) GetApplicationID() int64
- func (x *Activity) GetAssets() *Assets
- func (x *Activity) GetDetails() string
- func (x *Activity) GetFlags() int32
- func (x *Activity) GetInstance() bool
- func (x *Activity) GetName() string
- func (x *Activity) GetParty() *Party
- func (x *Activity) GetSecrets() *Secrets
- func (x *Activity) GetState() string
- func (x *Activity) GetTimestamps() *Timestamps
- func (x *Activity) GetType() int32
- func (x *Activity) GetURL() string
- func (*Activity) ProtoMessage()
- func (x *Activity) ProtoReflect() protoreflect.Message
- func (x *Activity) Reset()
- func (x *Activity) String() string
- type Application
- func (*Application) Descriptor() ([]byte, []int)deprecated
- func (x *Application) GetBot() *User
- func (x *Application) GetBotPublic() bool
- func (x *Application) GetBotRequireCodeGrant() bool
- func (x *Application) GetCoverImage() string
- func (x *Application) GetDescription() string
- func (x *Application) GetFlags() int32
- func (x *Application) GetGuildID() int64
- func (x *Application) GetID() int64
- func (x *Application) GetIcon() string
- func (x *Application) GetName() string
- func (x *Application) GetOwner() *User
- func (x *Application) GetPrimarySKUID() int64
- func (x *Application) GetPrivacyPolicyURL() string
- func (x *Application) GetRPCOrigins() []string
- func (x *Application) GetSlug() string
- func (x *Application) GetSummary() string
- func (x *Application) GetTeam() *ApplicationTeam
- func (x *Application) GetTermsOfServiceURL() string
- func (x *Application) GetVerifyKey() string
- func (*Application) ProtoMessage()
- func (x *Application) ProtoReflect() protoreflect.Message
- func (x *Application) Reset()
- func (x *Application) String() string
- type ApplicationCommand
- func (*ApplicationCommand) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationCommand) GetApplicationID() int64
- func (x *ApplicationCommand) GetDefaultPermission() bool
- func (x *ApplicationCommand) GetDescription() string
- func (x *ApplicationCommand) GetGuildID() int64
- func (x *ApplicationCommand) GetID() int64
- func (x *ApplicationCommand) GetName() string
- func (x *ApplicationCommand) GetOptions() []*ApplicationCommandOption
- func (x *ApplicationCommand) GetType() uint32
- func (x *ApplicationCommand) GetVersion() int32
- func (*ApplicationCommand) ProtoMessage()
- func (x *ApplicationCommand) ProtoReflect() protoreflect.Message
- func (x *ApplicationCommand) Reset()
- func (x *ApplicationCommand) String() string
- type ApplicationCommandOption
- func (*ApplicationCommandOption) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationCommandOption) GetAutocomplete() bool
- func (x *ApplicationCommandOption) GetChannelTypes() []uint32
- func (x *ApplicationCommandOption) GetChoices() []*ApplicationCommandOptionChoice
- func (x *ApplicationCommandOption) GetDescription() string
- func (x *ApplicationCommandOption) GetMaxValue() int32
- func (x *ApplicationCommandOption) GetMinValue() int32
- func (x *ApplicationCommandOption) GetName() string
- func (x *ApplicationCommandOption) GetOptions() []*ApplicationCommandOption
- func (x *ApplicationCommandOption) GetRequired() bool
- func (x *ApplicationCommandOption) GetType() uint32
- func (*ApplicationCommandOption) ProtoMessage()
- func (x *ApplicationCommandOption) ProtoReflect() protoreflect.Message
- func (x *ApplicationCommandOption) Reset()
- func (x *ApplicationCommandOption) String() string
- type ApplicationCommandOptionChoice
- func (*ApplicationCommandOptionChoice) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationCommandOptionChoice) GetName() string
- func (x *ApplicationCommandOptionChoice) GetValue() []byte
- func (*ApplicationCommandOptionChoice) ProtoMessage()
- func (x *ApplicationCommandOptionChoice) ProtoReflect() protoreflect.Message
- func (x *ApplicationCommandOptionChoice) Reset()
- func (x *ApplicationCommandOptionChoice) String() string
- type ApplicationCommandPermissions
- func (*ApplicationCommandPermissions) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationCommandPermissions) GetAllowed() bool
- func (x *ApplicationCommandPermissions) GetID() int64
- func (x *ApplicationCommandPermissions) GetType() uint32
- func (*ApplicationCommandPermissions) ProtoMessage()
- func (x *ApplicationCommandPermissions) ProtoReflect() protoreflect.Message
- func (x *ApplicationCommandPermissions) Reset()
- func (x *ApplicationCommandPermissions) String() string
- type ApplicationSelectOption
- func (*ApplicationSelectOption) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationSelectOption) GetDefault() bool
- func (x *ApplicationSelectOption) GetDescription() string
- func (x *ApplicationSelectOption) GetEmoji() *Emoji
- func (x *ApplicationSelectOption) GetLabel() string
- func (x *ApplicationSelectOption) GetValue() string
- func (*ApplicationSelectOption) ProtoMessage()
- func (x *ApplicationSelectOption) ProtoReflect() protoreflect.Message
- func (x *ApplicationSelectOption) Reset()
- func (x *ApplicationSelectOption) String() string
- type ApplicationTeam
- func (*ApplicationTeam) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationTeam) GetID() int64
- func (x *ApplicationTeam) GetIcon() string
- func (x *ApplicationTeam) GetMembers() []*ApplicationTeamMember
- func (x *ApplicationTeam) GetName() string
- func (x *ApplicationTeam) GetOwnerUserID() int64
- func (*ApplicationTeam) ProtoMessage()
- func (x *ApplicationTeam) ProtoReflect() protoreflect.Message
- func (x *ApplicationTeam) Reset()
- func (x *ApplicationTeam) String() string
- type ApplicationTeamMember
- func (*ApplicationTeamMember) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationTeamMember) GetMembershipState() uint32
- func (x *ApplicationTeamMember) GetPermissions() []string
- func (x *ApplicationTeamMember) GetTeamID() int64
- func (x *ApplicationTeamMember) GetUser() *User
- func (*ApplicationTeamMember) ProtoMessage()
- func (x *ApplicationTeamMember) ProtoReflect() protoreflect.Message
- func (x *ApplicationTeamMember) Reset()
- func (x *ApplicationTeamMember) String() string
- type Assets
- func (*Assets) Descriptor() ([]byte, []int)deprecated
- func (x *Assets) GetLargeImage() string
- func (x *Assets) GetLargeText() string
- func (x *Assets) GetSmallImage() string
- func (x *Assets) GetSmallText() string
- func (*Assets) ProtoMessage()
- func (x *Assets) ProtoReflect() protoreflect.Message
- func (x *Assets) Reset()
- func (x *Assets) String() string
- type BaseResponse
- func (*BaseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BaseResponse) GetError() string
- func (x *BaseResponse) GetOk() bool
- func (x *BaseResponse) GetVersion() string
- func (*BaseResponse) ProtoMessage()
- func (x *BaseResponse) ProtoReflect() protoreflect.Message
- func (x *BaseResponse) Reset()
- func (x *BaseResponse) String() string
- type Channel
- func (*Channel) Descriptor() ([]byte, []int)deprecated
- func (x *Channel) GetApplicationID() int64
- func (x *Channel) GetBitrate() int32
- func (x *Channel) GetDefaultAutoArchiveDuration() int32
- func (x *Channel) GetGuildID() int64
- func (x *Channel) GetID() int64
- func (x *Channel) GetIcon() string
- func (x *Channel) GetLastMessageID() string
- func (x *Channel) GetLastPinTimestamp() string
- func (x *Channel) GetMemberCount() int32
- func (x *Channel) GetMessageCount() int32
- func (x *Channel) GetNSFW() bool
- func (x *Channel) GetName() string
- func (x *Channel) GetOwnerID() int64
- func (x *Channel) GetParentID() int64
- func (x *Channel) GetPermissionOverwrites() []*ChannelOverwrite
- func (x *Channel) GetPermissions() int64
- func (x *Channel) GetPosition() int32
- func (x *Channel) GetRTCRegion() string
- func (x *Channel) GetRateLimitPerUser() int32
- func (x *Channel) GetRecipients() []*User
- func (x *Channel) GetThreadMember() *ThreadMember
- func (x *Channel) GetThreadMetadata() *ThreadMetadata
- func (x *Channel) GetTopic() string
- func (x *Channel) GetType() uint32
- func (x *Channel) GetUserLimit() int32
- func (x *Channel) GetVideoQualityMode() uint32
- func (*Channel) ProtoMessage()
- func (x *Channel) ProtoReflect() protoreflect.Message
- func (x *Channel) Reset()
- func (x *Channel) String() string
- type ChannelOverwrite
- func (*ChannelOverwrite) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelOverwrite) GetAllow() int64
- func (x *ChannelOverwrite) GetDeny() int64
- func (x *ChannelOverwrite) GetID() int64
- func (x *ChannelOverwrite) GetType() uint32
- func (*ChannelOverwrite) ProtoMessage()
- func (x *ChannelOverwrite) ProtoReflect() protoreflect.Message
- func (x *ChannelOverwrite) Reset()
- func (x *ChannelOverwrite) String() string
- type ChannelsResponse
- func (*ChannelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelsResponse) GetBaseResponse() *BaseResponse
- func (x *ChannelsResponse) GetGuildChannels() map[int64]*Channel
- func (*ChannelsResponse) ProtoMessage()
- func (x *ChannelsResponse) ProtoReflect() protoreflect.Message
- func (x *ChannelsResponse) Reset()
- func (x *ChannelsResponse) String() string
- type ClientStatus
- func (*ClientStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ClientStatus) GetDesktop() string
- func (x *ClientStatus) GetMobile() string
- func (x *ClientStatus) GetWeb() string
- func (*ClientStatus) ProtoMessage()
- func (x *ClientStatus) ProtoReflect() protoreflect.Message
- func (x *ClientStatus) Reset()
- func (x *ClientStatus) String() string
- type CreateDMChannel
- type Embed
- func (*Embed) Descriptor() ([]byte, []int)deprecated
- func (x *Embed) GetAuthor() *EmbedAuthor
- func (x *Embed) GetColor() int32
- func (x *Embed) GetDescription() string
- func (x *Embed) GetFields() []*EmbedField
- func (x *Embed) GetFooter() *EmbedFooter
- func (x *Embed) GetImage() *EmbedImage
- func (x *Embed) GetProvider() *EmbedProvider
- func (x *Embed) GetThumbnail() *EmbedThumbnail
- func (x *Embed) GetTimestamp() string
- func (x *Embed) GetTitle() string
- func (x *Embed) GetType() string
- func (x *Embed) GetURL() string
- func (x *Embed) GetVideo() *EmbedVideo
- func (*Embed) ProtoMessage()
- func (x *Embed) ProtoReflect() protoreflect.Message
- func (x *Embed) Reset()
- func (x *Embed) String() string
- type EmbedAuthor
- func (*EmbedAuthor) Descriptor() ([]byte, []int)deprecated
- func (x *EmbedAuthor) GetIconURL() string
- func (x *EmbedAuthor) GetName() string
- func (x *EmbedAuthor) GetProxyIconURL() string
- func (x *EmbedAuthor) GetURL() string
- func (*EmbedAuthor) ProtoMessage()
- func (x *EmbedAuthor) ProtoReflect() protoreflect.Message
- func (x *EmbedAuthor) Reset()
- func (x *EmbedAuthor) String() string
- type EmbedField
- func (*EmbedField) Descriptor() ([]byte, []int)deprecated
- func (x *EmbedField) GetInline() bool
- func (x *EmbedField) GetName() string
- func (x *EmbedField) GetValue() string
- func (*EmbedField) ProtoMessage()
- func (x *EmbedField) ProtoReflect() protoreflect.Message
- func (x *EmbedField) Reset()
- func (x *EmbedField) String() string
- type EmbedFooter
- func (*EmbedFooter) Descriptor() ([]byte, []int)deprecated
- func (x *EmbedFooter) GetIconURL() string
- func (x *EmbedFooter) GetProxyIconURL() string
- func (x *EmbedFooter) GetText() string
- func (*EmbedFooter) ProtoMessage()
- func (x *EmbedFooter) ProtoReflect() protoreflect.Message
- func (x *EmbedFooter) Reset()
- func (x *EmbedFooter) String() string
- type EmbedImage
- func (*EmbedImage) Descriptor() ([]byte, []int)deprecated
- func (x *EmbedImage) GetHeight() int32
- func (x *EmbedImage) GetProxyURL() string
- func (x *EmbedImage) GetURL() string
- func (x *EmbedImage) GetWidth() int32
- func (*EmbedImage) ProtoMessage()
- func (x *EmbedImage) ProtoReflect() protoreflect.Message
- func (x *EmbedImage) Reset()
- func (x *EmbedImage) String() string
- type EmbedProvider
- func (*EmbedProvider) Descriptor() ([]byte, []int)deprecated
- func (x *EmbedProvider) GetName() string
- func (x *EmbedProvider) GetURL() string
- func (*EmbedProvider) ProtoMessage()
- func (x *EmbedProvider) ProtoReflect() protoreflect.Message
- func (x *EmbedProvider) Reset()
- func (x *EmbedProvider) String() string
- type EmbedThumbnail
- func (*EmbedThumbnail) Descriptor() ([]byte, []int)deprecated
- func (x *EmbedThumbnail) GetHeight() int32
- func (x *EmbedThumbnail) GetProxyURL() string
- func (x *EmbedThumbnail) GetURL() string
- func (x *EmbedThumbnail) GetWidth() int32
- func (*EmbedThumbnail) ProtoMessage()
- func (x *EmbedThumbnail) ProtoReflect() protoreflect.Message
- func (x *EmbedThumbnail) Reset()
- func (x *EmbedThumbnail) String() string
- type EmbedVideo
- func (*EmbedVideo) Descriptor() ([]byte, []int)deprecated
- func (x *EmbedVideo) GetHeight() int32
- func (x *EmbedVideo) GetURL() string
- func (x *EmbedVideo) GetWidth() int32
- func (*EmbedVideo) ProtoMessage()
- func (x *EmbedVideo) ProtoReflect() protoreflect.Message
- func (x *EmbedVideo) Reset()
- func (x *EmbedVideo) String() string
- type Emoji
- func (*Emoji) Descriptor() ([]byte, []int)deprecated
- func (x *Emoji) GetAnimated() bool
- func (x *Emoji) GetAvailable() bool
- func (x *Emoji) GetGuildID() int64
- func (x *Emoji) GetID() int64
- func (x *Emoji) GetManaged() bool
- func (x *Emoji) GetName() string
- func (x *Emoji) GetRequireColons() bool
- func (x *Emoji) GetRoles() []int64
- func (x *Emoji) GetUser() *User
- func (*Emoji) ProtoMessage()
- func (x *Emoji) ProtoReflect() protoreflect.Message
- func (x *Emoji) Reset()
- func (x *Emoji) String() string
- type EmojisResponse
- func (*EmojisResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EmojisResponse) GetBaseResponse() *BaseResponse
- func (x *EmojisResponse) GetGuildEmojis() map[int64]*Emoji
- func (*EmojisResponse) ProtoMessage()
- func (x *EmojisResponse) ProtoReflect() protoreflect.Message
- func (x *EmojisResponse) Reset()
- func (x *EmojisResponse) String() string
- type EventMetadata
- type FetchConsumerConfigurationRequest
- func (*FetchConsumerConfigurationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchConsumerConfigurationRequest) GetIdentifier() string
- func (*FetchConsumerConfigurationRequest) ProtoMessage()
- func (x *FetchConsumerConfigurationRequest) ProtoReflect() protoreflect.Message
- func (x *FetchConsumerConfigurationRequest) Reset()
- func (x *FetchConsumerConfigurationRequest) String() string
- type FetchConsumerConfigurationResponse
- func (*FetchConsumerConfigurationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FetchConsumerConfigurationResponse) GetFile() []byte
- func (*FetchConsumerConfigurationResponse) ProtoMessage()
- func (x *FetchConsumerConfigurationResponse) ProtoReflect() protoreflect.Message
- func (x *FetchConsumerConfigurationResponse) Reset()
- func (x *FetchConsumerConfigurationResponse) String() string
- type FetchGuildChannelsRequest
- func (*FetchGuildChannelsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchGuildChannelsRequest) GetChannelIDs() []int64
- func (x *FetchGuildChannelsRequest) GetGuildID() int64
- func (x *FetchGuildChannelsRequest) GetQuery() string
- func (*FetchGuildChannelsRequest) ProtoMessage()
- func (x *FetchGuildChannelsRequest) ProtoReflect() protoreflect.Message
- func (x *FetchGuildChannelsRequest) Reset()
- func (x *FetchGuildChannelsRequest) String() string
- type FetchGuildEmojisRequest
- func (*FetchGuildEmojisRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchGuildEmojisRequest) GetEmojiIDs() []int64
- func (x *FetchGuildEmojisRequest) GetGuildID() int64
- func (x *FetchGuildEmojisRequest) GetQuery() string
- func (*FetchGuildEmojisRequest) ProtoMessage()
- func (x *FetchGuildEmojisRequest) ProtoReflect() protoreflect.Message
- func (x *FetchGuildEmojisRequest) Reset()
- func (x *FetchGuildEmojisRequest) String() string
- type FetchGuildMembersRequest
- func (*FetchGuildMembersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchGuildMembersRequest) GetAlwaysChunk() bool
- func (x *FetchGuildMembersRequest) GetChunkGuild() bool
- func (x *FetchGuildMembersRequest) GetGuildID() int64
- func (x *FetchGuildMembersRequest) GetQuery() string
- func (x *FetchGuildMembersRequest) GetUserIDs() []int64
- func (*FetchGuildMembersRequest) ProtoMessage()
- func (x *FetchGuildMembersRequest) ProtoReflect() protoreflect.Message
- func (x *FetchGuildMembersRequest) Reset()
- func (x *FetchGuildMembersRequest) String() string
- type FetchGuildRequest
- func (*FetchGuildRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchGuildRequest) GetGuildIDs() []int64
- func (x *FetchGuildRequest) GetQuery() string
- func (*FetchGuildRequest) ProtoMessage()
- func (x *FetchGuildRequest) ProtoReflect() protoreflect.Message
- func (x *FetchGuildRequest) Reset()
- func (x *FetchGuildRequest) String() string
- type FetchGuildRolesRequest
- func (*FetchGuildRolesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchGuildRolesRequest) GetGuildID() int64
- func (x *FetchGuildRolesRequest) GetQuery() string
- func (x *FetchGuildRolesRequest) GetRoleIDs() []int64
- func (*FetchGuildRolesRequest) ProtoMessage()
- func (x *FetchGuildRolesRequest) ProtoReflect() protoreflect.Message
- func (x *FetchGuildRolesRequest) Reset()
- func (x *FetchGuildRolesRequest) String() string
- type FetchMutualGuildsRequest
- func (*FetchMutualGuildsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchMutualGuildsRequest) GetExpand() bool
- func (x *FetchMutualGuildsRequest) GetUserID() int64
- func (*FetchMutualGuildsRequest) ProtoMessage()
- func (x *FetchMutualGuildsRequest) ProtoReflect() protoreflect.Message
- func (x *FetchMutualGuildsRequest) Reset()
- func (x *FetchMutualGuildsRequest) String() string
- type FetchUsersRequest
- func (*FetchUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FetchUsersRequest) GetCreateDMChannel() bool
- func (x *FetchUsersRequest) GetQuery() string
- func (x *FetchUsersRequest) GetToken() string
- func (x *FetchUsersRequest) GetUserIDs() []int64
- func (*FetchUsersRequest) ProtoMessage()
- func (x *FetchUsersRequest) ProtoReflect() protoreflect.Message
- func (x *FetchUsersRequest) Reset()
- func (x *FetchUsersRequest) String() string
- type Gateway
- type GatewayBot
- func (*GatewayBot) Descriptor() ([]byte, []int)deprecated
- func (x *GatewayBot) GetMaxConcurrency() int32
- func (x *GatewayBot) GetRemaining() int32
- func (x *GatewayBot) GetResetAfter() int32
- func (x *GatewayBot) GetShards() int32
- func (x *GatewayBot) GetTotal() int32
- func (x *GatewayBot) GetURL() string
- func (*GatewayBot) ProtoMessage()
- func (x *GatewayBot) ProtoReflect() protoreflect.Message
- func (x *GatewayBot) Reset()
- func (x *GatewayBot) String() string
- type Guild
- func (*Guild) Descriptor() ([]byte, []int)deprecated
- func (x *Guild) GetAFKChannelID() int64
- func (x *Guild) GetAFKTimeout() int32
- func (x *Guild) GetApplicationID() int64
- func (x *Guild) GetApproximateMemberCount() int32
- func (x *Guild) GetApproximatePresenceCount() int32
- func (x *Guild) GetBanner() string
- func (x *Guild) GetChannels() []*Channel
- func (x *Guild) GetDefaultMessageNotifications() int32
- func (x *Guild) GetDescription() string
- func (x *Guild) GetDiscoverySplash() string
- func (x *Guild) GetEmojis() []*Emoji
- func (x *Guild) GetExplicitContentFilter() int32
- func (x *Guild) GetFeatures() []string
- func (x *Guild) GetGuildScheduledEvents() []*ScheduledEvent
- func (x *Guild) GetID() int64
- func (x *Guild) GetIcon() string
- func (x *Guild) GetIconHash() string
- func (x *Guild) GetJoinedAt() string
- func (x *Guild) GetLarge() bool
- func (x *Guild) GetMFALevel() uint32
- func (x *Guild) GetMaxMembers() int32
- func (x *Guild) GetMaxPresences() int32
- func (x *Guild) GetMaxVideoChannelUsers() int32
- func (x *Guild) GetMemberCount() int32
- func (x *Guild) GetMembers() []*GuildMember
- func (x *Guild) GetNSFWLevel() uint32
- func (x *Guild) GetName() string
- func (x *Guild) GetOwner() bool
- func (x *Guild) GetOwnerID() int64
- func (x *Guild) GetPermissions() int64
- func (x *Guild) GetPreferredLocale() string
- func (x *Guild) GetPremiumProgressBarEnabled() bool
- func (x *Guild) GetPremiumSubscriptionCount() int32
- func (x *Guild) GetPremiumTier() uint32
- func (x *Guild) GetPresences() []*Activity
- func (x *Guild) GetPublicUpdatesChannelID() int64
- func (x *Guild) GetRegion() string
- func (x *Guild) GetRoles() []*Role
- func (x *Guild) GetRulesChannelID() int64
- func (x *Guild) GetSplash() string
- func (x *Guild) GetStageInstances() []*StageInstance
- func (x *Guild) GetStickers() []*Sticker
- func (x *Guild) GetSystemChannelFlags() uint32
- func (x *Guild) GetSystemChannelID() int64
- func (x *Guild) GetUnavailable() bool
- func (x *Guild) GetVanityURLCode() string
- func (x *Guild) GetVerificationLevel() uint32
- func (x *Guild) GetVoiceStates() []*VoiceState
- func (x *Guild) GetWidgetChannelID() int64
- func (x *Guild) GetWidgetEnabled() bool
- func (*Guild) ProtoMessage()
- func (x *Guild) ProtoReflect() protoreflect.Message
- func (x *Guild) Reset()
- func (x *Guild) String() string
- type GuildApplicationCommandPermissions
- func (*GuildApplicationCommandPermissions) Descriptor() ([]byte, []int)deprecated
- func (x *GuildApplicationCommandPermissions) GetApplicationID() int64
- func (x *GuildApplicationCommandPermissions) GetGuildID() int64
- func (x *GuildApplicationCommandPermissions) GetID() int64
- func (x *GuildApplicationCommandPermissions) GetPermissions() []*ApplicationCommandPermissions
- func (*GuildApplicationCommandPermissions) ProtoMessage()
- func (x *GuildApplicationCommandPermissions) ProtoReflect() protoreflect.Message
- func (x *GuildApplicationCommandPermissions) Reset()
- func (x *GuildApplicationCommandPermissions) String() string
- type GuildMember
- func (*GuildMember) Descriptor() ([]byte, []int)deprecated
- func (x *GuildMember) GetAvatar() string
- func (x *GuildMember) GetCommunicationDisabledUntil() string
- func (x *GuildMember) GetDeaf() bool
- func (x *GuildMember) GetGuildID() int64
- func (x *GuildMember) GetJoinedAt() string
- func (x *GuildMember) GetMute() bool
- func (x *GuildMember) GetNick() string
- func (x *GuildMember) GetPending() bool
- func (x *GuildMember) GetPermissions() int64
- func (x *GuildMember) GetPremiumSince() string
- func (x *GuildMember) GetRoles() []int64
- func (x *GuildMember) GetUser() *User
- func (*GuildMember) ProtoMessage()
- func (x *GuildMember) ProtoReflect() protoreflect.Message
- func (x *GuildMember) Reset()
- func (x *GuildMember) String() string
- type GuildMembersResponse
- func (*GuildMembersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GuildMembersResponse) GetBaseResponse() *BaseResponse
- func (x *GuildMembersResponse) GetGuildMembers() map[int64]*GuildMember
- func (*GuildMembersResponse) ProtoMessage()
- func (x *GuildMembersResponse) ProtoReflect() protoreflect.Message
- func (x *GuildMembersResponse) Reset()
- func (x *GuildMembersResponse) String() string
- type GuildResponse
- func (*GuildResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GuildResponse) GetBaseResponse() *BaseResponse
- func (x *GuildResponse) GetGuild() *Guild
- func (*GuildResponse) ProtoMessage()
- func (x *GuildResponse) ProtoReflect() protoreflect.Message
- func (x *GuildResponse) Reset()
- func (x *GuildResponse) String() string
- type GuildRolesResponse
- func (*GuildRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GuildRolesResponse) GetBaseResponse() *BaseResponse
- func (x *GuildRolesResponse) GetGuildRoles() map[int64]*Role
- func (*GuildRolesResponse) ProtoMessage()
- func (x *GuildRolesResponse) ProtoReflect() protoreflect.Message
- func (x *GuildRolesResponse) Reset()
- func (x *GuildRolesResponse) String() string
- type GuildsResponse
- func (*GuildsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GuildsResponse) GetBaseResponse() *BaseResponse
- func (x *GuildsResponse) GetGuildIDs() []int64
- func (x *GuildsResponse) GetGuilds() map[int64]*Guild
- func (*GuildsResponse) ProtoMessage()
- func (x *GuildsResponse) ProtoReflect() protoreflect.Message
- func (x *GuildsResponse) Reset()
- func (x *GuildsResponse) String() string
- type Integration
- func (*Integration) Descriptor() ([]byte, []int)deprecated
- func (x *Integration) GetAccount() *IntegrationAccount
- func (x *Integration) GetApplication() *Application
- func (x *Integration) GetEnableEmoticons() bool
- func (x *Integration) GetEnabled() bool
- func (x *Integration) GetExpireBehavior() uint32
- func (x *Integration) GetExpireGracePeriod() int32
- func (x *Integration) GetGuildID() int64
- func (x *Integration) GetID() int64
- func (x *Integration) GetName() string
- func (x *Integration) GetRevoked() bool
- func (x *Integration) GetRoleID() int64
- func (x *Integration) GetSubscriberCount() int32
- func (x *Integration) GetSyncedAt() string
- func (x *Integration) GetSyncing() bool
- func (x *Integration) GetType() string
- func (x *Integration) GetUser() *User
- func (*Integration) ProtoMessage()
- func (x *Integration) ProtoReflect() protoreflect.Message
- func (x *Integration) Reset()
- func (x *Integration) String() string
- type IntegrationAccount
- func (*IntegrationAccount) Descriptor() ([]byte, []int)deprecated
- func (x *IntegrationAccount) GetID() string
- func (x *IntegrationAccount) GetName() string
- func (*IntegrationAccount) ProtoMessage()
- func (x *IntegrationAccount) ProtoReflect() protoreflect.Message
- func (x *IntegrationAccount) Reset()
- func (x *IntegrationAccount) String() string
- type Interaction
- func (*Interaction) Descriptor() ([]byte, []int)deprecated
- func (x *Interaction) GetApplicationID() int64
- func (x *Interaction) GetChannelID() int64
- func (x *Interaction) GetData() *InteractionData
- func (x *Interaction) GetGuildID() int64
- func (x *Interaction) GetGuildLocale() string
- func (x *Interaction) GetID() int64
- func (x *Interaction) GetLocale() string
- func (x *Interaction) GetMember() *GuildMember
- func (x *Interaction) GetMessage() *Message
- func (x *Interaction) GetToken() string
- func (x *Interaction) GetType() uint32
- func (x *Interaction) GetUser() *User
- func (x *Interaction) GetVersion() int32
- func (*Interaction) ProtoMessage()
- func (x *Interaction) ProtoReflect() protoreflect.Message
- func (x *Interaction) Reset()
- func (x *Interaction) String() string
- type InteractionComponent
- func (*InteractionComponent) Descriptor() ([]byte, []int)deprecated
- func (x *InteractionComponent) GetComponents() []*InteractionComponent
- func (x *InteractionComponent) GetCustomID() string
- func (x *InteractionComponent) GetDisabled() bool
- func (x *InteractionComponent) GetEmoji() *Emoji
- func (x *InteractionComponent) GetLabel() string
- func (x *InteractionComponent) GetMaxValues() int32
- func (x *InteractionComponent) GetMinValues() int32
- func (x *InteractionComponent) GetOptions() []*ApplicationSelectOption
- func (x *InteractionComponent) GetPlaceholder() string
- func (x *InteractionComponent) GetStyle() uint32
- func (x *InteractionComponent) GetType() uint32
- func (x *InteractionComponent) GetURL() string
- func (*InteractionComponent) ProtoMessage()
- func (x *InteractionComponent) ProtoReflect() protoreflect.Message
- func (x *InteractionComponent) Reset()
- func (x *InteractionComponent) String() string
- type InteractionData
- func (*InteractionData) Descriptor() ([]byte, []int)deprecated
- func (x *InteractionData) GetComponentType() uint32
- func (x *InteractionData) GetCustomID() string
- func (x *InteractionData) GetID() int64
- func (x *InteractionData) GetName() string
- func (x *InteractionData) GetOptions() []*InteractionDataOption
- func (x *InteractionData) GetResolved() *InteractionResolvedData
- func (x *InteractionData) GetTargetID() int64
- func (x *InteractionData) GetType() uint32
- func (x *InteractionData) GetValues() []*ApplicationSelectOption
- func (*InteractionData) ProtoMessage()
- func (x *InteractionData) ProtoReflect() protoreflect.Message
- func (x *InteractionData) Reset()
- func (x *InteractionData) String() string
- type InteractionDataOption
- func (*InteractionDataOption) Descriptor() ([]byte, []int)deprecated
- func (x *InteractionDataOption) GetFocused() bool
- func (x *InteractionDataOption) GetName() string
- func (x *InteractionDataOption) GetOptions() []*InteractionDataOption
- func (x *InteractionDataOption) GetType() uint32
- func (x *InteractionDataOption) GetValue() []byte
- func (*InteractionDataOption) ProtoMessage()
- func (x *InteractionDataOption) ProtoReflect() protoreflect.Message
- func (x *InteractionDataOption) Reset()
- func (x *InteractionDataOption) String() string
- type InteractionResolvedData
- func (*InteractionResolvedData) Descriptor() ([]byte, []int)deprecated
- func (x *InteractionResolvedData) GetChannels() []*Channel
- func (x *InteractionResolvedData) GetMembers() []*GuildMember
- func (x *InteractionResolvedData) GetMessages() []*Message
- func (x *InteractionResolvedData) GetRoles() []*Role
- func (x *InteractionResolvedData) GetUsers() []*User
- func (*InteractionResolvedData) ProtoMessage()
- func (x *InteractionResolvedData) ProtoReflect() protoreflect.Message
- func (x *InteractionResolvedData) Reset()
- func (x *InteractionResolvedData) String() string
- type Invite
- func (*Invite) Descriptor() ([]byte, []int)deprecated
- func (x *Invite) GetApproximateMemberCount() int32
- func (x *Invite) GetApproximatePresenceCount() int32
- func (x *Invite) GetChannel() *Channel
- func (x *Invite) GetCode() string
- func (x *Invite) GetCreatedAt() string
- func (x *Invite) GetExpiresAt() string
- func (x *Invite) GetGuild() *Guild
- func (x *Invite) GetGuildID() int64
- func (x *Invite) GetInviter() *User
- func (x *Invite) GetMaxAge() int32
- func (x *Invite) GetMaxUses() int32
- func (x *Invite) GetScheduledEvent() *ScheduledEvent
- func (x *Invite) GetStageInstance() *InviteStageInstance
- func (x *Invite) GetTargetApplication() *Application
- func (x *Invite) GetTargetType() uint32
- func (x *Invite) GetTargetUser() *User
- func (x *Invite) GetTemporary() bool
- func (x *Invite) GetUses() int32
- func (*Invite) ProtoMessage()
- func (x *Invite) ProtoReflect() protoreflect.Message
- func (x *Invite) Reset()
- func (x *Invite) String() string
- type InviteStageInstance
- func (*InviteStageInstance) Descriptor() ([]byte, []int)deprecated
- func (x *InviteStageInstance) GetMembers() []*GuildMember
- func (x *InviteStageInstance) GetParticipantCount() int32
- func (x *InviteStageInstance) GetSpeakerCount() int32
- func (x *InviteStageInstance) GetTopic() string
- func (*InviteStageInstance) ProtoMessage()
- func (x *InviteStageInstance) ProtoReflect() protoreflect.Message
- func (x *InviteStageInstance) Reset()
- func (x *InviteStageInstance) String() string
- type ListenRequest
- type ListenResponse
- func (*ListenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListenResponse) GetData() []byte
- func (x *ListenResponse) GetTimestamp() int64
- func (*ListenResponse) ProtoMessage()
- func (x *ListenResponse) ProtoReflect() protoreflect.Message
- func (x *ListenResponse) Reset()
- func (x *ListenResponse) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetActivity() *MessageActivity
- func (x *Message) GetApplication() *Application
- func (x *Message) GetAttachments() []*MessageAttachment
- func (x *Message) GetAuthor() *User
- func (x *Message) GetChannelID() int64
- func (x *Message) GetComponents() []*InteractionComponent
- func (x *Message) GetContent() string
- func (x *Message) GetEditedTimestamp() string
- func (x *Message) GetEmbeds() []*Embed
- func (x *Message) GetFlags() uint32
- func (x *Message) GetGuildID() int64
- func (x *Message) GetID() int64
- func (x *Message) GetInteraction() *MessageInteraction
- func (x *Message) GetMember() *GuildMember
- func (x *Message) GetMentionChannels() []*MessageChannelMention
- func (x *Message) GetMentionEveryone() bool
- func (x *Message) GetMentionRoles() []int64
- func (x *Message) GetMentions() []*User
- func (x *Message) GetMessageReference() []*MessageReference
- func (x *Message) GetPinned() bool
- func (x *Message) GetReactions() []*MessageReaction
- func (x *Message) GetReferencedMessage() *Message
- func (x *Message) GetStickerItems() []*MessageSticker
- func (x *Message) GetTTS() bool
- func (x *Message) GetThread() *Channel
- func (x *Message) GetTimestamp() string
- func (x *Message) GetType() uint32
- func (x *Message) GetWebhookID() int64
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type MessageActivity
- func (*MessageActivity) Descriptor() ([]byte, []int)deprecated
- func (x *MessageActivity) GetPartyID() string
- func (x *MessageActivity) GetType() uint32
- func (*MessageActivity) ProtoMessage()
- func (x *MessageActivity) ProtoReflect() protoreflect.Message
- func (x *MessageActivity) Reset()
- func (x *MessageActivity) String() string
- type MessageAllowedMentions
- func (*MessageAllowedMentions) Descriptor() ([]byte, []int)deprecated
- func (x *MessageAllowedMentions) GetParse() []string
- func (x *MessageAllowedMentions) GetRepliedUser() bool
- func (x *MessageAllowedMentions) GetRoles() []int64
- func (x *MessageAllowedMentions) GetUsers() []int64
- func (*MessageAllowedMentions) ProtoMessage()
- func (x *MessageAllowedMentions) ProtoReflect() protoreflect.Message
- func (x *MessageAllowedMentions) Reset()
- func (x *MessageAllowedMentions) String() string
- type MessageAttachment
- func (*MessageAttachment) Descriptor() ([]byte, []int)deprecated
- func (x *MessageAttachment) GetFilename() string
- func (x *MessageAttachment) GetHeight() int32
- func (x *MessageAttachment) GetID() int64
- func (x *MessageAttachment) GetProxyURL() string
- func (x *MessageAttachment) GetSize() int32
- func (x *MessageAttachment) GetURL() string
- func (x *MessageAttachment) GetWidth() int32
- func (*MessageAttachment) ProtoMessage()
- func (x *MessageAttachment) ProtoReflect() protoreflect.Message
- func (x *MessageAttachment) Reset()
- func (x *MessageAttachment) String() string
- type MessageChannelMention
- func (*MessageChannelMention) Descriptor() ([]byte, []int)deprecated
- func (x *MessageChannelMention) GetGuildID() int64
- func (x *MessageChannelMention) GetID() int64
- func (x *MessageChannelMention) GetName() string
- func (x *MessageChannelMention) GetType() uint32
- func (*MessageChannelMention) ProtoMessage()
- func (x *MessageChannelMention) ProtoReflect() protoreflect.Message
- func (x *MessageChannelMention) Reset()
- func (x *MessageChannelMention) String() string
- type MessageInteraction
- func (*MessageInteraction) Descriptor() ([]byte, []int)deprecated
- func (x *MessageInteraction) GetID() int64
- func (x *MessageInteraction) GetName() string
- func (x *MessageInteraction) GetType() uint32
- func (x *MessageInteraction) GetUser() *User
- func (*MessageInteraction) ProtoMessage()
- func (x *MessageInteraction) ProtoReflect() protoreflect.Message
- func (x *MessageInteraction) Reset()
- func (x *MessageInteraction) String() string
- type MessageReaction
- func (*MessageReaction) Descriptor() ([]byte, []int)deprecated
- func (x *MessageReaction) GetCount() int32
- func (x *MessageReaction) GetEmoji() *Emoji
- func (x *MessageReaction) GetMe() bool
- func (*MessageReaction) ProtoMessage()
- func (x *MessageReaction) ProtoReflect() protoreflect.Message
- func (x *MessageReaction) Reset()
- func (x *MessageReaction) String() string
- type MessageReference
- func (*MessageReference) Descriptor() ([]byte, []int)deprecated
- func (x *MessageReference) GetChannelID() int64
- func (x *MessageReference) GetFailIfNotExists() bool
- func (x *MessageReference) GetGuildID() int64
- func (x *MessageReference) GetID() int64
- func (*MessageReference) ProtoMessage()
- func (x *MessageReference) ProtoReflect() protoreflect.Message
- func (x *MessageReference) Reset()
- func (x *MessageReference) String() string
- type MessageSticker
- func (*MessageSticker) Descriptor() ([]byte, []int)deprecated
- func (x *MessageSticker) GetFormatType() uint32
- func (x *MessageSticker) GetID() int64
- func (x *MessageSticker) GetName() string
- func (*MessageSticker) ProtoMessage()
- func (x *MessageSticker) ProtoReflect() protoreflect.Message
- func (x *MessageSticker) Reset()
- func (x *MessageSticker) String() string
- type Party
- type PostAnalyticsRequest
- func (*PostAnalyticsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PostAnalyticsRequest) GetData() []byte
- func (x *PostAnalyticsRequest) GetIdentifier() string
- func (*PostAnalyticsRequest) ProtoMessage()
- func (x *PostAnalyticsRequest) ProtoReflect() protoreflect.Message
- func (x *PostAnalyticsRequest) Reset()
- func (x *PostAnalyticsRequest) String() string
- type RelayMessageRequest
- func (*RelayMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RelayMessageRequest) GetData() []byte
- func (x *RelayMessageRequest) GetManager() string
- func (x *RelayMessageRequest) GetType() string
- func (*RelayMessageRequest) ProtoMessage()
- func (x *RelayMessageRequest) ProtoReflect() protoreflect.Message
- func (x *RelayMessageRequest) Reset()
- func (x *RelayMessageRequest) String() string
- type RequestGuildChunkRequest
- func (*RequestGuildChunkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RequestGuildChunkRequest) GetAlwaysChunk() bool
- func (x *RequestGuildChunkRequest) GetGuildId() int64
- func (*RequestGuildChunkRequest) ProtoMessage()
- func (x *RequestGuildChunkRequest) ProtoReflect() protoreflect.Message
- func (x *RequestGuildChunkRequest) Reset()
- func (x *RequestGuildChunkRequest) String() string
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetColor() int32
- func (x *Role) GetGuildID() int64
- func (x *Role) GetHoist() bool
- func (x *Role) GetID() int64
- func (x *Role) GetIcon() string
- func (x *Role) GetManaged() bool
- func (x *Role) GetMentionable() bool
- func (x *Role) GetName() string
- func (x *Role) GetPermissions() int64
- func (x *Role) GetPosition() int32
- func (x *Role) GetTags() *RoleTag
- func (x *Role) GetUnicodeEmoji() string
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- type RoleTag
- func (*RoleTag) Descriptor() ([]byte, []int)deprecated
- func (x *RoleTag) GetBotID() int64
- func (x *RoleTag) GetIntegrationID() int64
- func (x *RoleTag) GetPremiumSubscriber() bool
- func (*RoleTag) ProtoMessage()
- func (x *RoleTag) ProtoReflect() protoreflect.Message
- func (x *RoleTag) Reset()
- func (x *RoleTag) String() string
- type SandwichClient
- type SandwichServer
- type Sandwich_ListenClient
- type Sandwich_ListenServer
- type ScheduledEvent
- func (*ScheduledEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduledEvent) GetChannelID() int64
- func (x *ScheduledEvent) GetCreator() *User
- func (x *ScheduledEvent) GetCreatorID() int64
- func (x *ScheduledEvent) GetDescription() string
- func (x *ScheduledEvent) GetEntityID() int64
- func (x *ScheduledEvent) GetEntityMetadata() *EventMetadata
- func (x *ScheduledEvent) GetEntityType() uint32
- func (x *ScheduledEvent) GetGuildID() int64
- func (x *ScheduledEvent) GetID() int64
- func (x *ScheduledEvent) GetName() string
- func (x *ScheduledEvent) GetPrivacyLevel() uint32
- func (x *ScheduledEvent) GetScheduledEndTime() string
- func (x *ScheduledEvent) GetScheduledStartTime() string
- func (x *ScheduledEvent) GetStatus() uint32
- func (x *ScheduledEvent) GetUserCount() int32
- func (*ScheduledEvent) ProtoMessage()
- func (x *ScheduledEvent) ProtoReflect() protoreflect.Message
- func (x *ScheduledEvent) Reset()
- func (x *ScheduledEvent) String() string
- type ScheduledEventUser
- func (*ScheduledEventUser) Descriptor() ([]byte, []int)deprecated
- func (x *ScheduledEventUser) GetEventID() int64
- func (x *ScheduledEventUser) GetMember() *GuildMember
- func (x *ScheduledEventUser) GetUser() *User
- func (*ScheduledEventUser) ProtoMessage()
- func (x *ScheduledEventUser) ProtoReflect() protoreflect.Message
- func (x *ScheduledEventUser) Reset()
- func (x *ScheduledEventUser) String() string
- type Secrets
- func (*Secrets) Descriptor() ([]byte, []int)deprecated
- func (x *Secrets) GetJoin() string
- func (x *Secrets) GetMatch() string
- func (x *Secrets) GetSpectate() string
- func (*Secrets) ProtoMessage()
- func (x *Secrets) ProtoReflect() protoreflect.Message
- func (x *Secrets) Reset()
- func (x *Secrets) String() string
- type SendWebsocketMessageRequest
- func (*SendWebsocketMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendWebsocketMessageRequest) GetData() []byte
- func (x *SendWebsocketMessageRequest) GetGatewayOPCode() int32
- func (x *SendWebsocketMessageRequest) GetManager() string
- func (x *SendWebsocketMessageRequest) GetShard() int32
- func (x *SendWebsocketMessageRequest) GetShardGroup() int32
- func (*SendWebsocketMessageRequest) ProtoMessage()
- func (x *SendWebsocketMessageRequest) ProtoReflect() protoreflect.Message
- func (x *SendWebsocketMessageRequest) Reset()
- func (x *SendWebsocketMessageRequest) String() string
- type StageInstance
- func (*StageInstance) Descriptor() ([]byte, []int)deprecated
- func (x *StageInstance) GetChannelID() int64
- func (x *StageInstance) GetDiscoverableDisabled() bool
- func (x *StageInstance) GetGuildID() int64
- func (x *StageInstance) GetID() int64
- func (x *StageInstance) GetPrivacyLabel() uint32
- func (x *StageInstance) GetTopic() string
- func (*StageInstance) ProtoMessage()
- func (x *StageInstance) ProtoReflect() protoreflect.Message
- func (x *StageInstance) Reset()
- func (x *StageInstance) String() string
- type Sticker
- func (*Sticker) Descriptor() ([]byte, []int)deprecated
- func (x *Sticker) GetAvailable() bool
- func (x *Sticker) GetDescription() string
- func (x *Sticker) GetFormatType() uint32
- func (x *Sticker) GetGuildID() int64
- func (x *Sticker) GetID() int64
- func (x *Sticker) GetName() string
- func (x *Sticker) GetPackID() int64
- func (x *Sticker) GetSortValue() int32
- func (x *Sticker) GetTags() string
- func (x *Sticker) GetType() uint32
- func (x *Sticker) GetUser() *User
- func (*Sticker) ProtoMessage()
- func (x *Sticker) ProtoReflect() protoreflect.Message
- func (x *Sticker) Reset()
- func (x *Sticker) String() string
- type ThreadMember
- func (*ThreadMember) Descriptor() ([]byte, []int)deprecated
- func (x *ThreadMember) GetFlags() int32
- func (x *ThreadMember) GetGuildID() int64
- func (x *ThreadMember) GetID() int64
- func (x *ThreadMember) GetJoinTimestamp() string
- func (x *ThreadMember) GetUserID() int64
- func (*ThreadMember) ProtoMessage()
- func (x *ThreadMember) ProtoReflect() protoreflect.Message
- func (x *ThreadMember) Reset()
- func (x *ThreadMember) String() string
- type ThreadMetadata
- func (*ThreadMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *ThreadMetadata) GetArchiveTimestamp() string
- func (x *ThreadMetadata) GetArchived() bool
- func (x *ThreadMetadata) GetAutoArchiveDuration() int32
- func (x *ThreadMetadata) GetLocked() bool
- func (*ThreadMetadata) ProtoMessage()
- func (x *ThreadMetadata) ProtoReflect() protoreflect.Message
- func (x *ThreadMetadata) Reset()
- func (x *ThreadMetadata) String() string
- type Timestamps
- type TooManyRequests
- func (*TooManyRequests) Descriptor() ([]byte, []int)deprecated
- func (x *TooManyRequests) GetGlobal() bool
- func (x *TooManyRequests) GetMessage() string
- func (x *TooManyRequests) GetRetryAfter() int32
- func (*TooManyRequests) ProtoMessage()
- func (x *TooManyRequests) ProtoReflect() protoreflect.Message
- func (x *TooManyRequests) Reset()
- func (x *TooManyRequests) String() string
- type UnavailableGuild
- func (*UnavailableGuild) Descriptor() ([]byte, []int)deprecated
- func (x *UnavailableGuild) GetID() int64
- func (x *UnavailableGuild) GetUnavailable() bool
- func (*UnavailableGuild) ProtoMessage()
- func (x *UnavailableGuild) ProtoReflect() protoreflect.Message
- func (x *UnavailableGuild) Reset()
- func (x *UnavailableGuild) String() string
- type UnimplementedSandwichServer
- func (UnimplementedSandwichServer) FetchConsumerConfiguration(context.Context, *FetchConsumerConfigurationRequest) (*FetchConsumerConfigurationResponse, error)
- func (UnimplementedSandwichServer) FetchGuild(context.Context, *FetchGuildRequest) (*GuildsResponse, error)
- func (UnimplementedSandwichServer) FetchGuildChannels(context.Context, *FetchGuildChannelsRequest) (*ChannelsResponse, error)
- func (UnimplementedSandwichServer) FetchGuildEmojis(context.Context, *FetchGuildEmojisRequest) (*EmojisResponse, error)
- func (UnimplementedSandwichServer) FetchGuildMembers(context.Context, *FetchGuildMembersRequest) (*GuildMembersResponse, error)
- func (UnimplementedSandwichServer) FetchGuildRoles(context.Context, *FetchGuildRolesRequest) (*GuildRolesResponse, error)
- func (UnimplementedSandwichServer) FetchMutualGuilds(context.Context, *FetchMutualGuildsRequest) (*GuildsResponse, error)
- func (UnimplementedSandwichServer) FetchUsers(context.Context, *FetchUsersRequest) (*UsersResponse, error)
- func (UnimplementedSandwichServer) Listen(*ListenRequest, Sandwich_ListenServer) error
- func (UnimplementedSandwichServer) PostAnalytics(context.Context, *PostAnalyticsRequest) (*BaseResponse, error)
- func (UnimplementedSandwichServer) RelayMessage(context.Context, *RelayMessageRequest) (*BaseResponse, error)
- func (UnimplementedSandwichServer) RequestGuildChunk(context.Context, *RequestGuildChunkRequest) (*BaseResponse, error)
- func (UnimplementedSandwichServer) SendWebsocketMessage(context.Context, *SendWebsocketMessageRequest) (*BaseResponse, error)
- func (UnimplementedSandwichServer) WhereIsGuild(context.Context, *WhereIsGuildRequest) (*WhereIsGuildResponse, error)
- type UnsafeSandwichServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAccentColour() int32
- func (x *User) GetAvatar() string
- func (x *User) GetBanner() string
- func (x *User) GetBot() bool
- func (x *User) GetDMChannelID() int64
- func (x *User) GetDiscriminator() string
- func (x *User) GetEmail() string
- func (x *User) GetFlags() int32
- func (x *User) GetGlobalName() string
- func (x *User) GetID() int64
- func (x *User) GetLocale() string
- func (x *User) GetMFAEnabled() bool
- func (x *User) GetPremiumType() int32
- func (x *User) GetPublicFlags() int32
- func (x *User) GetSystem() bool
- func (x *User) GetUsername() string
- func (x *User) GetVerified() bool
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UsersResponse
- func (*UsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UsersResponse) GetBaseResponse() *BaseResponse
- func (x *UsersResponse) GetUsers() map[int64]*User
- func (*UsersResponse) ProtoMessage()
- func (x *UsersResponse) ProtoReflect() protoreflect.Message
- func (x *UsersResponse) Reset()
- func (x *UsersResponse) String() string
- type VoiceState
- func (*VoiceState) Descriptor() ([]byte, []int)deprecated
- func (x *VoiceState) GetChannelID() int64
- func (x *VoiceState) GetDeaf() bool
- func (x *VoiceState) GetGuildID() int64
- func (x *VoiceState) GetMember() *GuildMember
- func (x *VoiceState) GetMute() bool
- func (x *VoiceState) GetRequestToSpeakTimestamp() string
- func (x *VoiceState) GetSelfDeaf() bool
- func (x *VoiceState) GetSelfMute() bool
- func (x *VoiceState) GetSelfStream() bool
- func (x *VoiceState) GetSelfVideo() bool
- func (x *VoiceState) GetSessionID() string
- func (x *VoiceState) GetSuppress() bool
- func (x *VoiceState) GetUserID() int64
- func (*VoiceState) ProtoMessage()
- func (x *VoiceState) ProtoReflect() protoreflect.Message
- func (x *VoiceState) Reset()
- func (x *VoiceState) String() string
- type Webhook
- func (*Webhook) Descriptor() ([]byte, []int)deprecated
- func (x *Webhook) GetApplicationID() int64
- func (x *Webhook) GetAvatar() string
- func (x *Webhook) GetChannelID() int64
- func (x *Webhook) GetGuildID() int64
- func (x *Webhook) GetID() int64
- func (x *Webhook) GetName() string
- func (x *Webhook) GetToken() string
- func (x *Webhook) GetType() uint32
- func (x *Webhook) GetUser() *User
- func (*Webhook) ProtoMessage()
- func (x *Webhook) ProtoReflect() protoreflect.Message
- func (x *Webhook) Reset()
- func (x *Webhook) String() string
- type WebhookMessage
- func (*WebhookMessage) Descriptor() ([]byte, []int)deprecated
- func (x *WebhookMessage) GetAllowedMentions() []*MessageAllowedMentions
- func (x *WebhookMessage) GetAvatarURL() string
- func (x *WebhookMessage) GetComponents() []*InteractionComponent
- func (x *WebhookMessage) GetContent() string
- func (x *WebhookMessage) GetEmbeds() []*Embed
- func (x *WebhookMessage) GetPayloadJSON() []byte
- func (x *WebhookMessage) GetTTS() bool
- func (x *WebhookMessage) GetUsername() string
- func (*WebhookMessage) ProtoMessage()
- func (x *WebhookMessage) ProtoReflect() protoreflect.Message
- func (x *WebhookMessage) Reset()
- func (x *WebhookMessage) String() string
- type WhereIsGuildLocation
- func (*WhereIsGuildLocation) Descriptor() ([]byte, []int)deprecated
- func (x *WhereIsGuildLocation) GetGuildMember() *GuildMember
- func (x *WhereIsGuildLocation) GetManager() string
- func (x *WhereIsGuildLocation) GetShardGroup() int32
- func (x *WhereIsGuildLocation) GetShardId() int32
- func (*WhereIsGuildLocation) ProtoMessage()
- func (x *WhereIsGuildLocation) ProtoReflect() protoreflect.Message
- func (x *WhereIsGuildLocation) Reset()
- func (x *WhereIsGuildLocation) String() string
- type WhereIsGuildRequest
- func (*WhereIsGuildRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WhereIsGuildRequest) GetGuildID() int64
- func (*WhereIsGuildRequest) ProtoMessage()
- func (x *WhereIsGuildRequest) ProtoReflect() protoreflect.Message
- func (x *WhereIsGuildRequest) Reset()
- func (x *WhereIsGuildRequest) String() string
- type WhereIsGuildResponse
- func (*WhereIsGuildResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WhereIsGuildResponse) GetBaseResponse() *BaseResponse
- func (x *WhereIsGuildResponse) GetLocations() []*WhereIsGuildLocation
- func (*WhereIsGuildResponse) ProtoMessage()
- func (x *WhereIsGuildResponse) ProtoReflect() protoreflect.Message
- func (x *WhereIsGuildResponse) Reset()
- func (x *WhereIsGuildResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_discord_proto protoreflect.FileDescriptor
var File_events_proto protoreflect.FileDescriptor
var Sandwich_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sandwich.Sandwich", HandlerType: (*SandwichServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PostAnalytics", Handler: _Sandwich_PostAnalytics_Handler, }, { MethodName: "FetchConsumerConfiguration", Handler: _Sandwich_FetchConsumerConfiguration_Handler, }, { MethodName: "FetchUsers", Handler: _Sandwich_FetchUsers_Handler, }, { MethodName: "FetchGuildChannels", Handler: _Sandwich_FetchGuildChannels_Handler, }, { MethodName: "FetchGuildEmojis", Handler: _Sandwich_FetchGuildEmojis_Handler, }, { MethodName: "FetchGuildMembers", Handler: _Sandwich_FetchGuildMembers_Handler, }, { MethodName: "FetchGuild", Handler: _Sandwich_FetchGuild_Handler, }, { MethodName: "FetchGuildRoles", Handler: _Sandwich_FetchGuildRoles_Handler, }, { MethodName: "FetchMutualGuilds", Handler: _Sandwich_FetchMutualGuilds_Handler, }, { MethodName: "RequestGuildChunk", Handler: _Sandwich_RequestGuildChunk_Handler, }, { MethodName: "SendWebsocketMessage", Handler: _Sandwich_SendWebsocketMessage_Handler, }, { MethodName: "WhereIsGuild", Handler: _Sandwich_WhereIsGuild_Handler, }, { MethodName: "RelayMessage", Handler: _Sandwich_RelayMessage_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Listen", Handler: _Sandwich_Listen_Handler, ServerStreams: true, }, }, Metadata: "events.proto", }
Sandwich_ServiceDesc is the grpc.ServiceDesc for Sandwich service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func GRPCToChannel ¶
Converts gRPC to discord.Channel counterpart.
func GRPCToEmoji ¶
Converts gRPC to discord.Emoji counterpart.
func GRPCToGuild ¶
Converts gRPC to discord.Guild counterpart.
func GRPCToGuildMember ¶
func GRPCToGuildMember(sandwichGuildMember *GuildMember) (guildMember discord.GuildMember, err error)
Converts gRPC to discord.GuildMember counterpart.
func GRPCToRole ¶
Converts gRPC to discord.Role counterpart.
func GRPCToUser ¶
Converts gRPC to discord.User counterpart.
func RegisterSandwichServer ¶
func RegisterSandwichServer(s grpc.ServiceRegistrar, srv SandwichServer)
Types ¶
type Activity ¶
type Activity struct { Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Type int32 `protobuf:"varint,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` URL string `protobuf:"bytes,3,opt,name=URL,json=url,proto3" json:"URL,omitempty"` Timestamps *Timestamps `protobuf:"bytes,4,opt,name=Timestamps,json=timestamps,proto3" json:"Timestamps,omitempty"` ApplicationID int64 `protobuf:"varint,5,opt,name=ApplicationID,json=application_id,proto3" json:"ApplicationID,omitempty"` Details string `protobuf:"bytes,6,opt,name=Details,json=details,proto3" json:"Details,omitempty"` State string `protobuf:"bytes,7,opt,name=State,json=state,proto3" json:"State,omitempty"` Party *Party `protobuf:"bytes,8,opt,name=Party,json=party,proto3" json:"Party,omitempty"` Assets *Assets `protobuf:"bytes,9,opt,name=Assets,json=assets,proto3" json:"Assets,omitempty"` Secrets *Secrets `protobuf:"bytes,10,opt,name=Secrets,json=secrets,proto3" json:"Secrets,omitempty"` Instance bool `protobuf:"varint,11,opt,name=Instance,json=instance,proto3" json:"Instance,omitempty"` Flags int32 `protobuf:"varint,12,opt,name=Flags,json=flags,proto3" json:"Flags,omitempty"` // contains filtered or unexported fields }
func (*Activity) Descriptor
deprecated
func (*Activity) GetApplicationID ¶
func (*Activity) GetDetails ¶
func (*Activity) GetInstance ¶
func (*Activity) GetSecrets ¶
func (*Activity) GetTimestamps ¶
func (x *Activity) GetTimestamps() *Timestamps
func (*Activity) ProtoMessage ¶
func (*Activity) ProtoMessage()
func (*Activity) ProtoReflect ¶
func (x *Activity) ProtoReflect() protoreflect.Message
type Application ¶
type Application struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Icon string `protobuf:"bytes,3,opt,name=Icon,json=icon,proto3" json:"Icon,omitempty"` Description string `protobuf:"bytes,4,opt,name=Description,json=description,proto3" json:"Description,omitempty"` RPCOrigins []string `protobuf:"bytes,5,rep,name=RPCOrigins,json=rpc_origins,proto3" json:"RPCOrigins,omitempty"` BotPublic bool `protobuf:"varint,6,opt,name=BotPublic,json=bot_public,proto3" json:"BotPublic,omitempty"` BotRequireCodeGrant bool `protobuf:"varint,7,opt,name=BotRequireCodeGrant,json=bot_require_code_grant,proto3" json:"BotRequireCodeGrant,omitempty"` TermsOfServiceURL string `protobuf:"bytes,8,opt,name=TermsOfServiceURL,json=terms_of_service,proto3" json:"TermsOfServiceURL,omitempty"` PrivacyPolicyURL string `protobuf:"bytes,9,opt,name=PrivacyPolicyURL,json=privacy_policy_url,proto3" json:"PrivacyPolicyURL,omitempty"` Owner *User `protobuf:"bytes,10,opt,name=Owner,json=owner,proto3" json:"Owner,omitempty"` Summary string `protobuf:"bytes,11,opt,name=Summary,json=summary,proto3" json:"Summary,omitempty"` VerifyKey string `protobuf:"bytes,12,opt,name=VerifyKey,json=verify_key,proto3" json:"VerifyKey,omitempty"` Team *ApplicationTeam `protobuf:"bytes,13,opt,name=Team,json=team,proto3" json:"Team,omitempty"` GuildID int64 `protobuf:"varint,14,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` PrimarySKUID int64 `protobuf:"varint,15,opt,name=PrimarySKUID,json=primary_sku_id,proto3" json:"PrimarySKUID,omitempty"` Slug string `protobuf:"bytes,16,opt,name=Slug,json=slug,proto3" json:"Slug,omitempty"` CoverImage string `protobuf:"bytes,17,opt,name=CoverImage,json=cover_image,proto3" json:"CoverImage,omitempty"` Flags int32 `protobuf:"varint,18,opt,name=Flags,json=flags,proto3" json:"Flags,omitempty"` Bot *User `protobuf:"bytes,19,opt,name=Bot,json=bot,proto3" json:"Bot,omitempty"` // contains filtered or unexported fields }
func (*Application) Descriptor
deprecated
func (*Application) Descriptor() ([]byte, []int)
Deprecated: Use Application.ProtoReflect.Descriptor instead.
func (*Application) GetBot ¶
func (x *Application) GetBot() *User
func (*Application) GetBotPublic ¶
func (x *Application) GetBotPublic() bool
func (*Application) GetBotRequireCodeGrant ¶
func (x *Application) GetBotRequireCodeGrant() bool
func (*Application) GetCoverImage ¶
func (x *Application) GetCoverImage() string
func (*Application) GetDescription ¶
func (x *Application) GetDescription() string
func (*Application) GetFlags ¶
func (x *Application) GetFlags() int32
func (*Application) GetGuildID ¶
func (x *Application) GetGuildID() int64
func (*Application) GetID ¶
func (x *Application) GetID() int64
func (*Application) GetIcon ¶
func (x *Application) GetIcon() string
func (*Application) GetName ¶
func (x *Application) GetName() string
func (*Application) GetOwner ¶
func (x *Application) GetOwner() *User
func (*Application) GetPrimarySKUID ¶
func (x *Application) GetPrimarySKUID() int64
func (*Application) GetPrivacyPolicyURL ¶
func (x *Application) GetPrivacyPolicyURL() string
func (*Application) GetRPCOrigins ¶
func (x *Application) GetRPCOrigins() []string
func (*Application) GetSlug ¶
func (x *Application) GetSlug() string
func (*Application) GetSummary ¶
func (x *Application) GetSummary() string
func (*Application) GetTeam ¶
func (x *Application) GetTeam() *ApplicationTeam
func (*Application) GetTermsOfServiceURL ¶
func (x *Application) GetTermsOfServiceURL() string
func (*Application) GetVerifyKey ¶
func (x *Application) GetVerifyKey() string
func (*Application) ProtoMessage ¶
func (*Application) ProtoMessage()
func (*Application) ProtoReflect ¶
func (x *Application) ProtoReflect() protoreflect.Message
func (*Application) Reset ¶
func (x *Application) Reset()
func (*Application) String ¶
func (x *Application) String() string
type ApplicationCommand ¶
type ApplicationCommand struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Type uint32 `protobuf:"varint,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` ApplicationID int64 `protobuf:"varint,3,opt,name=ApplicationID,json=application_id,proto3" json:"ApplicationID,omitempty"` GuildID int64 `protobuf:"varint,4,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` Name string `protobuf:"bytes,5,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Description string `protobuf:"bytes,6,opt,name=Description,json=description,proto3" json:"Description,omitempty"` Options []*ApplicationCommandOption `protobuf:"bytes,7,rep,name=Options,json=options,proto3" json:"Options,omitempty"` DefaultPermission bool `protobuf:"varint,8,opt,name=DefaultPermission,json=default_permission,proto3" json:"DefaultPermission,omitempty"` Version int32 `protobuf:"varint,9,opt,name=Version,json=version,proto3" json:"Version,omitempty"` // contains filtered or unexported fields }
func (*ApplicationCommand) Descriptor
deprecated
func (*ApplicationCommand) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationCommand.ProtoReflect.Descriptor instead.
func (*ApplicationCommand) GetApplicationID ¶
func (x *ApplicationCommand) GetApplicationID() int64
func (*ApplicationCommand) GetDefaultPermission ¶
func (x *ApplicationCommand) GetDefaultPermission() bool
func (*ApplicationCommand) GetDescription ¶
func (x *ApplicationCommand) GetDescription() string
func (*ApplicationCommand) GetGuildID ¶
func (x *ApplicationCommand) GetGuildID() int64
func (*ApplicationCommand) GetID ¶
func (x *ApplicationCommand) GetID() int64
func (*ApplicationCommand) GetName ¶
func (x *ApplicationCommand) GetName() string
func (*ApplicationCommand) GetOptions ¶
func (x *ApplicationCommand) GetOptions() []*ApplicationCommandOption
func (*ApplicationCommand) GetType ¶
func (x *ApplicationCommand) GetType() uint32
func (*ApplicationCommand) GetVersion ¶
func (x *ApplicationCommand) GetVersion() int32
func (*ApplicationCommand) ProtoMessage ¶
func (*ApplicationCommand) ProtoMessage()
func (*ApplicationCommand) ProtoReflect ¶
func (x *ApplicationCommand) ProtoReflect() protoreflect.Message
func (*ApplicationCommand) Reset ¶
func (x *ApplicationCommand) Reset()
func (*ApplicationCommand) String ¶
func (x *ApplicationCommand) String() string
type ApplicationCommandOption ¶
type ApplicationCommandOption struct { Type uint32 `protobuf:"varint,1,opt,name=Type,json=type,proto3" json:"Type,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description,json=description,proto3" json:"Description,omitempty"` Required bool `protobuf:"varint,4,opt,name=Required,json=required,proto3" json:"Required,omitempty"` Choices []*ApplicationCommandOptionChoice `protobuf:"bytes,5,rep,name=Choices,json=choices,proto3" json:"Choices,omitempty"` Options []*ApplicationCommandOption `protobuf:"bytes,6,rep,name=Options,json=options,proto3" json:"Options,omitempty"` ChannelTypes []uint32 `protobuf:"varint,7,rep,packed,name=ChannelTypes,json=channel_types,proto3" json:"ChannelTypes,omitempty"` MinValue int32 `protobuf:"varint,8,opt,name=MinValue,json=min_value,proto3" json:"MinValue,omitempty"` MaxValue int32 `protobuf:"varint,9,opt,name=MaxValue,json=max_value,proto3" json:"MaxValue,omitempty"` Autocomplete bool `protobuf:"varint,10,opt,name=Autocomplete,json=autocomplete,proto3" json:"Autocomplete,omitempty"` // contains filtered or unexported fields }
func (*ApplicationCommandOption) Descriptor
deprecated
func (*ApplicationCommandOption) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationCommandOption.ProtoReflect.Descriptor instead.
func (*ApplicationCommandOption) GetAutocomplete ¶
func (x *ApplicationCommandOption) GetAutocomplete() bool
func (*ApplicationCommandOption) GetChannelTypes ¶
func (x *ApplicationCommandOption) GetChannelTypes() []uint32
func (*ApplicationCommandOption) GetChoices ¶
func (x *ApplicationCommandOption) GetChoices() []*ApplicationCommandOptionChoice
func (*ApplicationCommandOption) GetDescription ¶
func (x *ApplicationCommandOption) GetDescription() string
func (*ApplicationCommandOption) GetMaxValue ¶
func (x *ApplicationCommandOption) GetMaxValue() int32
func (*ApplicationCommandOption) GetMinValue ¶
func (x *ApplicationCommandOption) GetMinValue() int32
func (*ApplicationCommandOption) GetName ¶
func (x *ApplicationCommandOption) GetName() string
func (*ApplicationCommandOption) GetOptions ¶
func (x *ApplicationCommandOption) GetOptions() []*ApplicationCommandOption
func (*ApplicationCommandOption) GetRequired ¶
func (x *ApplicationCommandOption) GetRequired() bool
func (*ApplicationCommandOption) GetType ¶
func (x *ApplicationCommandOption) GetType() uint32
func (*ApplicationCommandOption) ProtoMessage ¶
func (*ApplicationCommandOption) ProtoMessage()
func (*ApplicationCommandOption) ProtoReflect ¶
func (x *ApplicationCommandOption) ProtoReflect() protoreflect.Message
func (*ApplicationCommandOption) Reset ¶
func (x *ApplicationCommandOption) Reset()
func (*ApplicationCommandOption) String ¶
func (x *ApplicationCommandOption) String() string
type ApplicationCommandOptionChoice ¶
type ApplicationCommandOptionChoice struct { Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=Value,json=value,proto3" json:"Value,omitempty"` // contains filtered or unexported fields }
func (*ApplicationCommandOptionChoice) Descriptor
deprecated
func (*ApplicationCommandOptionChoice) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationCommandOptionChoice.ProtoReflect.Descriptor instead.
func (*ApplicationCommandOptionChoice) GetName ¶
func (x *ApplicationCommandOptionChoice) GetName() string
func (*ApplicationCommandOptionChoice) GetValue ¶
func (x *ApplicationCommandOptionChoice) GetValue() []byte
func (*ApplicationCommandOptionChoice) ProtoMessage ¶
func (*ApplicationCommandOptionChoice) ProtoMessage()
func (*ApplicationCommandOptionChoice) ProtoReflect ¶
func (x *ApplicationCommandOptionChoice) ProtoReflect() protoreflect.Message
func (*ApplicationCommandOptionChoice) Reset ¶
func (x *ApplicationCommandOptionChoice) Reset()
func (*ApplicationCommandOptionChoice) String ¶
func (x *ApplicationCommandOptionChoice) String() string
type ApplicationCommandPermissions ¶
type ApplicationCommandPermissions struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Type uint32 `protobuf:"varint,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` Allowed bool `protobuf:"varint,3,opt,name=Allowed,json=permission,proto3" json:"Allowed,omitempty"` // contains filtered or unexported fields }
func (*ApplicationCommandPermissions) Descriptor
deprecated
func (*ApplicationCommandPermissions) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationCommandPermissions.ProtoReflect.Descriptor instead.
func (*ApplicationCommandPermissions) GetAllowed ¶
func (x *ApplicationCommandPermissions) GetAllowed() bool
func (*ApplicationCommandPermissions) GetID ¶
func (x *ApplicationCommandPermissions) GetID() int64
func (*ApplicationCommandPermissions) GetType ¶
func (x *ApplicationCommandPermissions) GetType() uint32
func (*ApplicationCommandPermissions) ProtoMessage ¶
func (*ApplicationCommandPermissions) ProtoMessage()
func (*ApplicationCommandPermissions) ProtoReflect ¶
func (x *ApplicationCommandPermissions) ProtoReflect() protoreflect.Message
func (*ApplicationCommandPermissions) Reset ¶
func (x *ApplicationCommandPermissions) Reset()
func (*ApplicationCommandPermissions) String ¶
func (x *ApplicationCommandPermissions) String() string
type ApplicationSelectOption ¶
type ApplicationSelectOption struct { Label string `protobuf:"bytes,1,opt,name=Label,json=label,proto3" json:"Label,omitempty"` Value string `protobuf:"bytes,2,opt,name=Value,json=value,proto3" json:"Value,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description,json=description,proto3" json:"Description,omitempty"` Emoji *Emoji `protobuf:"bytes,4,opt,name=Emoji,json=emoji,proto3" json:"Emoji,omitempty"` Default bool `protobuf:"varint,5,opt,name=Default,json=default,proto3" json:"Default,omitempty"` // contains filtered or unexported fields }
func (*ApplicationSelectOption) Descriptor
deprecated
func (*ApplicationSelectOption) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationSelectOption.ProtoReflect.Descriptor instead.
func (*ApplicationSelectOption) GetDefault ¶
func (x *ApplicationSelectOption) GetDefault() bool
func (*ApplicationSelectOption) GetDescription ¶
func (x *ApplicationSelectOption) GetDescription() string
func (*ApplicationSelectOption) GetEmoji ¶
func (x *ApplicationSelectOption) GetEmoji() *Emoji
func (*ApplicationSelectOption) GetLabel ¶
func (x *ApplicationSelectOption) GetLabel() string
func (*ApplicationSelectOption) GetValue ¶
func (x *ApplicationSelectOption) GetValue() string
func (*ApplicationSelectOption) ProtoMessage ¶
func (*ApplicationSelectOption) ProtoMessage()
func (*ApplicationSelectOption) ProtoReflect ¶
func (x *ApplicationSelectOption) ProtoReflect() protoreflect.Message
func (*ApplicationSelectOption) Reset ¶
func (x *ApplicationSelectOption) Reset()
func (*ApplicationSelectOption) String ¶
func (x *ApplicationSelectOption) String() string
type ApplicationTeam ¶
type ApplicationTeam struct { Icon string `protobuf:"bytes,1,opt,name=Icon,json=icon,proto3" json:"Icon,omitempty"` ID int64 `protobuf:"varint,2,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Members []*ApplicationTeamMember `protobuf:"bytes,3,rep,name=Members,json=members,proto3" json:"Members,omitempty"` Name string `protobuf:"bytes,4,opt,name=Name,json=name,proto3" json:"Name,omitempty"` OwnerUserID int64 `protobuf:"varint,5,opt,name=OwnerUserID,json=owner_user_id,proto3" json:"OwnerUserID,omitempty"` // contains filtered or unexported fields }
func (*ApplicationTeam) Descriptor
deprecated
func (*ApplicationTeam) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationTeam.ProtoReflect.Descriptor instead.
func (*ApplicationTeam) GetID ¶
func (x *ApplicationTeam) GetID() int64
func (*ApplicationTeam) GetIcon ¶
func (x *ApplicationTeam) GetIcon() string
func (*ApplicationTeam) GetMembers ¶
func (x *ApplicationTeam) GetMembers() []*ApplicationTeamMember
func (*ApplicationTeam) GetName ¶
func (x *ApplicationTeam) GetName() string
func (*ApplicationTeam) GetOwnerUserID ¶
func (x *ApplicationTeam) GetOwnerUserID() int64
func (*ApplicationTeam) ProtoMessage ¶
func (*ApplicationTeam) ProtoMessage()
func (*ApplicationTeam) ProtoReflect ¶
func (x *ApplicationTeam) ProtoReflect() protoreflect.Message
func (*ApplicationTeam) Reset ¶
func (x *ApplicationTeam) Reset()
func (*ApplicationTeam) String ¶
func (x *ApplicationTeam) String() string
type ApplicationTeamMember ¶
type ApplicationTeamMember struct { MembershipState uint32 `protobuf:"varint,1,opt,name=MembershipState,json=membership_state,proto3" json:"MembershipState,omitempty"` Permissions []string `protobuf:"bytes,2,rep,name=Permissions,json=permissions,proto3" json:"Permissions,omitempty"` TeamID int64 `protobuf:"varint,3,opt,name=TeamID,json=team_id,proto3" json:"TeamID,omitempty"` User *User `protobuf:"bytes,4,opt,name=User,json=user,proto3" json:"User,omitempty"` // contains filtered or unexported fields }
func (*ApplicationTeamMember) Descriptor
deprecated
func (*ApplicationTeamMember) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationTeamMember.ProtoReflect.Descriptor instead.
func (*ApplicationTeamMember) GetMembershipState ¶
func (x *ApplicationTeamMember) GetMembershipState() uint32
func (*ApplicationTeamMember) GetPermissions ¶
func (x *ApplicationTeamMember) GetPermissions() []string
func (*ApplicationTeamMember) GetTeamID ¶
func (x *ApplicationTeamMember) GetTeamID() int64
func (*ApplicationTeamMember) GetUser ¶
func (x *ApplicationTeamMember) GetUser() *User
func (*ApplicationTeamMember) ProtoMessage ¶
func (*ApplicationTeamMember) ProtoMessage()
func (*ApplicationTeamMember) ProtoReflect ¶
func (x *ApplicationTeamMember) ProtoReflect() protoreflect.Message
func (*ApplicationTeamMember) Reset ¶
func (x *ApplicationTeamMember) Reset()
func (*ApplicationTeamMember) String ¶
func (x *ApplicationTeamMember) String() string
type Assets ¶
type Assets struct { LargeImage string `protobuf:"bytes,1,opt,name=LargeImage,json=large_image,proto3" json:"LargeImage,omitempty"` LargeText string `protobuf:"bytes,2,opt,name=LargeText,json=large_text,proto3" json:"LargeText,omitempty"` SmallImage string `protobuf:"bytes,3,opt,name=SmallImage,json=small_image,proto3" json:"SmallImage,omitempty"` SmallText string `protobuf:"bytes,4,opt,name=SmallText,json=small_text,proto3" json:"SmallText,omitempty"` // contains filtered or unexported fields }
func (*Assets) Descriptor
deprecated
func (*Assets) GetLargeImage ¶
func (*Assets) GetLargeText ¶
func (*Assets) GetSmallImage ¶
func (*Assets) GetSmallText ¶
func (*Assets) ProtoMessage ¶
func (*Assets) ProtoMessage()
func (*Assets) ProtoReflect ¶
func (x *Assets) ProtoReflect() protoreflect.Message
type BaseResponse ¶
type BaseResponse struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Ok bool `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*BaseResponse) Descriptor
deprecated
func (*BaseResponse) Descriptor() ([]byte, []int)
Deprecated: Use BaseResponse.ProtoReflect.Descriptor instead.
func (*BaseResponse) GetError ¶
func (x *BaseResponse) GetError() string
func (*BaseResponse) GetOk ¶
func (x *BaseResponse) GetOk() bool
func (*BaseResponse) GetVersion ¶
func (x *BaseResponse) GetVersion() string
func (*BaseResponse) ProtoMessage ¶
func (*BaseResponse) ProtoMessage()
func (*BaseResponse) ProtoReflect ¶
func (x *BaseResponse) ProtoReflect() protoreflect.Message
func (*BaseResponse) Reset ¶
func (x *BaseResponse) Reset()
func (*BaseResponse) String ¶
func (x *BaseResponse) String() string
type Channel ¶
type Channel struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` GuildID int64 `protobuf:"varint,2,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` Type uint32 `protobuf:"varint,3,opt,name=Type,json=type,proto3" json:"Type,omitempty"` Position int32 `protobuf:"varint,4,opt,name=Position,json=position,proto3" json:"Position,omitempty"` PermissionOverwrites []*ChannelOverwrite `protobuf:"bytes,5,rep,name=PermissionOverwrites,json=permission_overwrites,proto3" json:"PermissionOverwrites,omitempty"` Name string `protobuf:"bytes,6,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Topic string `protobuf:"bytes,7,opt,name=Topic,json=topic,proto3" json:"Topic,omitempty"` NSFW bool `protobuf:"varint,8,opt,name=NSFW,json=nsfw,proto3" json:"NSFW,omitempty"` LastMessageID string `protobuf:"bytes,9,opt,name=LastMessageID,json=last_message_id,proto3" json:"LastMessageID,omitempty"` Bitrate int32 `protobuf:"varint,10,opt,name=Bitrate,json=bitrate,proto3" json:"Bitrate,omitempty"` UserLimit int32 `protobuf:"varint,11,opt,name=UserLimit,json=user_limit,proto3" json:"UserLimit,omitempty"` RateLimitPerUser int32 `protobuf:"varint,12,opt,name=RateLimitPerUser,json=rate_limit_per_user,proto3" json:"RateLimitPerUser,omitempty"` Recipients []*User `protobuf:"bytes,13,rep,name=Recipients,json=recipients,proto3" json:"Recipients,omitempty"` Icon string `protobuf:"bytes,14,opt,name=Icon,json=icon,proto3" json:"Icon,omitempty"` OwnerID int64 `protobuf:"varint,15,opt,name=OwnerID,json=owner_id,proto3" json:"OwnerID,omitempty"` ApplicationID int64 `protobuf:"varint,16,opt,name=ApplicationID,json=application_id,proto3" json:"ApplicationID,omitempty"` ParentID int64 `protobuf:"varint,17,opt,name=ParentID,json=parent_id,proto3" json:"ParentID,omitempty"` LastPinTimestamp string `protobuf:"bytes,18,opt,name=LastPinTimestamp,json=last_pin_timestamp,proto3" json:"LastPinTimestamp,omitempty"` RTCRegion string `protobuf:"bytes,19,opt,name=RTCRegion,json=rtc_region,proto3" json:"RTCRegion,omitempty"` VideoQualityMode uint32 `protobuf:"varint,20,opt,name=VideoQualityMode,json=video_quality_mode,proto3" json:"VideoQualityMode,omitempty"` MessageCount int32 `protobuf:"varint,21,opt,name=MessageCount,json=message_count,proto3" json:"MessageCount,omitempty"` MemberCount int32 `protobuf:"varint,22,opt,name=MemberCount,json=member_count,proto3" json:"MemberCount,omitempty"` ThreadMetadata *ThreadMetadata `protobuf:"bytes,23,opt,name=ThreadMetadata,json=thread_metadata,proto3" json:"ThreadMetadata,omitempty"` ThreadMember *ThreadMember `protobuf:"bytes,24,opt,name=ThreadMember,json=member,proto3" json:"ThreadMember,omitempty"` DefaultAutoArchiveDuration int32 `` /* 142-byte string literal not displayed */ Permissions int64 `protobuf:"varint,26,opt,name=Permissions,json=permissions,proto3" json:"Permissions,omitempty"` // contains filtered or unexported fields }
func ChannelToGRPC ¶
Converts discord.Channel to gRPC counterpart.
func (*Channel) Descriptor
deprecated
func (*Channel) GetApplicationID ¶
func (*Channel) GetBitrate ¶
func (*Channel) GetDefaultAutoArchiveDuration ¶
func (*Channel) GetGuildID ¶
func (*Channel) GetLastMessageID ¶
func (*Channel) GetLastPinTimestamp ¶
func (*Channel) GetMemberCount ¶
func (*Channel) GetMessageCount ¶
func (*Channel) GetOwnerID ¶
func (*Channel) GetParentID ¶
func (*Channel) GetPermissionOverwrites ¶
func (x *Channel) GetPermissionOverwrites() []*ChannelOverwrite
func (*Channel) GetPermissions ¶
func (*Channel) GetPosition ¶
func (*Channel) GetRTCRegion ¶
func (*Channel) GetRateLimitPerUser ¶
func (*Channel) GetRecipients ¶
func (*Channel) GetThreadMember ¶
func (x *Channel) GetThreadMember() *ThreadMember
func (*Channel) GetThreadMetadata ¶
func (x *Channel) GetThreadMetadata() *ThreadMetadata
func (*Channel) GetUserLimit ¶
func (*Channel) GetVideoQualityMode ¶
func (*Channel) ProtoMessage ¶
func (*Channel) ProtoMessage()
func (*Channel) ProtoReflect ¶
func (x *Channel) ProtoReflect() protoreflect.Message
type ChannelOverwrite ¶
type ChannelOverwrite struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Type uint32 `protobuf:"varint,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` Allow int64 `protobuf:"varint,3,opt,name=Allow,json=allow,proto3" json:"Allow,omitempty"` Deny int64 `protobuf:"varint,4,opt,name=Deny,json=deny,proto3" json:"Deny,omitempty"` // contains filtered or unexported fields }
func (*ChannelOverwrite) Descriptor
deprecated
func (*ChannelOverwrite) Descriptor() ([]byte, []int)
Deprecated: Use ChannelOverwrite.ProtoReflect.Descriptor instead.
func (*ChannelOverwrite) GetAllow ¶
func (x *ChannelOverwrite) GetAllow() int64
func (*ChannelOverwrite) GetDeny ¶
func (x *ChannelOverwrite) GetDeny() int64
func (*ChannelOverwrite) GetID ¶
func (x *ChannelOverwrite) GetID() int64
func (*ChannelOverwrite) GetType ¶
func (x *ChannelOverwrite) GetType() uint32
func (*ChannelOverwrite) ProtoMessage ¶
func (*ChannelOverwrite) ProtoMessage()
func (*ChannelOverwrite) ProtoReflect ¶
func (x *ChannelOverwrite) ProtoReflect() protoreflect.Message
func (*ChannelOverwrite) Reset ¶
func (x *ChannelOverwrite) Reset()
func (*ChannelOverwrite) String ¶
func (x *ChannelOverwrite) String() string
type ChannelsResponse ¶
type ChannelsResponse struct { BaseResponse *BaseResponse `protobuf:"bytes,1,opt,name=baseResponse,proto3" json:"baseResponse,omitempty"` GuildChannels map[int64]*Channel `` /* 168-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ChannelsResponse) Descriptor
deprecated
func (*ChannelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChannelsResponse.ProtoReflect.Descriptor instead.
func (*ChannelsResponse) GetBaseResponse ¶
func (x *ChannelsResponse) GetBaseResponse() *BaseResponse
func (*ChannelsResponse) GetGuildChannels ¶
func (x *ChannelsResponse) GetGuildChannels() map[int64]*Channel
func (*ChannelsResponse) ProtoMessage ¶
func (*ChannelsResponse) ProtoMessage()
func (*ChannelsResponse) ProtoReflect ¶
func (x *ChannelsResponse) ProtoReflect() protoreflect.Message
func (*ChannelsResponse) Reset ¶
func (x *ChannelsResponse) Reset()
func (*ChannelsResponse) String ¶
func (x *ChannelsResponse) String() string
type ClientStatus ¶
type ClientStatus struct { Desktop string `protobuf:"bytes,1,opt,name=Desktop,json=desktop,proto3" json:"Desktop,omitempty"` Mobile string `protobuf:"bytes,2,opt,name=Mobile,json=mobile,proto3" json:"Mobile,omitempty"` Web string `protobuf:"bytes,3,opt,name=Web,json=web,proto3" json:"Web,omitempty"` // contains filtered or unexported fields }
func (*ClientStatus) Descriptor
deprecated
func (*ClientStatus) Descriptor() ([]byte, []int)
Deprecated: Use ClientStatus.ProtoReflect.Descriptor instead.
func (*ClientStatus) GetDesktop ¶
func (x *ClientStatus) GetDesktop() string
func (*ClientStatus) GetMobile ¶
func (x *ClientStatus) GetMobile() string
func (*ClientStatus) GetWeb ¶
func (x *ClientStatus) GetWeb() string
func (*ClientStatus) ProtoMessage ¶
func (*ClientStatus) ProtoMessage()
func (*ClientStatus) ProtoReflect ¶
func (x *ClientStatus) ProtoReflect() protoreflect.Message
func (*ClientStatus) Reset ¶
func (x *ClientStatus) Reset()
func (*ClientStatus) String ¶
func (x *ClientStatus) String() string
type CreateDMChannel ¶
type CreateDMChannel struct { RecipientID int64 `protobuf:"varint,1,opt,name=RecipientID,json=recipient_id,proto3" json:"RecipientID,omitempty"` // contains filtered or unexported fields }
func (*CreateDMChannel) Descriptor
deprecated
func (*CreateDMChannel) Descriptor() ([]byte, []int)
Deprecated: Use CreateDMChannel.ProtoReflect.Descriptor instead.
func (*CreateDMChannel) GetRecipientID ¶
func (x *CreateDMChannel) GetRecipientID() int64
func (*CreateDMChannel) ProtoMessage ¶
func (*CreateDMChannel) ProtoMessage()
func (*CreateDMChannel) ProtoReflect ¶
func (x *CreateDMChannel) ProtoReflect() protoreflect.Message
func (*CreateDMChannel) Reset ¶
func (x *CreateDMChannel) Reset()
func (*CreateDMChannel) String ¶
func (x *CreateDMChannel) String() string
type Embed ¶
type Embed struct { Title string `protobuf:"bytes,1,opt,name=Title,json=title,proto3" json:"Title,omitempty"` Type string `protobuf:"bytes,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description,json=description,proto3" json:"Description,omitempty"` URL string `protobuf:"bytes,4,opt,name=URL,json=url,proto3" json:"URL,omitempty"` Timestamp string `protobuf:"bytes,5,opt,name=Timestamp,json=timestamp,proto3" json:"Timestamp,omitempty"` Color int32 `protobuf:"varint,6,opt,name=Color,json=color,proto3" json:"Color,omitempty"` Image *EmbedImage `protobuf:"bytes,8,opt,name=Image,json=image,proto3" json:"Image,omitempty"` Thumbnail *EmbedThumbnail `protobuf:"bytes,9,opt,name=Thumbnail,json=thumbnail,proto3" json:"Thumbnail,omitempty"` Video *EmbedVideo `protobuf:"bytes,10,opt,name=Video,json=video,proto3" json:"Video,omitempty"` Provider *EmbedProvider `protobuf:"bytes,11,opt,name=Provider,json=provider,proto3" json:"Provider,omitempty"` Author *EmbedAuthor `protobuf:"bytes,12,opt,name=Author,json=author,proto3" json:"Author,omitempty"` Fields []*EmbedField `protobuf:"bytes,13,rep,name=Fields,json=fields,proto3" json:"Fields,omitempty"` // contains filtered or unexported fields }
func (*Embed) Descriptor
deprecated
func (*Embed) GetAuthor ¶
func (x *Embed) GetAuthor() *EmbedAuthor
func (*Embed) GetDescription ¶
func (*Embed) GetFields ¶
func (x *Embed) GetFields() []*EmbedField
func (*Embed) GetFooter ¶
func (x *Embed) GetFooter() *EmbedFooter
func (*Embed) GetImage ¶
func (x *Embed) GetImage() *EmbedImage
func (*Embed) GetProvider ¶
func (x *Embed) GetProvider() *EmbedProvider
func (*Embed) GetThumbnail ¶
func (x *Embed) GetThumbnail() *EmbedThumbnail
func (*Embed) GetTimestamp ¶
func (*Embed) GetVideo ¶
func (x *Embed) GetVideo() *EmbedVideo
func (*Embed) ProtoMessage ¶
func (*Embed) ProtoMessage()
func (*Embed) ProtoReflect ¶
func (x *Embed) ProtoReflect() protoreflect.Message
type EmbedAuthor ¶
type EmbedAuthor struct { Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` URL string `protobuf:"bytes,2,opt,name=URL,json=url,proto3" json:"URL,omitempty"` IconURL string `protobuf:"bytes,3,opt,name=IconURL,json=icon_url,proto3" json:"IconURL,omitempty"` ProxyIconURL string `protobuf:"bytes,4,opt,name=ProxyIconURL,json=proxy_icon_url,proto3" json:"ProxyIconURL,omitempty"` // contains filtered or unexported fields }
func (*EmbedAuthor) Descriptor
deprecated
func (*EmbedAuthor) Descriptor() ([]byte, []int)
Deprecated: Use EmbedAuthor.ProtoReflect.Descriptor instead.
func (*EmbedAuthor) GetIconURL ¶
func (x *EmbedAuthor) GetIconURL() string
func (*EmbedAuthor) GetName ¶
func (x *EmbedAuthor) GetName() string
func (*EmbedAuthor) GetProxyIconURL ¶
func (x *EmbedAuthor) GetProxyIconURL() string
func (*EmbedAuthor) GetURL ¶
func (x *EmbedAuthor) GetURL() string
func (*EmbedAuthor) ProtoMessage ¶
func (*EmbedAuthor) ProtoMessage()
func (*EmbedAuthor) ProtoReflect ¶
func (x *EmbedAuthor) ProtoReflect() protoreflect.Message
func (*EmbedAuthor) Reset ¶
func (x *EmbedAuthor) Reset()
func (*EmbedAuthor) String ¶
func (x *EmbedAuthor) String() string
type EmbedField ¶
type EmbedField struct { Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Value string `protobuf:"bytes,2,opt,name=Value,json=value,proto3" json:"Value,omitempty"` Inline bool `protobuf:"varint,3,opt,name=Inline,json=inline,proto3" json:"Inline,omitempty"` // contains filtered or unexported fields }
func (*EmbedField) Descriptor
deprecated
func (*EmbedField) Descriptor() ([]byte, []int)
Deprecated: Use EmbedField.ProtoReflect.Descriptor instead.
func (*EmbedField) GetInline ¶
func (x *EmbedField) GetInline() bool
func (*EmbedField) GetName ¶
func (x *EmbedField) GetName() string
func (*EmbedField) GetValue ¶
func (x *EmbedField) GetValue() string
func (*EmbedField) ProtoMessage ¶
func (*EmbedField) ProtoMessage()
func (*EmbedField) ProtoReflect ¶
func (x *EmbedField) ProtoReflect() protoreflect.Message
func (*EmbedField) Reset ¶
func (x *EmbedField) Reset()
func (*EmbedField) String ¶
func (x *EmbedField) String() string
type EmbedFooter ¶
type EmbedFooter struct { // contains filtered or unexported fields }
func (*EmbedFooter) Descriptor
deprecated
func (*EmbedFooter) Descriptor() ([]byte, []int)
Deprecated: Use EmbedFooter.ProtoReflect.Descriptor instead.
func (*EmbedFooter) GetIconURL ¶
func (x *EmbedFooter) GetIconURL() string
func (*EmbedFooter) GetProxyIconURL ¶
func (x *EmbedFooter) GetProxyIconURL() string
func (*EmbedFooter) GetText ¶
func (x *EmbedFooter) GetText() string
func (*EmbedFooter) ProtoMessage ¶
func (*EmbedFooter) ProtoMessage()
func (*EmbedFooter) ProtoReflect ¶
func (x *EmbedFooter) ProtoReflect() protoreflect.Message
func (*EmbedFooter) Reset ¶
func (x *EmbedFooter) Reset()
func (*EmbedFooter) String ¶
func (x *EmbedFooter) String() string
type EmbedImage ¶
type EmbedImage struct { URL string `protobuf:"bytes,1,opt,name=URL,json=url,proto3" json:"URL,omitempty"` ProxyURL string `protobuf:"bytes,2,opt,name=ProxyURL,json=proxy_url,proto3" json:"ProxyURL,omitempty"` Height int32 `protobuf:"varint,3,opt,name=Height,json=height,proto3" json:"Height,omitempty"` Width int32 `protobuf:"varint,4,opt,name=Width,json=width,proto3" json:"Width,omitempty"` // contains filtered or unexported fields }
func (*EmbedImage) Descriptor
deprecated
func (*EmbedImage) Descriptor() ([]byte, []int)
Deprecated: Use EmbedImage.ProtoReflect.Descriptor instead.
func (*EmbedImage) GetHeight ¶
func (x *EmbedImage) GetHeight() int32
func (*EmbedImage) GetProxyURL ¶
func (x *EmbedImage) GetProxyURL() string
func (*EmbedImage) GetURL ¶
func (x *EmbedImage) GetURL() string
func (*EmbedImage) GetWidth ¶
func (x *EmbedImage) GetWidth() int32
func (*EmbedImage) ProtoMessage ¶
func (*EmbedImage) ProtoMessage()
func (*EmbedImage) ProtoReflect ¶
func (x *EmbedImage) ProtoReflect() protoreflect.Message
func (*EmbedImage) Reset ¶
func (x *EmbedImage) Reset()
func (*EmbedImage) String ¶
func (x *EmbedImage) String() string
type EmbedProvider ¶
type EmbedProvider struct { Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` URL string `protobuf:"bytes,2,opt,name=URL,json=url,proto3" json:"URL,omitempty"` // contains filtered or unexported fields }
func (*EmbedProvider) Descriptor
deprecated
func (*EmbedProvider) Descriptor() ([]byte, []int)
Deprecated: Use EmbedProvider.ProtoReflect.Descriptor instead.
func (*EmbedProvider) GetName ¶
func (x *EmbedProvider) GetName() string
func (*EmbedProvider) GetURL ¶
func (x *EmbedProvider) GetURL() string
func (*EmbedProvider) ProtoMessage ¶
func (*EmbedProvider) ProtoMessage()
func (*EmbedProvider) ProtoReflect ¶
func (x *EmbedProvider) ProtoReflect() protoreflect.Message
func (*EmbedProvider) Reset ¶
func (x *EmbedProvider) Reset()
func (*EmbedProvider) String ¶
func (x *EmbedProvider) String() string
type EmbedThumbnail ¶
type EmbedThumbnail struct { URL string `protobuf:"bytes,1,opt,name=URL,json=url,proto3" json:"URL,omitempty"` ProxyURL string `protobuf:"bytes,2,opt,name=ProxyURL,json=proxy_url,proto3" json:"ProxyURL,omitempty"` Height int32 `protobuf:"varint,3,opt,name=Height,json=height,proto3" json:"Height,omitempty"` Width int32 `protobuf:"varint,4,opt,name=Width,json=width,proto3" json:"Width,omitempty"` // contains filtered or unexported fields }
func (*EmbedThumbnail) Descriptor
deprecated
func (*EmbedThumbnail) Descriptor() ([]byte, []int)
Deprecated: Use EmbedThumbnail.ProtoReflect.Descriptor instead.
func (*EmbedThumbnail) GetHeight ¶
func (x *EmbedThumbnail) GetHeight() int32
func (*EmbedThumbnail) GetProxyURL ¶
func (x *EmbedThumbnail) GetProxyURL() string
func (*EmbedThumbnail) GetURL ¶
func (x *EmbedThumbnail) GetURL() string
func (*EmbedThumbnail) GetWidth ¶
func (x *EmbedThumbnail) GetWidth() int32
func (*EmbedThumbnail) ProtoMessage ¶
func (*EmbedThumbnail) ProtoMessage()
func (*EmbedThumbnail) ProtoReflect ¶
func (x *EmbedThumbnail) ProtoReflect() protoreflect.Message
func (*EmbedThumbnail) Reset ¶
func (x *EmbedThumbnail) Reset()
func (*EmbedThumbnail) String ¶
func (x *EmbedThumbnail) String() string
type EmbedVideo ¶
type EmbedVideo struct { URL string `protobuf:"bytes,1,opt,name=URL,json=url,proto3" json:"URL,omitempty"` Height int32 `protobuf:"varint,2,opt,name=Height,json=height,proto3" json:"Height,omitempty"` Width int32 `protobuf:"varint,3,opt,name=Width,json=width,proto3" json:"Width,omitempty"` // contains filtered or unexported fields }
func (*EmbedVideo) Descriptor
deprecated
func (*EmbedVideo) Descriptor() ([]byte, []int)
Deprecated: Use EmbedVideo.ProtoReflect.Descriptor instead.
func (*EmbedVideo) GetHeight ¶
func (x *EmbedVideo) GetHeight() int32
func (*EmbedVideo) GetURL ¶
func (x *EmbedVideo) GetURL() string
func (*EmbedVideo) GetWidth ¶
func (x *EmbedVideo) GetWidth() int32
func (*EmbedVideo) ProtoMessage ¶
func (*EmbedVideo) ProtoMessage()
func (*EmbedVideo) ProtoReflect ¶
func (x *EmbedVideo) ProtoReflect() protoreflect.Message
func (*EmbedVideo) Reset ¶
func (x *EmbedVideo) Reset()
func (*EmbedVideo) String ¶
func (x *EmbedVideo) String() string
type Emoji ¶
type Emoji struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` GuildID int64 `protobuf:"varint,2,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Roles []int64 `protobuf:"varint,4,rep,packed,name=Roles,json=roles,proto3" json:"Roles,omitempty"` User *User `protobuf:"bytes,5,opt,name=User,json=user,proto3" json:"User,omitempty"` RequireColons bool `protobuf:"varint,6,opt,name=RequireColons,json=require_colons,proto3" json:"RequireColons,omitempty"` Managed bool `protobuf:"varint,7,opt,name=Managed,json=managed,proto3" json:"Managed,omitempty"` Animated bool `protobuf:"varint,8,opt,name=Animated,json=animated,proto3" json:"Animated,omitempty"` Available bool `protobuf:"varint,9,opt,name=Available,json=available,proto3" json:"Available,omitempty"` // contains filtered or unexported fields }
func EmojiToGRPC ¶
Converts discord.Emoji to gRPC counterpart.
func (*Emoji) Descriptor
deprecated
func (*Emoji) GetAnimated ¶
func (*Emoji) GetAvailable ¶
func (*Emoji) GetGuildID ¶
func (*Emoji) GetManaged ¶
func (*Emoji) GetRequireColons ¶
func (*Emoji) ProtoMessage ¶
func (*Emoji) ProtoMessage()
func (*Emoji) ProtoReflect ¶
func (x *Emoji) ProtoReflect() protoreflect.Message
type EmojisResponse ¶
type EmojisResponse struct { BaseResponse *BaseResponse `protobuf:"bytes,1,opt,name=baseResponse,proto3" json:"baseResponse,omitempty"` GuildEmojis map[int64]*Emoji `` /* 164-byte string literal not displayed */ // contains filtered or unexported fields }
func (*EmojisResponse) Descriptor
deprecated
func (*EmojisResponse) Descriptor() ([]byte, []int)
Deprecated: Use EmojisResponse.ProtoReflect.Descriptor instead.
func (*EmojisResponse) GetBaseResponse ¶
func (x *EmojisResponse) GetBaseResponse() *BaseResponse
func (*EmojisResponse) GetGuildEmojis ¶
func (x *EmojisResponse) GetGuildEmojis() map[int64]*Emoji
func (*EmojisResponse) ProtoMessage ¶
func (*EmojisResponse) ProtoMessage()
func (*EmojisResponse) ProtoReflect ¶
func (x *EmojisResponse) ProtoReflect() protoreflect.Message
func (*EmojisResponse) Reset ¶
func (x *EmojisResponse) Reset()
func (*EmojisResponse) String ¶
func (x *EmojisResponse) String() string
type EventMetadata ¶
type EventMetadata struct { Location string `protobuf:"bytes,1,opt,name=Location,json=location,proto3" json:"Location,omitempty"` // contains filtered or unexported fields }
func (*EventMetadata) Descriptor
deprecated
func (*EventMetadata) Descriptor() ([]byte, []int)
Deprecated: Use EventMetadata.ProtoReflect.Descriptor instead.
func (*EventMetadata) GetLocation ¶
func (x *EventMetadata) GetLocation() string
func (*EventMetadata) ProtoMessage ¶
func (*EventMetadata) ProtoMessage()
func (*EventMetadata) ProtoReflect ¶
func (x *EventMetadata) ProtoReflect() protoreflect.Message
func (*EventMetadata) Reset ¶
func (x *EventMetadata) Reset()
func (*EventMetadata) String ¶
func (x *EventMetadata) String() string
type FetchConsumerConfigurationRequest ¶
type FetchConsumerConfigurationRequest struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // contains filtered or unexported fields }
func (*FetchConsumerConfigurationRequest) Descriptor
deprecated
func (*FetchConsumerConfigurationRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchConsumerConfigurationRequest.ProtoReflect.Descriptor instead.
func (*FetchConsumerConfigurationRequest) GetIdentifier ¶
func (x *FetchConsumerConfigurationRequest) GetIdentifier() string
func (*FetchConsumerConfigurationRequest) ProtoMessage ¶
func (*FetchConsumerConfigurationRequest) ProtoMessage()
func (*FetchConsumerConfigurationRequest) ProtoReflect ¶
func (x *FetchConsumerConfigurationRequest) ProtoReflect() protoreflect.Message
func (*FetchConsumerConfigurationRequest) Reset ¶
func (x *FetchConsumerConfigurationRequest) Reset()
func (*FetchConsumerConfigurationRequest) String ¶
func (x *FetchConsumerConfigurationRequest) String() string
type FetchConsumerConfigurationResponse ¶
type FetchConsumerConfigurationResponse struct { File []byte `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // contains filtered or unexported fields }
func (*FetchConsumerConfigurationResponse) Descriptor
deprecated
func (*FetchConsumerConfigurationResponse) Descriptor() ([]byte, []int)
Deprecated: Use FetchConsumerConfigurationResponse.ProtoReflect.Descriptor instead.
func (*FetchConsumerConfigurationResponse) GetFile ¶
func (x *FetchConsumerConfigurationResponse) GetFile() []byte
func (*FetchConsumerConfigurationResponse) ProtoMessage ¶
func (*FetchConsumerConfigurationResponse) ProtoMessage()
func (*FetchConsumerConfigurationResponse) ProtoReflect ¶
func (x *FetchConsumerConfigurationResponse) ProtoReflect() protoreflect.Message
func (*FetchConsumerConfigurationResponse) Reset ¶
func (x *FetchConsumerConfigurationResponse) Reset()
func (*FetchConsumerConfigurationResponse) String ¶
func (x *FetchConsumerConfigurationResponse) String() string
type FetchGuildChannelsRequest ¶
type FetchGuildChannelsRequest struct { GuildID int64 `protobuf:"varint,1,opt,name=guildID,proto3" json:"guildID,omitempty"` ChannelIDs []int64 `protobuf:"varint,2,rep,packed,name=channelIDs,proto3" json:"channelIDs,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*FetchGuildChannelsRequest) Descriptor
deprecated
func (*FetchGuildChannelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchGuildChannelsRequest.ProtoReflect.Descriptor instead.
func (*FetchGuildChannelsRequest) GetChannelIDs ¶
func (x *FetchGuildChannelsRequest) GetChannelIDs() []int64
func (*FetchGuildChannelsRequest) GetGuildID ¶
func (x *FetchGuildChannelsRequest) GetGuildID() int64
func (*FetchGuildChannelsRequest) GetQuery ¶
func (x *FetchGuildChannelsRequest) GetQuery() string
func (*FetchGuildChannelsRequest) ProtoMessage ¶
func (*FetchGuildChannelsRequest) ProtoMessage()
func (*FetchGuildChannelsRequest) ProtoReflect ¶
func (x *FetchGuildChannelsRequest) ProtoReflect() protoreflect.Message
func (*FetchGuildChannelsRequest) Reset ¶
func (x *FetchGuildChannelsRequest) Reset()
func (*FetchGuildChannelsRequest) String ¶
func (x *FetchGuildChannelsRequest) String() string
type FetchGuildEmojisRequest ¶
type FetchGuildEmojisRequest struct { GuildID int64 `protobuf:"varint,1,opt,name=guildID,proto3" json:"guildID,omitempty"` EmojiIDs []int64 `protobuf:"varint,2,rep,packed,name=emojiIDs,proto3" json:"emojiIDs,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*FetchGuildEmojisRequest) Descriptor
deprecated
func (*FetchGuildEmojisRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchGuildEmojisRequest.ProtoReflect.Descriptor instead.
func (*FetchGuildEmojisRequest) GetEmojiIDs ¶
func (x *FetchGuildEmojisRequest) GetEmojiIDs() []int64
func (*FetchGuildEmojisRequest) GetGuildID ¶
func (x *FetchGuildEmojisRequest) GetGuildID() int64
func (*FetchGuildEmojisRequest) GetQuery ¶
func (x *FetchGuildEmojisRequest) GetQuery() string
func (*FetchGuildEmojisRequest) ProtoMessage ¶
func (*FetchGuildEmojisRequest) ProtoMessage()
func (*FetchGuildEmojisRequest) ProtoReflect ¶
func (x *FetchGuildEmojisRequest) ProtoReflect() protoreflect.Message
func (*FetchGuildEmojisRequest) Reset ¶
func (x *FetchGuildEmojisRequest) Reset()
func (*FetchGuildEmojisRequest) String ¶
func (x *FetchGuildEmojisRequest) String() string
type FetchGuildMembersRequest ¶
type FetchGuildMembersRequest struct { GuildID int64 `protobuf:"varint,1,opt,name=guildID,proto3" json:"guildID,omitempty"` UserIDs []int64 `protobuf:"varint,2,rep,packed,name=userIDs,proto3" json:"userIDs,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` ChunkGuild bool `protobuf:"varint,4,opt,name=chunkGuild,proto3" json:"chunkGuild,omitempty"` AlwaysChunk bool `protobuf:"varint,5,opt,name=alwaysChunk,proto3" json:"alwaysChunk,omitempty"` // contains filtered or unexported fields }
func (*FetchGuildMembersRequest) Descriptor
deprecated
func (*FetchGuildMembersRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchGuildMembersRequest.ProtoReflect.Descriptor instead.
func (*FetchGuildMembersRequest) GetAlwaysChunk ¶
func (x *FetchGuildMembersRequest) GetAlwaysChunk() bool
func (*FetchGuildMembersRequest) GetChunkGuild ¶
func (x *FetchGuildMembersRequest) GetChunkGuild() bool
func (*FetchGuildMembersRequest) GetGuildID ¶
func (x *FetchGuildMembersRequest) GetGuildID() int64
func (*FetchGuildMembersRequest) GetQuery ¶
func (x *FetchGuildMembersRequest) GetQuery() string
func (*FetchGuildMembersRequest) GetUserIDs ¶
func (x *FetchGuildMembersRequest) GetUserIDs() []int64
func (*FetchGuildMembersRequest) ProtoMessage ¶
func (*FetchGuildMembersRequest) ProtoMessage()
func (*FetchGuildMembersRequest) ProtoReflect ¶
func (x *FetchGuildMembersRequest) ProtoReflect() protoreflect.Message
func (*FetchGuildMembersRequest) Reset ¶
func (x *FetchGuildMembersRequest) Reset()
func (*FetchGuildMembersRequest) String ¶
func (x *FetchGuildMembersRequest) String() string
type FetchGuildRequest ¶
type FetchGuildRequest struct { GuildIDs []int64 `protobuf:"varint,1,rep,packed,name=guildIDs,proto3" json:"guildIDs,omitempty"` Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*FetchGuildRequest) Descriptor
deprecated
func (*FetchGuildRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchGuildRequest.ProtoReflect.Descriptor instead.
func (*FetchGuildRequest) GetGuildIDs ¶
func (x *FetchGuildRequest) GetGuildIDs() []int64
func (*FetchGuildRequest) GetQuery ¶
func (x *FetchGuildRequest) GetQuery() string
func (*FetchGuildRequest) ProtoMessage ¶
func (*FetchGuildRequest) ProtoMessage()
func (*FetchGuildRequest) ProtoReflect ¶
func (x *FetchGuildRequest) ProtoReflect() protoreflect.Message
func (*FetchGuildRequest) Reset ¶
func (x *FetchGuildRequest) Reset()
func (*FetchGuildRequest) String ¶
func (x *FetchGuildRequest) String() string
type FetchGuildRolesRequest ¶
type FetchGuildRolesRequest struct { GuildID int64 `protobuf:"varint,1,opt,name=guildID,proto3" json:"guildID,omitempty"` RoleIDs []int64 `protobuf:"varint,2,rep,packed,name=roleIDs,proto3" json:"roleIDs,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` // contains filtered or unexported fields }
func (*FetchGuildRolesRequest) Descriptor
deprecated
func (*FetchGuildRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchGuildRolesRequest.ProtoReflect.Descriptor instead.
func (*FetchGuildRolesRequest) GetGuildID ¶
func (x *FetchGuildRolesRequest) GetGuildID() int64
func (*FetchGuildRolesRequest) GetQuery ¶
func (x *FetchGuildRolesRequest) GetQuery() string
func (*FetchGuildRolesRequest) GetRoleIDs ¶
func (x *FetchGuildRolesRequest) GetRoleIDs() []int64
func (*FetchGuildRolesRequest) ProtoMessage ¶
func (*FetchGuildRolesRequest) ProtoMessage()
func (*FetchGuildRolesRequest) ProtoReflect ¶
func (x *FetchGuildRolesRequest) ProtoReflect() protoreflect.Message
func (*FetchGuildRolesRequest) Reset ¶
func (x *FetchGuildRolesRequest) Reset()
func (*FetchGuildRolesRequest) String ¶
func (x *FetchGuildRolesRequest) String() string
type FetchMutualGuildsRequest ¶
type FetchMutualGuildsRequest struct { UserID int64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` Expand bool `protobuf:"varint,2,opt,name=expand,proto3" json:"expand,omitempty"` // contains filtered or unexported fields }
func (*FetchMutualGuildsRequest) Descriptor
deprecated
func (*FetchMutualGuildsRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchMutualGuildsRequest.ProtoReflect.Descriptor instead.
func (*FetchMutualGuildsRequest) GetExpand ¶
func (x *FetchMutualGuildsRequest) GetExpand() bool
func (*FetchMutualGuildsRequest) GetUserID ¶
func (x *FetchMutualGuildsRequest) GetUserID() int64
func (*FetchMutualGuildsRequest) ProtoMessage ¶
func (*FetchMutualGuildsRequest) ProtoMessage()
func (*FetchMutualGuildsRequest) ProtoReflect ¶
func (x *FetchMutualGuildsRequest) ProtoReflect() protoreflect.Message
func (*FetchMutualGuildsRequest) Reset ¶
func (x *FetchMutualGuildsRequest) Reset()
func (*FetchMutualGuildsRequest) String ¶
func (x *FetchMutualGuildsRequest) String() string
type FetchUsersRequest ¶
type FetchUsersRequest struct { UserIDs []int64 `protobuf:"varint,1,rep,packed,name=userIDs,proto3" json:"userIDs,omitempty"` Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"` CreateDMChannel bool `protobuf:"varint,3,opt,name=createDMChannel,proto3" json:"createDMChannel,omitempty"` Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*FetchUsersRequest) Descriptor
deprecated
func (*FetchUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use FetchUsersRequest.ProtoReflect.Descriptor instead.
func (*FetchUsersRequest) GetCreateDMChannel ¶
func (x *FetchUsersRequest) GetCreateDMChannel() bool
func (*FetchUsersRequest) GetQuery ¶
func (x *FetchUsersRequest) GetQuery() string
func (*FetchUsersRequest) GetToken ¶
func (x *FetchUsersRequest) GetToken() string
func (*FetchUsersRequest) GetUserIDs ¶
func (x *FetchUsersRequest) GetUserIDs() []int64
func (*FetchUsersRequest) ProtoMessage ¶
func (*FetchUsersRequest) ProtoMessage()
func (*FetchUsersRequest) ProtoReflect ¶
func (x *FetchUsersRequest) ProtoReflect() protoreflect.Message
func (*FetchUsersRequest) Reset ¶
func (x *FetchUsersRequest) Reset()
func (*FetchUsersRequest) String ¶
func (x *FetchUsersRequest) String() string
type Gateway ¶
type Gateway struct { URL string `protobuf:"bytes,1,opt,name=URL,json=url,proto3" json:"URL,omitempty"` // contains filtered or unexported fields }
func (*Gateway) Descriptor
deprecated
func (*Gateway) ProtoMessage ¶
func (*Gateway) ProtoMessage()
func (*Gateway) ProtoReflect ¶
func (x *Gateway) ProtoReflect() protoreflect.Message
type GatewayBot ¶
type GatewayBot struct { URL string `protobuf:"bytes,1,opt,name=URL,json=url,proto3" json:"URL,omitempty"` Shards int32 `protobuf:"varint,2,opt,name=Shards,json=shards,proto3" json:"Shards,omitempty"` Total int32 `protobuf:"varint,3,opt,name=Total,json=total,proto3" json:"Total,omitempty"` Remaining int32 `protobuf:"varint,4,opt,name=Remaining,json=remaining,proto3" json:"Remaining,omitempty"` ResetAfter int32 `protobuf:"varint,5,opt,name=ResetAfter,json=reset_after,proto3" json:"ResetAfter,omitempty"` MaxConcurrency int32 `protobuf:"varint,6,opt,name=MaxConcurrency,json=max_concurrency,proto3" json:"MaxConcurrency,omitempty"` // contains filtered or unexported fields }
func (*GatewayBot) Descriptor
deprecated
func (*GatewayBot) Descriptor() ([]byte, []int)
Deprecated: Use GatewayBot.ProtoReflect.Descriptor instead.
func (*GatewayBot) GetMaxConcurrency ¶
func (x *GatewayBot) GetMaxConcurrency() int32
func (*GatewayBot) GetRemaining ¶
func (x *GatewayBot) GetRemaining() int32
func (*GatewayBot) GetResetAfter ¶
func (x *GatewayBot) GetResetAfter() int32
func (*GatewayBot) GetShards ¶
func (x *GatewayBot) GetShards() int32
func (*GatewayBot) GetTotal ¶
func (x *GatewayBot) GetTotal() int32
func (*GatewayBot) GetURL ¶
func (x *GatewayBot) GetURL() string
func (*GatewayBot) ProtoMessage ¶
func (*GatewayBot) ProtoMessage()
func (*GatewayBot) ProtoReflect ¶
func (x *GatewayBot) ProtoReflect() protoreflect.Message
func (*GatewayBot) Reset ¶
func (x *GatewayBot) Reset()
func (*GatewayBot) String ¶
func (x *GatewayBot) String() string
type Guild ¶
type Guild struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Icon string `protobuf:"bytes,3,opt,name=Icon,json=icon,proto3" json:"Icon,omitempty"` IconHash string `protobuf:"bytes,4,opt,name=IconHash,json=icon_hash,proto3" json:"IconHash,omitempty"` Splash string `protobuf:"bytes,5,opt,name=Splash,json=splash,proto3" json:"Splash,omitempty"` DiscoverySplash string `protobuf:"bytes,6,opt,name=DiscoverySplash,json=discovery_splash,proto3" json:"DiscoverySplash,omitempty"` Owner bool `protobuf:"varint,7,opt,name=Owner,json=owner,proto3" json:"Owner,omitempty"` OwnerID int64 `protobuf:"varint,8,opt,name=OwnerID,json=owner_id,proto3" json:"OwnerID,omitempty"` Permissions int64 `protobuf:"varint,9,opt,name=Permissions,json=permissions,proto3" json:"Permissions,omitempty"` Region string `protobuf:"bytes,10,opt,name=Region,json=region,proto3" json:"Region,omitempty"` AFKChannelID int64 `protobuf:"varint,11,opt,name=AFKChannelID,json=afk_channel_id,proto3" json:"AFKChannelID,omitempty"` AFKTimeout int32 `protobuf:"varint,12,opt,name=AFKTimeout,json=afk_timeout,proto3" json:"AFKTimeout,omitempty"` WidgetEnabled bool `protobuf:"varint,13,opt,name=WidgetEnabled,json=widget_enabled,proto3" json:"WidgetEnabled,omitempty"` WidgetChannelID int64 `protobuf:"varint,14,opt,name=WidgetChannelID,json=widget_channel_id,proto3" json:"WidgetChannelID,omitempty"` VerificationLevel uint32 `protobuf:"varint,15,opt,name=VerificationLevel,json=verification_level,proto3" json:"VerificationLevel,omitempty"` DefaultMessageNotifications int32 `` /* 144-byte string literal not displayed */ ExplicitContentFilter int32 `` /* 126-byte string literal not displayed */ Roles []*Role `protobuf:"bytes,18,rep,name=Roles,json=roles,proto3" json:"Roles,omitempty"` Emojis []*Emoji `protobuf:"bytes,19,rep,name=Emojis,json=emojis,proto3" json:"Emojis,omitempty"` Features []string `protobuf:"bytes,20,rep,name=Features,json=features,proto3" json:"Features,omitempty"` MFALevel uint32 `protobuf:"varint,21,opt,name=MFALevel,json=mfa_level,proto3" json:"MFALevel,omitempty"` ApplicationID int64 `protobuf:"varint,22,opt,name=ApplicationID,json=application_id,proto3" json:"ApplicationID,omitempty"` SystemChannelID int64 `protobuf:"varint,23,opt,name=SystemChannelID,json=system_channel_id,proto3" json:"SystemChannelID,omitempty"` SystemChannelFlags uint32 `protobuf:"varint,24,opt,name=SystemChannelFlags,json=system_channel_flags,proto3" json:"SystemChannelFlags,omitempty"` RulesChannelID int64 `protobuf:"varint,25,opt,name=RulesChannelID,json=rules_channel_id,proto3" json:"RulesChannelID,omitempty"` JoinedAt string `protobuf:"bytes,26,opt,name=JoinedAt,json=joined_at,proto3" json:"JoinedAt,omitempty"` Large bool `protobuf:"varint,27,opt,name=Large,json=large,proto3" json:"Large,omitempty"` MemberCount int32 `protobuf:"varint,29,opt,name=MemberCount,json=member_count,proto3" json:"MemberCount,omitempty"` VoiceStates []*VoiceState `protobuf:"bytes,30,rep,name=VoiceStates,json=voice_states,proto3" json:"VoiceStates,omitempty"` Members []*GuildMember `protobuf:"bytes,31,rep,name=Members,json=members,proto3" json:"Members,omitempty"` Channels []*Channel `protobuf:"bytes,32,rep,name=Channels,json=channels,proto3" json:"Channels,omitempty"` Presences []*Activity `protobuf:"bytes,33,rep,name=Presences,json=presences,proto3" json:"Presences,omitempty"` MaxPresences int32 `protobuf:"varint,34,opt,name=MaxPresences,json=max_presences,proto3" json:"MaxPresences,omitempty"` MaxMembers int32 `protobuf:"varint,35,opt,name=MaxMembers,json=max_members,proto3" json:"MaxMembers,omitempty"` VanityURLCode string `protobuf:"bytes,36,opt,name=VanityURLCode,json=vanity_url_code,proto3" json:"VanityURLCode,omitempty"` Description string `protobuf:"bytes,37,opt,name=Description,json=description,proto3" json:"Description,omitempty"` Banner string `protobuf:"bytes,38,opt,name=Banner,json=banner,proto3" json:"Banner,omitempty"` PremiumTier uint32 `protobuf:"varint,39,opt,name=PremiumTier,json=premium_tier,proto3" json:"PremiumTier,omitempty"` PremiumSubscriptionCount int32 `` /* 135-byte string literal not displayed */ PreferredLocale string `protobuf:"bytes,41,opt,name=PreferredLocale,json=preferred_locale,proto3" json:"PreferredLocale,omitempty"` PublicUpdatesChannelID int64 `` /* 130-byte string literal not displayed */ MaxVideoChannelUsers int32 `protobuf:"varint,43,opt,name=MaxVideoChannelUsers,json=max_video_channel_users,proto3" json:"MaxVideoChannelUsers,omitempty"` ApproximateMemberCount int32 `` /* 129-byte string literal not displayed */ ApproximatePresenceCount int32 `` /* 135-byte string literal not displayed */ NSFWLevel uint32 `protobuf:"varint,46,opt,name=NSFWLevel,json=nsfw_level,proto3" json:"NSFWLevel,omitempty"` StageInstances []*StageInstance `protobuf:"bytes,47,rep,name=StageInstances,json=stage_instances,proto3" json:"StageInstances,omitempty"` Stickers []*Sticker `protobuf:"bytes,48,rep,name=Stickers,json=stickers,proto3" json:"Stickers,omitempty"` GuildScheduledEvents []*ScheduledEvent `protobuf:"bytes,49,rep,name=GuildScheduledEvents,json=guild_scheduled_events,proto3" json:"GuildScheduledEvents,omitempty"` PremiumProgressBarEnabled bool `` /* 139-byte string literal not displayed */ // contains filtered or unexported fields }
func GuildToGRPC ¶
Converts discord.Guild to gRPC counterpart.
func (*Guild) Descriptor
deprecated
func (*Guild) GetAFKChannelID ¶
func (*Guild) GetAFKTimeout ¶
func (*Guild) GetApplicationID ¶
func (*Guild) GetApproximateMemberCount ¶
func (*Guild) GetApproximatePresenceCount ¶
func (*Guild) GetChannels ¶
func (*Guild) GetDefaultMessageNotifications ¶
func (*Guild) GetDescription ¶
func (*Guild) GetDiscoverySplash ¶
func (*Guild) GetExplicitContentFilter ¶
func (*Guild) GetFeatures ¶
func (*Guild) GetGuildScheduledEvents ¶
func (x *Guild) GetGuildScheduledEvents() []*ScheduledEvent
func (*Guild) GetIconHash ¶
func (*Guild) GetJoinedAt ¶
func (*Guild) GetMFALevel ¶
func (*Guild) GetMaxMembers ¶
func (*Guild) GetMaxPresences ¶
func (*Guild) GetMaxVideoChannelUsers ¶
func (*Guild) GetMemberCount ¶
func (*Guild) GetMembers ¶
func (x *Guild) GetMembers() []*GuildMember
func (*Guild) GetNSFWLevel ¶
func (*Guild) GetOwnerID ¶
func (*Guild) GetPermissions ¶
func (*Guild) GetPreferredLocale ¶
func (*Guild) GetPremiumProgressBarEnabled ¶
func (*Guild) GetPremiumSubscriptionCount ¶
func (*Guild) GetPremiumTier ¶
func (*Guild) GetPresences ¶
func (*Guild) GetPublicUpdatesChannelID ¶
func (*Guild) GetRulesChannelID ¶
func (*Guild) GetStageInstances ¶
func (x *Guild) GetStageInstances() []*StageInstance
func (*Guild) GetStickers ¶
func (*Guild) GetSystemChannelFlags ¶
func (*Guild) GetSystemChannelID ¶
func (*Guild) GetUnavailable ¶
func (*Guild) GetVanityURLCode ¶
func (*Guild) GetVerificationLevel ¶
func (*Guild) GetVoiceStates ¶
func (x *Guild) GetVoiceStates() []*VoiceState
func (*Guild) GetWidgetChannelID ¶
func (*Guild) GetWidgetEnabled ¶
func (*Guild) ProtoMessage ¶
func (*Guild) ProtoMessage()
func (*Guild) ProtoReflect ¶
func (x *Guild) ProtoReflect() protoreflect.Message
type GuildApplicationCommandPermissions ¶
type GuildApplicationCommandPermissions struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` ApplicationID int64 `protobuf:"varint,2,opt,name=ApplicationID,json=application_id,proto3" json:"ApplicationID,omitempty"` GuildID int64 `protobuf:"varint,3,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` Permissions []*ApplicationCommandPermissions `protobuf:"bytes,4,rep,name=Permissions,json=permissions,proto3" json:"Permissions,omitempty"` // contains filtered or unexported fields }
func (*GuildApplicationCommandPermissions) Descriptor
deprecated
func (*GuildApplicationCommandPermissions) Descriptor() ([]byte, []int)
Deprecated: Use GuildApplicationCommandPermissions.ProtoReflect.Descriptor instead.
func (*GuildApplicationCommandPermissions) GetApplicationID ¶
func (x *GuildApplicationCommandPermissions) GetApplicationID() int64
func (*GuildApplicationCommandPermissions) GetGuildID ¶
func (x *GuildApplicationCommandPermissions) GetGuildID() int64
func (*GuildApplicationCommandPermissions) GetID ¶
func (x *GuildApplicationCommandPermissions) GetID() int64
func (*GuildApplicationCommandPermissions) GetPermissions ¶
func (x *GuildApplicationCommandPermissions) GetPermissions() []*ApplicationCommandPermissions
func (*GuildApplicationCommandPermissions) ProtoMessage ¶
func (*GuildApplicationCommandPermissions) ProtoMessage()
func (*GuildApplicationCommandPermissions) ProtoReflect ¶
func (x *GuildApplicationCommandPermissions) ProtoReflect() protoreflect.Message
func (*GuildApplicationCommandPermissions) Reset ¶
func (x *GuildApplicationCommandPermissions) Reset()
func (*GuildApplicationCommandPermissions) String ¶
func (x *GuildApplicationCommandPermissions) String() string
type GuildMember ¶
type GuildMember struct { User *User `protobuf:"bytes,1,opt,name=User,json=user,proto3" json:"User,omitempty"` GuildID int64 `protobuf:"varint,2,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` Nick string `protobuf:"bytes,3,opt,name=Nick,json=nick,proto3" json:"Nick,omitempty"` Avatar string `protobuf:"bytes,4,opt,name=Avatar,json=avatar,proto3" json:"Avatar,omitempty"` Roles []int64 `protobuf:"varint,5,rep,packed,name=Roles,json=roles,proto3" json:"Roles,omitempty"` JoinedAt string `protobuf:"bytes,6,opt,name=JoinedAt,json=joined_at,proto3" json:"JoinedAt,omitempty"` PremiumSince string `protobuf:"bytes,7,opt,name=PremiumSince,json=premium_since,proto3" json:"PremiumSince,omitempty"` Deaf bool `protobuf:"varint,8,opt,name=Deaf,json=deaf,proto3" json:"Deaf,omitempty"` Mute bool `protobuf:"varint,9,opt,name=Mute,json=mute,proto3" json:"Mute,omitempty"` Pending bool `protobuf:"varint,10,opt,name=Pending,json=pending,proto3" json:"Pending,omitempty"` Permissions int64 `protobuf:"varint,11,opt,name=Permissions,json=permissions,proto3" json:"Permissions,omitempty"` CommunicationDisabledUntil string `` /* 140-byte string literal not displayed */ // contains filtered or unexported fields }
func GuildMemberToGRPC ¶
func GuildMemberToGRPC(guildMember discord.GuildMember) (sandwichGuildMember *GuildMember, err error)
Converts discord.GuildMember to gRPC counterpart.
func (*GuildMember) Descriptor
deprecated
func (*GuildMember) Descriptor() ([]byte, []int)
Deprecated: Use GuildMember.ProtoReflect.Descriptor instead.
func (*GuildMember) GetAvatar ¶
func (x *GuildMember) GetAvatar() string
func (*GuildMember) GetCommunicationDisabledUntil ¶
func (x *GuildMember) GetCommunicationDisabledUntil() string
func (*GuildMember) GetDeaf ¶
func (x *GuildMember) GetDeaf() bool
func (*GuildMember) GetGuildID ¶
func (x *GuildMember) GetGuildID() int64
func (*GuildMember) GetJoinedAt ¶
func (x *GuildMember) GetJoinedAt() string
func (*GuildMember) GetMute ¶
func (x *GuildMember) GetMute() bool
func (*GuildMember) GetNick ¶
func (x *GuildMember) GetNick() string
func (*GuildMember) GetPending ¶
func (x *GuildMember) GetPending() bool
func (*GuildMember) GetPermissions ¶
func (x *GuildMember) GetPermissions() int64
func (*GuildMember) GetPremiumSince ¶
func (x *GuildMember) GetPremiumSince() string
func (*GuildMember) GetRoles ¶
func (x *GuildMember) GetRoles() []int64
func (*GuildMember) GetUser ¶
func (x *GuildMember) GetUser() *User
func (*GuildMember) ProtoMessage ¶
func (*GuildMember) ProtoMessage()
func (*GuildMember) ProtoReflect ¶
func (x *GuildMember) ProtoReflect() protoreflect.Message
func (*GuildMember) Reset ¶
func (x *GuildMember) Reset()
func (*GuildMember) String ¶
func (x *GuildMember) String() string
type GuildMembersResponse ¶
type GuildMembersResponse struct { BaseResponse *BaseResponse `protobuf:"bytes,1,opt,name=baseResponse,proto3" json:"baseResponse,omitempty"` GuildMembers map[int64]*GuildMember `` /* 166-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GuildMembersResponse) Descriptor
deprecated
func (*GuildMembersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GuildMembersResponse.ProtoReflect.Descriptor instead.
func (*GuildMembersResponse) GetBaseResponse ¶
func (x *GuildMembersResponse) GetBaseResponse() *BaseResponse
func (*GuildMembersResponse) GetGuildMembers ¶
func (x *GuildMembersResponse) GetGuildMembers() map[int64]*GuildMember
func (*GuildMembersResponse) ProtoMessage ¶
func (*GuildMembersResponse) ProtoMessage()
func (*GuildMembersResponse) ProtoReflect ¶
func (x *GuildMembersResponse) ProtoReflect() protoreflect.Message
func (*GuildMembersResponse) Reset ¶
func (x *GuildMembersResponse) Reset()
func (*GuildMembersResponse) String ¶
func (x *GuildMembersResponse) String() string
type GuildResponse ¶
type GuildResponse struct { BaseResponse *BaseResponse `protobuf:"bytes,1,opt,name=baseResponse,proto3" json:"baseResponse,omitempty"` Guild *Guild `protobuf:"bytes,2,opt,name=guild,proto3" json:"guild,omitempty"` // contains filtered or unexported fields }
func (*GuildResponse) Descriptor
deprecated
func (*GuildResponse) Descriptor() ([]byte, []int)
Deprecated: Use GuildResponse.ProtoReflect.Descriptor instead.
func (*GuildResponse) GetBaseResponse ¶
func (x *GuildResponse) GetBaseResponse() *BaseResponse
func (*GuildResponse) GetGuild ¶
func (x *GuildResponse) GetGuild() *Guild
func (*GuildResponse) ProtoMessage ¶
func (*GuildResponse) ProtoMessage()
func (*GuildResponse) ProtoReflect ¶
func (x *GuildResponse) ProtoReflect() protoreflect.Message
func (*GuildResponse) Reset ¶
func (x *GuildResponse) Reset()
func (*GuildResponse) String ¶
func (x *GuildResponse) String() string
type GuildRolesResponse ¶
type GuildRolesResponse struct { BaseResponse *BaseResponse `protobuf:"bytes,1,opt,name=baseResponse,proto3" json:"baseResponse,omitempty"` GuildRoles map[int64]*Role `` /* 162-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GuildRolesResponse) Descriptor
deprecated
func (*GuildRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GuildRolesResponse.ProtoReflect.Descriptor instead.
func (*GuildRolesResponse) GetBaseResponse ¶
func (x *GuildRolesResponse) GetBaseResponse() *BaseResponse
func (*GuildRolesResponse) GetGuildRoles ¶
func (x *GuildRolesResponse) GetGuildRoles() map[int64]*Role
func (*GuildRolesResponse) ProtoMessage ¶
func (*GuildRolesResponse) ProtoMessage()
func (*GuildRolesResponse) ProtoReflect ¶
func (x *GuildRolesResponse) ProtoReflect() protoreflect.Message
func (*GuildRolesResponse) Reset ¶
func (x *GuildRolesResponse) Reset()
func (*GuildRolesResponse) String ¶
func (x *GuildRolesResponse) String() string
type GuildsResponse ¶
type GuildsResponse struct { BaseResponse *BaseResponse `protobuf:"bytes,1,opt,name=baseResponse,proto3" json:"baseResponse,omitempty"` Guilds map[int64]*Guild `` /* 154-byte string literal not displayed */ GuildIDs []int64 `protobuf:"varint,3,rep,packed,name=guildIDs,proto3" json:"guildIDs,omitempty"` // contains filtered or unexported fields }
func (*GuildsResponse) Descriptor
deprecated
func (*GuildsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GuildsResponse.ProtoReflect.Descriptor instead.
func (*GuildsResponse) GetBaseResponse ¶
func (x *GuildsResponse) GetBaseResponse() *BaseResponse
func (*GuildsResponse) GetGuildIDs ¶
func (x *GuildsResponse) GetGuildIDs() []int64
func (*GuildsResponse) GetGuilds ¶
func (x *GuildsResponse) GetGuilds() map[int64]*Guild
func (*GuildsResponse) ProtoMessage ¶
func (*GuildsResponse) ProtoMessage()
func (*GuildsResponse) ProtoReflect ¶
func (x *GuildsResponse) ProtoReflect() protoreflect.Message
func (*GuildsResponse) Reset ¶
func (x *GuildsResponse) Reset()
func (*GuildsResponse) String ¶
func (x *GuildsResponse) String() string
type Integration ¶
type Integration struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` GuildID int64 `protobuf:"varint,2,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Type string `protobuf:"bytes,4,opt,name=Type,json=type,proto3" json:"Type,omitempty"` Enabled bool `protobuf:"varint,5,opt,name=Enabled,json=enabled,proto3" json:"Enabled,omitempty"` Syncing bool `protobuf:"varint,6,opt,name=Syncing,json=syncing,proto3" json:"Syncing,omitempty"` RoleID int64 `protobuf:"varint,7,opt,name=RoleID,json=role_id,proto3" json:"RoleID,omitempty"` EnableEmoticons bool `protobuf:"varint,8,opt,name=EnableEmoticons,json=enable_emoticons,proto3" json:"EnableEmoticons,omitempty"` ExpireBehavior uint32 `protobuf:"varint,9,opt,name=ExpireBehavior,json=expire_behavior,proto3" json:"ExpireBehavior,omitempty"` ExpireGracePeriod int32 `protobuf:"varint,10,opt,name=ExpireGracePeriod,json=expire_grace_period,proto3" json:"ExpireGracePeriod,omitempty"` User *User `protobuf:"bytes,11,opt,name=User,json=user,proto3" json:"User,omitempty"` Account *IntegrationAccount `protobuf:"bytes,12,opt,name=Account,json=account,proto3" json:"Account,omitempty"` SyncedAt string `protobuf:"bytes,13,opt,name=SyncedAt,json=synced_at,proto3" json:"SyncedAt,omitempty"` SubscriberCount int32 `protobuf:"varint,14,opt,name=SubscriberCount,json=subscriber_count,proto3" json:"SubscriberCount,omitempty"` Revoked bool `protobuf:"varint,15,opt,name=Revoked,json=revoked,proto3" json:"Revoked,omitempty"` Application *Application `protobuf:"bytes,16,opt,name=Application,json=application,proto3" json:"Application,omitempty"` // contains filtered or unexported fields }
func (*Integration) Descriptor
deprecated
func (*Integration) Descriptor() ([]byte, []int)
Deprecated: Use Integration.ProtoReflect.Descriptor instead.
func (*Integration) GetAccount ¶
func (x *Integration) GetAccount() *IntegrationAccount
func (*Integration) GetApplication ¶
func (x *Integration) GetApplication() *Application
func (*Integration) GetEnableEmoticons ¶
func (x *Integration) GetEnableEmoticons() bool
func (*Integration) GetEnabled ¶
func (x *Integration) GetEnabled() bool
func (*Integration) GetExpireBehavior ¶
func (x *Integration) GetExpireBehavior() uint32
func (*Integration) GetExpireGracePeriod ¶
func (x *Integration) GetExpireGracePeriod() int32
func (*Integration) GetGuildID ¶
func (x *Integration) GetGuildID() int64
func (*Integration) GetID ¶
func (x *Integration) GetID() int64
func (*Integration) GetName ¶
func (x *Integration) GetName() string
func (*Integration) GetRevoked ¶
func (x *Integration) GetRevoked() bool
func (*Integration) GetRoleID ¶
func (x *Integration) GetRoleID() int64
func (*Integration) GetSubscriberCount ¶
func (x *Integration) GetSubscriberCount() int32
func (*Integration) GetSyncedAt ¶
func (x *Integration) GetSyncedAt() string
func (*Integration) GetSyncing ¶
func (x *Integration) GetSyncing() bool
func (*Integration) GetType ¶
func (x *Integration) GetType() string
func (*Integration) GetUser ¶
func (x *Integration) GetUser() *User
func (*Integration) ProtoMessage ¶
func (*Integration) ProtoMessage()
func (*Integration) ProtoReflect ¶
func (x *Integration) ProtoReflect() protoreflect.Message
func (*Integration) Reset ¶
func (x *Integration) Reset()
func (*Integration) String ¶
func (x *Integration) String() string
type IntegrationAccount ¶
type IntegrationAccount struct { ID string `protobuf:"bytes,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*IntegrationAccount) Descriptor
deprecated
func (*IntegrationAccount) Descriptor() ([]byte, []int)
Deprecated: Use IntegrationAccount.ProtoReflect.Descriptor instead.
func (*IntegrationAccount) GetID ¶
func (x *IntegrationAccount) GetID() string
func (*IntegrationAccount) GetName ¶
func (x *IntegrationAccount) GetName() string
func (*IntegrationAccount) ProtoMessage ¶
func (*IntegrationAccount) ProtoMessage()
func (*IntegrationAccount) ProtoReflect ¶
func (x *IntegrationAccount) ProtoReflect() protoreflect.Message
func (*IntegrationAccount) Reset ¶
func (x *IntegrationAccount) Reset()
func (*IntegrationAccount) String ¶
func (x *IntegrationAccount) String() string
type Interaction ¶
type Interaction struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` ApplicationID int64 `protobuf:"varint,2,opt,name=ApplicationID,json=application_id,proto3" json:"ApplicationID,omitempty"` Type uint32 `protobuf:"varint,3,opt,name=Type,json=type,proto3" json:"Type,omitempty"` Data *InteractionData `protobuf:"bytes,4,opt,name=Data,json=data,proto3" json:"Data,omitempty"` GuildID int64 `protobuf:"varint,5,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` ChannelID int64 `protobuf:"varint,6,opt,name=ChannelID,json=channel_id,proto3" json:"ChannelID,omitempty"` Member *GuildMember `protobuf:"bytes,7,opt,name=Member,json=member,proto3" json:"Member,omitempty"` User *User `protobuf:"bytes,8,opt,name=User,json=user,proto3" json:"User,omitempty"` Token string `protobuf:"bytes,9,opt,name=Token,json=token,proto3" json:"Token,omitempty"` Version int32 `protobuf:"varint,10,opt,name=Version,json=version,proto3" json:"Version,omitempty"` Message *Message `protobuf:"bytes,11,opt,name=Message,json=message,proto3" json:"Message,omitempty"` Locale string `protobuf:"bytes,12,opt,name=Locale,json=locale,proto3" json:"Locale,omitempty"` GuildLocale string `protobuf:"bytes,13,opt,name=GuildLocale,json=guild_locale,proto3" json:"GuildLocale,omitempty"` // contains filtered or unexported fields }
func (*Interaction) Descriptor
deprecated
func (*Interaction) Descriptor() ([]byte, []int)
Deprecated: Use Interaction.ProtoReflect.Descriptor instead.
func (*Interaction) GetApplicationID ¶
func (x *Interaction) GetApplicationID() int64
func (*Interaction) GetChannelID ¶
func (x *Interaction) GetChannelID() int64
func (*Interaction) GetData ¶
func (x *Interaction) GetData() *InteractionData
func (*Interaction) GetGuildID ¶
func (x *Interaction) GetGuildID() int64
func (*Interaction) GetGuildLocale ¶
func (x *Interaction) GetGuildLocale() string
func (*Interaction) GetID ¶
func (x *Interaction) GetID() int64
func (*Interaction) GetLocale ¶
func (x *Interaction) GetLocale() string
func (*Interaction) GetMember ¶
func (x *Interaction) GetMember() *GuildMember
func (*Interaction) GetMessage ¶
func (x *Interaction) GetMessage() *Message
func (*Interaction) GetToken ¶
func (x *Interaction) GetToken() string
func (*Interaction) GetType ¶
func (x *Interaction) GetType() uint32
func (*Interaction) GetUser ¶
func (x *Interaction) GetUser() *User
func (*Interaction) GetVersion ¶
func (x *Interaction) GetVersion() int32
func (*Interaction) ProtoMessage ¶
func (*Interaction) ProtoMessage()
func (*Interaction) ProtoReflect ¶
func (x *Interaction) ProtoReflect() protoreflect.Message
func (*Interaction) Reset ¶
func (x *Interaction) Reset()
func (*Interaction) String ¶
func (x *Interaction) String() string
type InteractionComponent ¶
type InteractionComponent struct { Type uint32 `protobuf:"varint,1,opt,name=Type,json=type,proto3" json:"Type,omitempty"` CustomID string `protobuf:"bytes,2,opt,name=CustomID,json=custom_id,proto3" json:"CustomID,omitempty"` Disabled bool `protobuf:"varint,3,opt,name=Disabled,json=disabled,proto3" json:"Disabled,omitempty"` Style uint32 `protobuf:"varint,4,opt,name=Style,json=style,proto3" json:"Style,omitempty"` Label string `protobuf:"bytes,5,opt,name=Label,json=label,proto3" json:"Label,omitempty"` Emoji *Emoji `protobuf:"bytes,6,opt,name=Emoji,json=emoji,proto3" json:"Emoji,omitempty"` URL string `protobuf:"bytes,7,opt,name=URL,json=url,proto3" json:"URL,omitempty"` Options []*ApplicationSelectOption `protobuf:"bytes,8,rep,name=Options,json=options,proto3" json:"Options,omitempty"` Placeholder string `protobuf:"bytes,9,opt,name=Placeholder,json=placeholder,proto3" json:"Placeholder,omitempty"` MinValues int32 `protobuf:"varint,10,opt,name=MinValues,json=min_values,proto3" json:"MinValues,omitempty"` MaxValues int32 `protobuf:"varint,11,opt,name=MaxValues,json=max_values,proto3" json:"MaxValues,omitempty"` Components []*InteractionComponent `protobuf:"bytes,12,rep,name=Components,json=components,proto3" json:"Components,omitempty"` // contains filtered or unexported fields }
func (*InteractionComponent) Descriptor
deprecated
func (*InteractionComponent) Descriptor() ([]byte, []int)
Deprecated: Use InteractionComponent.ProtoReflect.Descriptor instead.
func (*InteractionComponent) GetComponents ¶
func (x *InteractionComponent) GetComponents() []*InteractionComponent
func (*InteractionComponent) GetCustomID ¶
func (x *InteractionComponent) GetCustomID() string
func (*InteractionComponent) GetDisabled ¶
func (x *InteractionComponent) GetDisabled() bool
func (*InteractionComponent) GetEmoji ¶
func (x *InteractionComponent) GetEmoji() *Emoji
func (*InteractionComponent) GetLabel ¶
func (x *InteractionComponent) GetLabel() string
func (*InteractionComponent) GetMaxValues ¶
func (x *InteractionComponent) GetMaxValues() int32
func (*InteractionComponent) GetMinValues ¶
func (x *InteractionComponent) GetMinValues() int32
func (*InteractionComponent) GetOptions ¶
func (x *InteractionComponent) GetOptions() []*ApplicationSelectOption
func (*InteractionComponent) GetPlaceholder ¶
func (x *InteractionComponent) GetPlaceholder() string
func (*InteractionComponent) GetStyle ¶
func (x *InteractionComponent) GetStyle() uint32
func (*InteractionComponent) GetType ¶
func (x *InteractionComponent) GetType() uint32
func (*InteractionComponent) GetURL ¶
func (x *InteractionComponent) GetURL() string
func (*InteractionComponent) ProtoMessage ¶
func (*InteractionComponent) ProtoMessage()
func (*InteractionComponent) ProtoReflect ¶
func (x *InteractionComponent) ProtoReflect() protoreflect.Message
func (*InteractionComponent) Reset ¶
func (x *InteractionComponent) Reset()
func (*InteractionComponent) String ¶
func (x *InteractionComponent) String() string
type InteractionData ¶
type InteractionData struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Type uint32 `protobuf:"varint,3,opt,name=Type,json=type,proto3" json:"Type,omitempty"` Resolved *InteractionResolvedData `protobuf:"bytes,4,opt,name=Resolved,json=resolved,proto3" json:"Resolved,omitempty"` Options []*InteractionDataOption `protobuf:"bytes,5,rep,name=Options,json=option,proto3" json:"Options,omitempty"` CustomID string `protobuf:"bytes,6,opt,name=CustomID,json=custom_id,proto3" json:"CustomID,omitempty"` ComponentType uint32 `protobuf:"varint,7,opt,name=ComponentType,json=component_type,proto3" json:"ComponentType,omitempty"` Values []*ApplicationSelectOption `protobuf:"bytes,8,rep,name=Values,json=values,proto3" json:"Values,omitempty"` TargetID int64 `protobuf:"varint,9,opt,name=TargetID,json=target_id,proto3" json:"TargetID,omitempty"` // contains filtered or unexported fields }
func (*InteractionData) Descriptor
deprecated
func (*InteractionData) Descriptor() ([]byte, []int)
Deprecated: Use InteractionData.ProtoReflect.Descriptor instead.
func (*InteractionData) GetComponentType ¶
func (x *InteractionData) GetComponentType() uint32
func (*InteractionData) GetCustomID ¶
func (x *InteractionData) GetCustomID() string
func (*InteractionData) GetID ¶
func (x *InteractionData) GetID() int64
func (*InteractionData) GetName ¶
func (x *InteractionData) GetName() string
func (*InteractionData) GetOptions ¶
func (x *InteractionData) GetOptions() []*InteractionDataOption
func (*InteractionData) GetResolved ¶
func (x *InteractionData) GetResolved() *InteractionResolvedData
func (*InteractionData) GetTargetID ¶
func (x *InteractionData) GetTargetID() int64
func (*InteractionData) GetType ¶
func (x *InteractionData) GetType() uint32
func (*InteractionData) GetValues ¶
func (x *InteractionData) GetValues() []*ApplicationSelectOption
func (*InteractionData) ProtoMessage ¶
func (*InteractionData) ProtoMessage()
func (*InteractionData) ProtoReflect ¶
func (x *InteractionData) ProtoReflect() protoreflect.Message
func (*InteractionData) Reset ¶
func (x *InteractionData) Reset()
func (*InteractionData) String ¶
func (x *InteractionData) String() string
type InteractionDataOption ¶
type InteractionDataOption struct { Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Type uint32 `protobuf:"varint,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=Value,json=value,proto3" json:"Value,omitempty"` Options []*InteractionDataOption `protobuf:"bytes,4,rep,name=Options,json=options,proto3" json:"Options,omitempty"` Focused bool `protobuf:"varint,5,opt,name=Focused,json=focused,proto3" json:"Focused,omitempty"` // contains filtered or unexported fields }
func (*InteractionDataOption) Descriptor
deprecated
func (*InteractionDataOption) Descriptor() ([]byte, []int)
Deprecated: Use InteractionDataOption.ProtoReflect.Descriptor instead.
func (*InteractionDataOption) GetFocused ¶
func (x *InteractionDataOption) GetFocused() bool
func (*InteractionDataOption) GetName ¶
func (x *InteractionDataOption) GetName() string
func (*InteractionDataOption) GetOptions ¶
func (x *InteractionDataOption) GetOptions() []*InteractionDataOption
func (*InteractionDataOption) GetType ¶
func (x *InteractionDataOption) GetType() uint32
func (*InteractionDataOption) GetValue ¶
func (x *InteractionDataOption) GetValue() []byte
func (*InteractionDataOption) ProtoMessage ¶
func (*InteractionDataOption) ProtoMessage()
func (*InteractionDataOption) ProtoReflect ¶
func (x *InteractionDataOption) ProtoReflect() protoreflect.Message
func (*InteractionDataOption) Reset ¶
func (x *InteractionDataOption) Reset()
func (*InteractionDataOption) String ¶
func (x *InteractionDataOption) String() string
type InteractionResolvedData ¶
type InteractionResolvedData struct { Users []*User `protobuf:"bytes,1,rep,name=Users,json=users,proto3" json:"Users,omitempty"` Members []*GuildMember `protobuf:"bytes,2,rep,name=Members,json=members,proto3" json:"Members,omitempty"` Roles []*Role `protobuf:"bytes,3,rep,name=Roles,json=roles,proto3" json:"Roles,omitempty"` Channels []*Channel `protobuf:"bytes,4,rep,name=Channels,json=channels,proto3" json:"Channels,omitempty"` Messages []*Message `protobuf:"bytes,5,rep,name=Messages,json=messages,proto3" json:"Messages,omitempty"` // contains filtered or unexported fields }
func (*InteractionResolvedData) Descriptor
deprecated
func (*InteractionResolvedData) Descriptor() ([]byte, []int)
Deprecated: Use InteractionResolvedData.ProtoReflect.Descriptor instead.
func (*InteractionResolvedData) GetChannels ¶
func (x *InteractionResolvedData) GetChannels() []*Channel
func (*InteractionResolvedData) GetMembers ¶
func (x *InteractionResolvedData) GetMembers() []*GuildMember
func (*InteractionResolvedData) GetMessages ¶
func (x *InteractionResolvedData) GetMessages() []*Message
func (*InteractionResolvedData) GetRoles ¶
func (x *InteractionResolvedData) GetRoles() []*Role
func (*InteractionResolvedData) GetUsers ¶
func (x *InteractionResolvedData) GetUsers() []*User
func (*InteractionResolvedData) ProtoMessage ¶
func (*InteractionResolvedData) ProtoMessage()
func (*InteractionResolvedData) ProtoReflect ¶
func (x *InteractionResolvedData) ProtoReflect() protoreflect.Message
func (*InteractionResolvedData) Reset ¶
func (x *InteractionResolvedData) Reset()
func (*InteractionResolvedData) String ¶
func (x *InteractionResolvedData) String() string
type Invite ¶
type Invite struct { Code string `protobuf:"bytes,1,opt,name=Code,json=code,proto3" json:"Code,omitempty"` Guild *Guild `protobuf:"bytes,2,opt,name=Guild,json=guild,proto3" json:"Guild,omitempty"` GuildID int64 `protobuf:"varint,3,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` Channel *Channel `protobuf:"bytes,4,opt,name=Channel,json=channel,proto3" json:"Channel,omitempty"` Inviter *User `protobuf:"bytes,5,opt,name=Inviter,json=inviter,proto3" json:"Inviter,omitempty"` TargetType uint32 `protobuf:"varint,6,opt,name=TargetType,json=target_type,proto3" json:"TargetType,omitempty"` TargetUser *User `protobuf:"bytes,7,opt,name=TargetUser,json=target_user,proto3" json:"TargetUser,omitempty"` TargetApplication *Application `protobuf:"bytes,8,opt,name=TargetApplication,json=target_application,proto3" json:"TargetApplication,omitempty"` ApproximatePresenceCount int32 `` /* 134-byte string literal not displayed */ ApproximateMemberCount int32 `` /* 129-byte string literal not displayed */ ExpiresAt string `protobuf:"bytes,11,opt,name=ExpiresAt,json=expires_at,proto3" json:"ExpiresAt,omitempty"` StageInstance *InviteStageInstance `protobuf:"bytes,12,opt,name=StageInstance,json=stage_instance,proto3" json:"StageInstance,omitempty"` ScheduledEvent *ScheduledEvent `protobuf:"bytes,13,opt,name=ScheduledEvent,json=guild_scheduled_event,proto3" json:"ScheduledEvent,omitempty"` Uses int32 `protobuf:"varint,14,opt,name=Uses,json=uses,proto3" json:"Uses,omitempty"` MaxUses int32 `protobuf:"varint,15,opt,name=MaxUses,json=max_uses,proto3" json:"MaxUses,omitempty"` MaxAge int32 `protobuf:"varint,16,opt,name=MaxAge,json=max_age,proto3" json:"MaxAge,omitempty"` Temporary bool `protobuf:"varint,17,opt,name=Temporary,json=temporary,proto3" json:"Temporary,omitempty"` CreatedAt string `protobuf:"bytes,18,opt,name=CreatedAt,json=created_at,proto3" json:"CreatedAt,omitempty"` // contains filtered or unexported fields }
func (*Invite) Descriptor
deprecated
func (*Invite) GetApproximateMemberCount ¶
func (*Invite) GetApproximatePresenceCount ¶
func (*Invite) GetChannel ¶
func (*Invite) GetCreatedAt ¶
func (*Invite) GetExpiresAt ¶
func (*Invite) GetGuildID ¶
func (*Invite) GetInviter ¶
func (*Invite) GetMaxUses ¶
func (*Invite) GetScheduledEvent ¶
func (x *Invite) GetScheduledEvent() *ScheduledEvent
func (*Invite) GetStageInstance ¶
func (x *Invite) GetStageInstance() *InviteStageInstance
func (*Invite) GetTargetApplication ¶
func (x *Invite) GetTargetApplication() *Application
func (*Invite) GetTargetType ¶
func (*Invite) GetTargetUser ¶
func (*Invite) GetTemporary ¶
func (*Invite) ProtoMessage ¶
func (*Invite) ProtoMessage()
func (*Invite) ProtoReflect ¶
func (x *Invite) ProtoReflect() protoreflect.Message
type InviteStageInstance ¶
type InviteStageInstance struct { Members []*GuildMember `protobuf:"bytes,1,rep,name=Members,json=members,proto3" json:"Members,omitempty"` ParticipantCount int32 `protobuf:"varint,2,opt,name=ParticipantCount,json=participant_count,proto3" json:"ParticipantCount,omitempty"` SpeakerCount int32 `protobuf:"varint,3,opt,name=SpeakerCount,json=speaker_count,proto3" json:"SpeakerCount,omitempty"` Topic string `protobuf:"bytes,4,opt,name=Topic,json=topic,proto3" json:"Topic,omitempty"` // contains filtered or unexported fields }
func (*InviteStageInstance) Descriptor
deprecated
func (*InviteStageInstance) Descriptor() ([]byte, []int)
Deprecated: Use InviteStageInstance.ProtoReflect.Descriptor instead.
func (*InviteStageInstance) GetMembers ¶
func (x *InviteStageInstance) GetMembers() []*GuildMember
func (*InviteStageInstance) GetParticipantCount ¶
func (x *InviteStageInstance) GetParticipantCount() int32
func (*InviteStageInstance) GetSpeakerCount ¶
func (x *InviteStageInstance) GetSpeakerCount() int32
func (*InviteStageInstance) GetTopic ¶
func (x *InviteStageInstance) GetTopic() string
func (*InviteStageInstance) ProtoMessage ¶
func (*InviteStageInstance) ProtoMessage()
func (*InviteStageInstance) ProtoReflect ¶
func (x *InviteStageInstance) ProtoReflect() protoreflect.Message
func (*InviteStageInstance) Reset ¶
func (x *InviteStageInstance) Reset()
func (*InviteStageInstance) String ¶
func (x *InviteStageInstance) String() string
type ListenRequest ¶
type ListenRequest struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // contains filtered or unexported fields }
func (*ListenRequest) Descriptor
deprecated
func (*ListenRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListenRequest.ProtoReflect.Descriptor instead.
func (*ListenRequest) GetIdentifier ¶
func (x *ListenRequest) GetIdentifier() string
func (*ListenRequest) ProtoMessage ¶
func (*ListenRequest) ProtoMessage()
func (*ListenRequest) ProtoReflect ¶
func (x *ListenRequest) ProtoReflect() protoreflect.Message
func (*ListenRequest) Reset ¶
func (x *ListenRequest) Reset()
func (*ListenRequest) String ¶
func (x *ListenRequest) String() string
type ListenResponse ¶
type ListenResponse struct { Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListenResponse) Descriptor
deprecated
func (*ListenResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListenResponse.ProtoReflect.Descriptor instead.
func (*ListenResponse) GetData ¶
func (x *ListenResponse) GetData() []byte
func (*ListenResponse) GetTimestamp ¶
func (x *ListenResponse) GetTimestamp() int64
func (*ListenResponse) ProtoMessage ¶
func (*ListenResponse) ProtoMessage()
func (*ListenResponse) ProtoReflect ¶
func (x *ListenResponse) ProtoReflect() protoreflect.Message
func (*ListenResponse) Reset ¶
func (x *ListenResponse) Reset()
func (*ListenResponse) String ¶
func (x *ListenResponse) String() string
type Message ¶
type Message struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` ChannelID int64 `protobuf:"varint,2,opt,name=ChannelID,json=channel_id,proto3" json:"ChannelID,omitempty"` GuildID int64 `protobuf:"varint,3,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` Author *User `protobuf:"bytes,4,opt,name=Author,json=author,proto3" json:"Author,omitempty"` Member *GuildMember `protobuf:"bytes,5,opt,name=Member,json=member,proto3" json:"Member,omitempty"` Content string `protobuf:"bytes,6,opt,name=Content,json=content,proto3" json:"Content,omitempty"` Timestamp string `protobuf:"bytes,7,opt,name=Timestamp,json=timestamp,proto3" json:"Timestamp,omitempty"` EditedTimestamp string `protobuf:"bytes,8,opt,name=EditedTimestamp,json=edited_timestamp,proto3" json:"EditedTimestamp,omitempty"` TTS bool `protobuf:"varint,9,opt,name=TTS,json=tts,proto3" json:"TTS,omitempty"` MentionEveryone bool `protobuf:"varint,10,opt,name=MentionEveryone,json=mention_everyone,proto3" json:"MentionEveryone,omitempty"` Mentions []*User `protobuf:"bytes,11,rep,name=Mentions,json=mentions,proto3" json:"Mentions,omitempty"` MentionRoles []int64 `protobuf:"varint,12,rep,packed,name=MentionRoles,json=mention_roles,proto3" json:"MentionRoles,omitempty"` MentionChannels []*MessageChannelMention `protobuf:"bytes,13,rep,name=MentionChannels,json=mention_channels,proto3" json:"MentionChannels,omitempty"` Attachments []*MessageAttachment `protobuf:"bytes,14,rep,name=Attachments,json=attachments,proto3" json:"Attachments,omitempty"` Embeds []*Embed `protobuf:"bytes,15,rep,name=Embeds,json=embeds,proto3" json:"Embeds,omitempty"` Reactions []*MessageReaction `protobuf:"bytes,16,rep,name=Reactions,json=reactions,proto3" json:"Reactions,omitempty"` // string Nonce = 17 [json_name="nonce"]; Pinned bool `protobuf:"varint,18,opt,name=Pinned,json=pinned,proto3" json:"Pinned,omitempty"` WebhookID int64 `protobuf:"varint,19,opt,name=WebhookID,json=webhook_id,proto3" json:"WebhookID,omitempty"` Type uint32 `protobuf:"varint,20,opt,name=Type,json=type,proto3" json:"Type,omitempty"` Activity *MessageActivity `protobuf:"bytes,21,opt,name=Activity,json=activity,proto3" json:"Activity,omitempty"` Application *Application `protobuf:"bytes,22,opt,name=Application,json=application,proto3" json:"Application,omitempty"` MessageReference []*MessageReference `protobuf:"bytes,23,rep,name=MessageReference,json=message_referenced,proto3" json:"MessageReference,omitempty"` Flags uint32 `protobuf:"varint,24,opt,name=Flags,json=flags,proto3" json:"Flags,omitempty"` ReferencedMessage *Message `protobuf:"bytes,25,opt,name=ReferencedMessage,json=referenced_message,proto3" json:"ReferencedMessage,omitempty"` Interaction *MessageInteraction `protobuf:"bytes,26,opt,name=Interaction,json=interaction,proto3" json:"Interaction,omitempty"` Thread *Channel `protobuf:"bytes,27,opt,name=Thread,json=thread,proto3" json:"Thread,omitempty"` Components []*InteractionComponent `protobuf:"bytes,28,rep,name=Components,json=components,proto3" json:"Components,omitempty"` StickerItems []*MessageSticker `protobuf:"bytes,29,rep,name=StickerItems,json=sticker_items,proto3" json:"StickerItems,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetActivity ¶
func (x *Message) GetActivity() *MessageActivity
func (*Message) GetApplication ¶
func (x *Message) GetApplication() *Application
func (*Message) GetAttachments ¶
func (x *Message) GetAttachments() []*MessageAttachment
func (*Message) GetChannelID ¶
func (*Message) GetComponents ¶
func (x *Message) GetComponents() []*InteractionComponent
func (*Message) GetContent ¶
func (*Message) GetEditedTimestamp ¶
func (*Message) GetGuildID ¶
func (*Message) GetInteraction ¶
func (x *Message) GetInteraction() *MessageInteraction
func (*Message) GetMember ¶
func (x *Message) GetMember() *GuildMember
func (*Message) GetMentionChannels ¶
func (x *Message) GetMentionChannels() []*MessageChannelMention
func (*Message) GetMentionEveryone ¶
func (*Message) GetMentionRoles ¶
func (*Message) GetMentions ¶
func (*Message) GetMessageReference ¶
func (x *Message) GetMessageReference() []*MessageReference
func (*Message) GetReactions ¶
func (x *Message) GetReactions() []*MessageReaction
func (*Message) GetReferencedMessage ¶
func (*Message) GetStickerItems ¶
func (x *Message) GetStickerItems() []*MessageSticker
func (*Message) GetTimestamp ¶
func (*Message) GetWebhookID ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageActivity ¶
type MessageActivity struct { Type uint32 `protobuf:"varint,1,opt,name=Type,json=type,proto3" json:"Type,omitempty"` PartyID string `protobuf:"bytes,2,opt,name=PartyID,json=party_id,proto3" json:"PartyID,omitempty"` // contains filtered or unexported fields }
func (*MessageActivity) Descriptor
deprecated
func (*MessageActivity) Descriptor() ([]byte, []int)
Deprecated: Use MessageActivity.ProtoReflect.Descriptor instead.
func (*MessageActivity) GetPartyID ¶
func (x *MessageActivity) GetPartyID() string
func (*MessageActivity) GetType ¶
func (x *MessageActivity) GetType() uint32
func (*MessageActivity) ProtoMessage ¶
func (*MessageActivity) ProtoMessage()
func (*MessageActivity) ProtoReflect ¶
func (x *MessageActivity) ProtoReflect() protoreflect.Message
func (*MessageActivity) Reset ¶
func (x *MessageActivity) Reset()
func (*MessageActivity) String ¶
func (x *MessageActivity) String() string
type MessageAllowedMentions ¶
type MessageAllowedMentions struct { Parse []string `protobuf:"bytes,1,rep,name=Parse,json=parse,proto3" json:"Parse,omitempty"` Roles []int64 `protobuf:"varint,2,rep,packed,name=Roles,json=roles,proto3" json:"Roles,omitempty"` Users []int64 `protobuf:"varint,3,rep,packed,name=Users,json=users,proto3" json:"Users,omitempty"` RepliedUser bool `protobuf:"varint,4,opt,name=RepliedUser,json=replied_user,proto3" json:"RepliedUser,omitempty"` // contains filtered or unexported fields }
func (*MessageAllowedMentions) Descriptor
deprecated
func (*MessageAllowedMentions) Descriptor() ([]byte, []int)
Deprecated: Use MessageAllowedMentions.ProtoReflect.Descriptor instead.
func (*MessageAllowedMentions) GetParse ¶
func (x *MessageAllowedMentions) GetParse() []string
func (*MessageAllowedMentions) GetRepliedUser ¶
func (x *MessageAllowedMentions) GetRepliedUser() bool
func (*MessageAllowedMentions) GetRoles ¶
func (x *MessageAllowedMentions) GetRoles() []int64
func (*MessageAllowedMentions) GetUsers ¶
func (x *MessageAllowedMentions) GetUsers() []int64
func (*MessageAllowedMentions) ProtoMessage ¶
func (*MessageAllowedMentions) ProtoMessage()
func (*MessageAllowedMentions) ProtoReflect ¶
func (x *MessageAllowedMentions) ProtoReflect() protoreflect.Message
func (*MessageAllowedMentions) Reset ¶
func (x *MessageAllowedMentions) Reset()
func (*MessageAllowedMentions) String ¶
func (x *MessageAllowedMentions) String() string
type MessageAttachment ¶
type MessageAttachment struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Filename string `protobuf:"bytes,2,opt,name=Filename,json=filename,proto3" json:"Filename,omitempty"` Size int32 `protobuf:"varint,3,opt,name=Size,json=size,proto3" json:"Size,omitempty"` URL string `protobuf:"bytes,4,opt,name=URL,json=url,proto3" json:"URL,omitempty"` ProxyURL string `protobuf:"bytes,5,opt,name=ProxyURL,json=proxy_url,proto3" json:"ProxyURL,omitempty"` Height int32 `protobuf:"varint,6,opt,name=Height,json=height,proto3" json:"Height,omitempty"` Width int32 `protobuf:"varint,7,opt,name=Width,json=width,proto3" json:"Width,omitempty"` // contains filtered or unexported fields }
func (*MessageAttachment) Descriptor
deprecated
func (*MessageAttachment) Descriptor() ([]byte, []int)
Deprecated: Use MessageAttachment.ProtoReflect.Descriptor instead.
func (*MessageAttachment) GetFilename ¶
func (x *MessageAttachment) GetFilename() string
func (*MessageAttachment) GetHeight ¶
func (x *MessageAttachment) GetHeight() int32
func (*MessageAttachment) GetID ¶
func (x *MessageAttachment) GetID() int64
func (*MessageAttachment) GetProxyURL ¶
func (x *MessageAttachment) GetProxyURL() string
func (*MessageAttachment) GetSize ¶
func (x *MessageAttachment) GetSize() int32
func (*MessageAttachment) GetURL ¶
func (x *MessageAttachment) GetURL() string
func (*MessageAttachment) GetWidth ¶
func (x *MessageAttachment) GetWidth() int32
func (*MessageAttachment) ProtoMessage ¶
func (*MessageAttachment) ProtoMessage()
func (*MessageAttachment) ProtoReflect ¶
func (x *MessageAttachment) ProtoReflect() protoreflect.Message
func (*MessageAttachment) Reset ¶
func (x *MessageAttachment) Reset()
func (*MessageAttachment) String ¶
func (x *MessageAttachment) String() string
type MessageChannelMention ¶
type MessageChannelMention struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` GuildID int64 `protobuf:"varint,2,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` Type uint32 `protobuf:"varint,3,opt,name=Type,json=type,proto3" json:"Type,omitempty"` Name string `protobuf:"bytes,4,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*MessageChannelMention) Descriptor
deprecated
func (*MessageChannelMention) Descriptor() ([]byte, []int)
Deprecated: Use MessageChannelMention.ProtoReflect.Descriptor instead.
func (*MessageChannelMention) GetGuildID ¶
func (x *MessageChannelMention) GetGuildID() int64
func (*MessageChannelMention) GetID ¶
func (x *MessageChannelMention) GetID() int64
func (*MessageChannelMention) GetName ¶
func (x *MessageChannelMention) GetName() string
func (*MessageChannelMention) GetType ¶
func (x *MessageChannelMention) GetType() uint32
func (*MessageChannelMention) ProtoMessage ¶
func (*MessageChannelMention) ProtoMessage()
func (*MessageChannelMention) ProtoReflect ¶
func (x *MessageChannelMention) ProtoReflect() protoreflect.Message
func (*MessageChannelMention) Reset ¶
func (x *MessageChannelMention) Reset()
func (*MessageChannelMention) String ¶
func (x *MessageChannelMention) String() string
type MessageInteraction ¶
type MessageInteraction struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Type uint32 `protobuf:"varint,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,json=name,proto3" json:"Name,omitempty"` User *User `protobuf:"bytes,4,opt,name=User,json=user,proto3" json:"User,omitempty"` // contains filtered or unexported fields }
func (*MessageInteraction) Descriptor
deprecated
func (*MessageInteraction) Descriptor() ([]byte, []int)
Deprecated: Use MessageInteraction.ProtoReflect.Descriptor instead.
func (*MessageInteraction) GetID ¶
func (x *MessageInteraction) GetID() int64
func (*MessageInteraction) GetName ¶
func (x *MessageInteraction) GetName() string
func (*MessageInteraction) GetType ¶
func (x *MessageInteraction) GetType() uint32
func (*MessageInteraction) GetUser ¶
func (x *MessageInteraction) GetUser() *User
func (*MessageInteraction) ProtoMessage ¶
func (*MessageInteraction) ProtoMessage()
func (*MessageInteraction) ProtoReflect ¶
func (x *MessageInteraction) ProtoReflect() protoreflect.Message
func (*MessageInteraction) Reset ¶
func (x *MessageInteraction) Reset()
func (*MessageInteraction) String ¶
func (x *MessageInteraction) String() string
type MessageReaction ¶
type MessageReaction struct { Count int32 `protobuf:"varint,1,opt,name=Count,json=count,proto3" json:"Count,omitempty"` Me bool `protobuf:"varint,2,opt,name=Me,json=me,proto3" json:"Me,omitempty"` Emoji *Emoji `protobuf:"bytes,3,opt,name=Emoji,json=emoji,proto3" json:"Emoji,omitempty"` // contains filtered or unexported fields }
func (*MessageReaction) Descriptor
deprecated
func (*MessageReaction) Descriptor() ([]byte, []int)
Deprecated: Use MessageReaction.ProtoReflect.Descriptor instead.
func (*MessageReaction) GetCount ¶
func (x *MessageReaction) GetCount() int32
func (*MessageReaction) GetEmoji ¶
func (x *MessageReaction) GetEmoji() *Emoji
func (*MessageReaction) GetMe ¶
func (x *MessageReaction) GetMe() bool
func (*MessageReaction) ProtoMessage ¶
func (*MessageReaction) ProtoMessage()
func (*MessageReaction) ProtoReflect ¶
func (x *MessageReaction) ProtoReflect() protoreflect.Message
func (*MessageReaction) Reset ¶
func (x *MessageReaction) Reset()
func (*MessageReaction) String ¶
func (x *MessageReaction) String() string
type MessageReference ¶
type MessageReference struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=message_id,proto3" json:"ID,omitempty"` ChannelID int64 `protobuf:"varint,2,opt,name=ChannelID,json=channel_id,proto3" json:"ChannelID,omitempty"` GuildID int64 `protobuf:"varint,3,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` FailIfNotExists bool `protobuf:"varint,4,opt,name=FailIfNotExists,json=fail_if_not_exists,proto3" json:"FailIfNotExists,omitempty"` // contains filtered or unexported fields }
func (*MessageReference) Descriptor
deprecated
func (*MessageReference) Descriptor() ([]byte, []int)
Deprecated: Use MessageReference.ProtoReflect.Descriptor instead.
func (*MessageReference) GetChannelID ¶
func (x *MessageReference) GetChannelID() int64
func (*MessageReference) GetFailIfNotExists ¶
func (x *MessageReference) GetFailIfNotExists() bool
func (*MessageReference) GetGuildID ¶
func (x *MessageReference) GetGuildID() int64
func (*MessageReference) GetID ¶
func (x *MessageReference) GetID() int64
func (*MessageReference) ProtoMessage ¶
func (*MessageReference) ProtoMessage()
func (*MessageReference) ProtoReflect ¶
func (x *MessageReference) ProtoReflect() protoreflect.Message
func (*MessageReference) Reset ¶
func (x *MessageReference) Reset()
func (*MessageReference) String ¶
func (x *MessageReference) String() string
type MessageSticker ¶
type MessageSticker struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,json=name,proto3" json:"Name,omitempty"` FormatType uint32 `protobuf:"varint,3,opt,name=FormatType,json=format_type,proto3" json:"FormatType,omitempty"` // contains filtered or unexported fields }
func (*MessageSticker) Descriptor
deprecated
func (*MessageSticker) Descriptor() ([]byte, []int)
Deprecated: Use MessageSticker.ProtoReflect.Descriptor instead.
func (*MessageSticker) GetFormatType ¶
func (x *MessageSticker) GetFormatType() uint32
func (*MessageSticker) GetID ¶
func (x *MessageSticker) GetID() int64
func (*MessageSticker) GetName ¶
func (x *MessageSticker) GetName() string
func (*MessageSticker) ProtoMessage ¶
func (*MessageSticker) ProtoMessage()
func (*MessageSticker) ProtoReflect ¶
func (x *MessageSticker) ProtoReflect() protoreflect.Message
func (*MessageSticker) Reset ¶
func (x *MessageSticker) Reset()
func (*MessageSticker) String ¶
func (x *MessageSticker) String() string
type Party ¶
type Party struct { ID string `protobuf:"bytes,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Size []int32 `protobuf:"varint,2,rep,packed,name=Size,json=size,proto3" json:"Size,omitempty"` // contains filtered or unexported fields }
func (*Party) Descriptor
deprecated
func (*Party) ProtoMessage ¶
func (*Party) ProtoMessage()
func (*Party) ProtoReflect ¶
func (x *Party) ProtoReflect() protoreflect.Message
type PostAnalyticsRequest ¶
type PostAnalyticsRequest struct { Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // GRPC does not determine the structure of the data provided. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*PostAnalyticsRequest) Descriptor
deprecated
func (*PostAnalyticsRequest) Descriptor() ([]byte, []int)
Deprecated: Use PostAnalyticsRequest.ProtoReflect.Descriptor instead.
func (*PostAnalyticsRequest) GetData ¶
func (x *PostAnalyticsRequest) GetData() []byte
func (*PostAnalyticsRequest) GetIdentifier ¶
func (x *PostAnalyticsRequest) GetIdentifier() string
func (*PostAnalyticsRequest) ProtoMessage ¶
func (*PostAnalyticsRequest) ProtoMessage()
func (*PostAnalyticsRequest) ProtoReflect ¶
func (x *PostAnalyticsRequest) ProtoReflect() protoreflect.Message
func (*PostAnalyticsRequest) Reset ¶
func (x *PostAnalyticsRequest) Reset()
func (*PostAnalyticsRequest) String ¶
func (x *PostAnalyticsRequest) String() string
type RelayMessageRequest ¶
type RelayMessageRequest struct { Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*RelayMessageRequest) Descriptor
deprecated
func (*RelayMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use RelayMessageRequest.ProtoReflect.Descriptor instead.
func (*RelayMessageRequest) GetData ¶
func (x *RelayMessageRequest) GetData() []byte
func (*RelayMessageRequest) GetManager ¶
func (x *RelayMessageRequest) GetManager() string
func (*RelayMessageRequest) GetType ¶
func (x *RelayMessageRequest) GetType() string
func (*RelayMessageRequest) ProtoMessage ¶
func (*RelayMessageRequest) ProtoMessage()
func (*RelayMessageRequest) ProtoReflect ¶
func (x *RelayMessageRequest) ProtoReflect() protoreflect.Message
func (*RelayMessageRequest) Reset ¶
func (x *RelayMessageRequest) Reset()
func (*RelayMessageRequest) String ¶
func (x *RelayMessageRequest) String() string
type RequestGuildChunkRequest ¶
type RequestGuildChunkRequest struct { GuildId int64 `protobuf:"varint,1,opt,name=guildId,proto3" json:"guildId,omitempty"` AlwaysChunk bool `protobuf:"varint,2,opt,name=alwaysChunk,proto3" json:"alwaysChunk,omitempty"` // contains filtered or unexported fields }
func (*RequestGuildChunkRequest) Descriptor
deprecated
func (*RequestGuildChunkRequest) Descriptor() ([]byte, []int)
Deprecated: Use RequestGuildChunkRequest.ProtoReflect.Descriptor instead.
func (*RequestGuildChunkRequest) GetAlwaysChunk ¶
func (x *RequestGuildChunkRequest) GetAlwaysChunk() bool
func (*RequestGuildChunkRequest) GetGuildId ¶
func (x *RequestGuildChunkRequest) GetGuildId() int64
func (*RequestGuildChunkRequest) ProtoMessage ¶
func (*RequestGuildChunkRequest) ProtoMessage()
func (*RequestGuildChunkRequest) ProtoReflect ¶
func (x *RequestGuildChunkRequest) ProtoReflect() protoreflect.Message
func (*RequestGuildChunkRequest) Reset ¶
func (x *RequestGuildChunkRequest) Reset()
func (*RequestGuildChunkRequest) String ¶
func (x *RequestGuildChunkRequest) String() string
type Role ¶
type Role struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` GuildID int64 `protobuf:"varint,2,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Color int32 `protobuf:"varint,4,opt,name=Color,json=color,proto3" json:"Color,omitempty"` Hoist bool `protobuf:"varint,5,opt,name=Hoist,json=hoist,proto3" json:"Hoist,omitempty"` Icon string `protobuf:"bytes,6,opt,name=Icon,json=icon,proto3" json:"Icon,omitempty"` UnicodeEmoji string `protobuf:"bytes,7,opt,name=UnicodeEmoji,json=unicode_emoji,proto3" json:"UnicodeEmoji,omitempty"` Position int32 `protobuf:"varint,8,opt,name=Position,json=position,proto3" json:"Position,omitempty"` Permissions int64 `protobuf:"varint,9,opt,name=Permissions,json=permissions,proto3" json:"Permissions,omitempty"` Managed bool `protobuf:"varint,10,opt,name=Managed,json=managed,proto3" json:"Managed,omitempty"` Mentionable bool `protobuf:"varint,11,opt,name=Mentionable,json=mentionable,proto3" json:"Mentionable,omitempty"` Tags *RoleTag `protobuf:"bytes,12,opt,name=Tags,json=tags,proto3" json:"Tags,omitempty"` // contains filtered or unexported fields }
func RoleToGRPC ¶
Converts discord.Role to gRPC counterpart.
func (*Role) Descriptor
deprecated
func (*Role) GetGuildID ¶
func (*Role) GetManaged ¶
func (*Role) GetMentionable ¶
func (*Role) GetPermissions ¶
func (*Role) GetPosition ¶
func (*Role) GetUnicodeEmoji ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type RoleTag ¶
type RoleTag struct { PremiumSubscriber bool `protobuf:"varint,1,opt,name=PremiumSubscriber,json=premium_subscriber,proto3" json:"PremiumSubscriber,omitempty"` BotID int64 `protobuf:"varint,2,opt,name=BotID,json=bot_id,proto3" json:"BotID,omitempty"` IntegrationID int64 `protobuf:"varint,3,opt,name=IntegrationID,json=integration_id,proto3" json:"IntegrationID,omitempty"` // contains filtered or unexported fields }
func (*RoleTag) Descriptor
deprecated
func (*RoleTag) GetIntegrationID ¶
func (*RoleTag) GetPremiumSubscriber ¶
func (*RoleTag) ProtoMessage ¶
func (*RoleTag) ProtoMessage()
func (*RoleTag) ProtoReflect ¶
func (x *RoleTag) ProtoReflect() protoreflect.Message
type SandwichClient ¶
type SandwichClient interface { // Listen delivers information to consumers. Listen(ctx context.Context, in *ListenRequest, opts ...grpc.CallOption) (Sandwich_ListenClient, error) // PostAnalytics is used for consumers to provide information to Sandwich Daemon. PostAnalytics(ctx context.Context, in *PostAnalyticsRequest, opts ...grpc.CallOption) (*BaseResponse, error) // FetchConsumerConfiguration returns the Consumer Configuration. FetchConsumerConfiguration(ctx context.Context, in *FetchConsumerConfigurationRequest, opts ...grpc.CallOption) (*FetchConsumerConfigurationResponse, error) // FetchUser returns users based on userIDs. // Takes either query or userIDs. Empty query or empty roleIDs will return nothing. // When CreateDMChannel is True, DM channels will be created for a user if it does not exist. // CreateDMChannel does not work with queries, only userIDs. FetchUsers(ctx context.Context, in *FetchUsersRequest, opts ...grpc.CallOption) (*UsersResponse, error) // FetchGuildChannels returns guilds based on the guildID. // Takes either query or channelIDs. Empty query and empty channelIDs will return all. FetchGuildChannels(ctx context.Context, in *FetchGuildChannelsRequest, opts ...grpc.CallOption) (*ChannelsResponse, error) // FetchGuildEmojis returns emojis based on the guildID. // Takes either query or emojiIDs. Empty query and empty emojiIDs will return all. FetchGuildEmojis(ctx context.Context, in *FetchGuildEmojisRequest, opts ...grpc.CallOption) (*EmojisResponse, error) // FetchGuildMembers returns guild members based on the guildID. // Takes either query or userIDs. Empty query and empty userIDs will return all. FetchGuildMembers(ctx context.Context, in *FetchGuildMembersRequest, opts ...grpc.CallOption) (*GuildMembersResponse, error) // FetchGuild returns guilds based on the guildIDs. FetchGuild(ctx context.Context, in *FetchGuildRequest, opts ...grpc.CallOption) (*GuildsResponse, error) // FetchGuildRoles returns roles based on the roleIDs. // Takes either query or roleIDs. Empty query and empty roleIDs will return all. FetchGuildRoles(ctx context.Context, in *FetchGuildRolesRequest, opts ...grpc.CallOption) (*GuildRolesResponse, error) // FetchMutualGuilds returns a list of all mutual guilds based on userID. // Populates guildIDs with a list of snowflakes of all guilds. // If expand is passed and True, will also populate guilds with the guild object. FetchMutualGuilds(ctx context.Context, in *FetchMutualGuildsRequest, opts ...grpc.CallOption) (*GuildsResponse, error) // RequestGuildChunk sends a guild chunk request. // Returns once the guild has been chunked. RequestGuildChunk(ctx context.Context, in *RequestGuildChunkRequest, opts ...grpc.CallOption) (*BaseResponse, error) // SendWebsocketMessage manually sends a websocket message. SendWebsocketMessage(ctx context.Context, in *SendWebsocketMessageRequest, opts ...grpc.CallOption) (*BaseResponse, error) // WhereIsGuild returns a list of WhereIsGuildLocations based on guildId. // WhereIsGuildLocations contains the manager, shardGroup and shardId. WhereIsGuild(ctx context.Context, in *WhereIsGuildRequest, opts ...grpc.CallOption) (*WhereIsGuildResponse, error) // RelayMessage creates a new event and sends it immediately back to consumers. // All relayed messages will have the dispatch opcode and the sequence of 0. RelayMessage(ctx context.Context, in *RelayMessageRequest, opts ...grpc.CallOption) (*BaseResponse, error) }
SandwichClient is the client API for Sandwich service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSandwichClient ¶
func NewSandwichClient(cc grpc.ClientConnInterface) SandwichClient
type SandwichServer ¶
type SandwichServer interface { // Listen delivers information to consumers. Listen(*ListenRequest, Sandwich_ListenServer) error // PostAnalytics is used for consumers to provide information to Sandwich Daemon. PostAnalytics(context.Context, *PostAnalyticsRequest) (*BaseResponse, error) // FetchConsumerConfiguration returns the Consumer Configuration. FetchConsumerConfiguration(context.Context, *FetchConsumerConfigurationRequest) (*FetchConsumerConfigurationResponse, error) // FetchUser returns users based on userIDs. // Takes either query or userIDs. Empty query or empty roleIDs will return nothing. // When CreateDMChannel is True, DM channels will be created for a user if it does not exist. // CreateDMChannel does not work with queries, only userIDs. FetchUsers(context.Context, *FetchUsersRequest) (*UsersResponse, error) // FetchGuildChannels returns guilds based on the guildID. // Takes either query or channelIDs. Empty query and empty channelIDs will return all. FetchGuildChannels(context.Context, *FetchGuildChannelsRequest) (*ChannelsResponse, error) // FetchGuildEmojis returns emojis based on the guildID. // Takes either query or emojiIDs. Empty query and empty emojiIDs will return all. FetchGuildEmojis(context.Context, *FetchGuildEmojisRequest) (*EmojisResponse, error) // FetchGuildMembers returns guild members based on the guildID. // Takes either query or userIDs. Empty query and empty userIDs will return all. FetchGuildMembers(context.Context, *FetchGuildMembersRequest) (*GuildMembersResponse, error) // FetchGuild returns guilds based on the guildIDs. FetchGuild(context.Context, *FetchGuildRequest) (*GuildsResponse, error) // FetchGuildRoles returns roles based on the roleIDs. // Takes either query or roleIDs. Empty query and empty roleIDs will return all. FetchGuildRoles(context.Context, *FetchGuildRolesRequest) (*GuildRolesResponse, error) // FetchMutualGuilds returns a list of all mutual guilds based on userID. // Populates guildIDs with a list of snowflakes of all guilds. // If expand is passed and True, will also populate guilds with the guild object. FetchMutualGuilds(context.Context, *FetchMutualGuildsRequest) (*GuildsResponse, error) // RequestGuildChunk sends a guild chunk request. // Returns once the guild has been chunked. RequestGuildChunk(context.Context, *RequestGuildChunkRequest) (*BaseResponse, error) // SendWebsocketMessage manually sends a websocket message. SendWebsocketMessage(context.Context, *SendWebsocketMessageRequest) (*BaseResponse, error) // WhereIsGuild returns a list of WhereIsGuildLocations based on guildId. // WhereIsGuildLocations contains the manager, shardGroup and shardId. WhereIsGuild(context.Context, *WhereIsGuildRequest) (*WhereIsGuildResponse, error) // RelayMessage creates a new event and sends it immediately back to consumers. // All relayed messages will have the dispatch opcode and the sequence of 0. RelayMessage(context.Context, *RelayMessageRequest) (*BaseResponse, error) // contains filtered or unexported methods }
SandwichServer is the server API for Sandwich service. All implementations must embed UnimplementedSandwichServer for forward compatibility
type Sandwich_ListenClient ¶
type Sandwich_ListenClient interface { Recv() (*ListenResponse, error) grpc.ClientStream }
type Sandwich_ListenServer ¶
type Sandwich_ListenServer interface { Send(*ListenResponse) error grpc.ServerStream }
type ScheduledEvent ¶
type ScheduledEvent struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` GuildID int64 `protobuf:"varint,2,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` ChannelID int64 `protobuf:"varint,3,opt,name=ChannelID,json=channel_id,proto3" json:"ChannelID,omitempty"` CreatorID int64 `protobuf:"varint,4,opt,name=CreatorID,json=creator_id,proto3" json:"CreatorID,omitempty"` Name string `protobuf:"bytes,5,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Description string `protobuf:"bytes,6,opt,name=Description,json=description,proto3" json:"Description,omitempty"` ScheduledStartTime string `protobuf:"bytes,7,opt,name=ScheduledStartTime,json=scheduled_start_time,proto3" json:"ScheduledStartTime,omitempty"` ScheduledEndTime string `protobuf:"bytes,8,opt,name=ScheduledEndTime,json=scheduled_end_time,proto3" json:"ScheduledEndTime,omitempty"` PrivacyLevel uint32 `protobuf:"varint,9,opt,name=PrivacyLevel,json=privacy_level,proto3" json:"PrivacyLevel,omitempty"` Status uint32 `protobuf:"varint,10,opt,name=Status,json=status,proto3" json:"Status,omitempty"` EntityType uint32 `protobuf:"varint,11,opt,name=EntityType,json=entity_type,proto3" json:"EntityType,omitempty"` EntityID int64 `protobuf:"varint,12,opt,name=EntityID,json=entity_id,proto3" json:"EntityID,omitempty"` EntityMetadata *EventMetadata `protobuf:"bytes,13,opt,name=EntityMetadata,json=entity_metadata,proto3" json:"EntityMetadata,omitempty"` Creator *User `protobuf:"bytes,14,opt,name=Creator,json=creator,proto3" json:"Creator,omitempty"` UserCount int32 `protobuf:"varint,15,opt,name=UserCount,json=user_count,proto3" json:"UserCount,omitempty"` // contains filtered or unexported fields }
func (*ScheduledEvent) Descriptor
deprecated
func (*ScheduledEvent) Descriptor() ([]byte, []int)
Deprecated: Use ScheduledEvent.ProtoReflect.Descriptor instead.
func (*ScheduledEvent) GetChannelID ¶
func (x *ScheduledEvent) GetChannelID() int64
func (*ScheduledEvent) GetCreator ¶
func (x *ScheduledEvent) GetCreator() *User
func (*ScheduledEvent) GetCreatorID ¶
func (x *ScheduledEvent) GetCreatorID() int64
func (*ScheduledEvent) GetDescription ¶
func (x *ScheduledEvent) GetDescription() string
func (*ScheduledEvent) GetEntityID ¶
func (x *ScheduledEvent) GetEntityID() int64
func (*ScheduledEvent) GetEntityMetadata ¶
func (x *ScheduledEvent) GetEntityMetadata() *EventMetadata
func (*ScheduledEvent) GetEntityType ¶
func (x *ScheduledEvent) GetEntityType() uint32
func (*ScheduledEvent) GetGuildID ¶
func (x *ScheduledEvent) GetGuildID() int64
func (*ScheduledEvent) GetID ¶
func (x *ScheduledEvent) GetID() int64
func (*ScheduledEvent) GetName ¶
func (x *ScheduledEvent) GetName() string
func (*ScheduledEvent) GetPrivacyLevel ¶
func (x *ScheduledEvent) GetPrivacyLevel() uint32
func (*ScheduledEvent) GetScheduledEndTime ¶
func (x *ScheduledEvent) GetScheduledEndTime() string
func (*ScheduledEvent) GetScheduledStartTime ¶
func (x *ScheduledEvent) GetScheduledStartTime() string
func (*ScheduledEvent) GetStatus ¶
func (x *ScheduledEvent) GetStatus() uint32
func (*ScheduledEvent) GetUserCount ¶
func (x *ScheduledEvent) GetUserCount() int32
func (*ScheduledEvent) ProtoMessage ¶
func (*ScheduledEvent) ProtoMessage()
func (*ScheduledEvent) ProtoReflect ¶
func (x *ScheduledEvent) ProtoReflect() protoreflect.Message
func (*ScheduledEvent) Reset ¶
func (x *ScheduledEvent) Reset()
func (*ScheduledEvent) String ¶
func (x *ScheduledEvent) String() string
type ScheduledEventUser ¶
type ScheduledEventUser struct { EventID int64 `protobuf:"varint,1,opt,name=EventID,json=guild_scheduled_event_id,proto3" json:"EventID,omitempty"` User *User `protobuf:"bytes,2,opt,name=User,json=user,proto3" json:"User,omitempty"` Member *GuildMember `protobuf:"bytes,3,opt,name=Member,json=member,proto3" json:"Member,omitempty"` // contains filtered or unexported fields }
func (*ScheduledEventUser) Descriptor
deprecated
func (*ScheduledEventUser) Descriptor() ([]byte, []int)
Deprecated: Use ScheduledEventUser.ProtoReflect.Descriptor instead.
func (*ScheduledEventUser) GetEventID ¶
func (x *ScheduledEventUser) GetEventID() int64
func (*ScheduledEventUser) GetMember ¶
func (x *ScheduledEventUser) GetMember() *GuildMember
func (*ScheduledEventUser) GetUser ¶
func (x *ScheduledEventUser) GetUser() *User
func (*ScheduledEventUser) ProtoMessage ¶
func (*ScheduledEventUser) ProtoMessage()
func (*ScheduledEventUser) ProtoReflect ¶
func (x *ScheduledEventUser) ProtoReflect() protoreflect.Message
func (*ScheduledEventUser) Reset ¶
func (x *ScheduledEventUser) Reset()
func (*ScheduledEventUser) String ¶
func (x *ScheduledEventUser) String() string
type Secrets ¶
type Secrets struct { Join string `protobuf:"bytes,1,opt,name=Join,json=join,proto3" json:"Join,omitempty"` Spectate string `protobuf:"bytes,2,opt,name=Spectate,json=spectate,proto3" json:"Spectate,omitempty"` Match string `protobuf:"bytes,3,opt,name=Match,json=match,proto3" json:"Match,omitempty"` // contains filtered or unexported fields }
func (*Secrets) Descriptor
deprecated
func (*Secrets) GetSpectate ¶
func (*Secrets) ProtoMessage ¶
func (*Secrets) ProtoMessage()
func (*Secrets) ProtoReflect ¶
func (x *Secrets) ProtoReflect() protoreflect.Message
type SendWebsocketMessageRequest ¶
type SendWebsocketMessageRequest struct { Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` ShardGroup int32 `protobuf:"varint,2,opt,name=shardGroup,proto3" json:"shardGroup,omitempty"` Shard int32 `protobuf:"varint,3,opt,name=shard,proto3" json:"shard,omitempty"` GatewayOPCode int32 `protobuf:"varint,4,opt,name=gatewayOPCode,proto3" json:"gatewayOPCode,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SendWebsocketMessageRequest) Descriptor
deprecated
func (*SendWebsocketMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendWebsocketMessageRequest.ProtoReflect.Descriptor instead.
func (*SendWebsocketMessageRequest) GetData ¶
func (x *SendWebsocketMessageRequest) GetData() []byte
func (*SendWebsocketMessageRequest) GetGatewayOPCode ¶
func (x *SendWebsocketMessageRequest) GetGatewayOPCode() int32
func (*SendWebsocketMessageRequest) GetManager ¶
func (x *SendWebsocketMessageRequest) GetManager() string
func (*SendWebsocketMessageRequest) GetShard ¶
func (x *SendWebsocketMessageRequest) GetShard() int32
func (*SendWebsocketMessageRequest) GetShardGroup ¶
func (x *SendWebsocketMessageRequest) GetShardGroup() int32
func (*SendWebsocketMessageRequest) ProtoMessage ¶
func (*SendWebsocketMessageRequest) ProtoMessage()
func (*SendWebsocketMessageRequest) ProtoReflect ¶
func (x *SendWebsocketMessageRequest) ProtoReflect() protoreflect.Message
func (*SendWebsocketMessageRequest) Reset ¶
func (x *SendWebsocketMessageRequest) Reset()
func (*SendWebsocketMessageRequest) String ¶
func (x *SendWebsocketMessageRequest) String() string
type StageInstance ¶
type StageInstance struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` GuildID int64 `protobuf:"varint,2,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` ChannelID int64 `protobuf:"varint,3,opt,name=ChannelID,json=channel_id,proto3" json:"ChannelID,omitempty"` Topic string `protobuf:"bytes,4,opt,name=Topic,json=topic,proto3" json:"Topic,omitempty"` PrivacyLabel uint32 `protobuf:"varint,5,opt,name=PrivacyLabel,json=privacy_level,proto3" json:"PrivacyLabel,omitempty"` DiscoverableDisabled bool `protobuf:"varint,6,opt,name=DiscoverableDisabled,json=discoverable_disabled,proto3" json:"DiscoverableDisabled,omitempty"` // contains filtered or unexported fields }
func (*StageInstance) Descriptor
deprecated
func (*StageInstance) Descriptor() ([]byte, []int)
Deprecated: Use StageInstance.ProtoReflect.Descriptor instead.
func (*StageInstance) GetChannelID ¶
func (x *StageInstance) GetChannelID() int64
func (*StageInstance) GetDiscoverableDisabled ¶
func (x *StageInstance) GetDiscoverableDisabled() bool
func (*StageInstance) GetGuildID ¶
func (x *StageInstance) GetGuildID() int64
func (*StageInstance) GetID ¶
func (x *StageInstance) GetID() int64
func (*StageInstance) GetPrivacyLabel ¶
func (x *StageInstance) GetPrivacyLabel() uint32
func (*StageInstance) GetTopic ¶
func (x *StageInstance) GetTopic() string
func (*StageInstance) ProtoMessage ¶
func (*StageInstance) ProtoMessage()
func (*StageInstance) ProtoReflect ¶
func (x *StageInstance) ProtoReflect() protoreflect.Message
func (*StageInstance) Reset ¶
func (x *StageInstance) Reset()
func (*StageInstance) String ¶
func (x *StageInstance) String() string
type Sticker ¶
type Sticker struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` PackID int64 `protobuf:"varint,2,opt,name=PackID,json=pack_id,proto3" json:"PackID,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Description string `protobuf:"bytes,4,opt,name=Description,json=description,proto3" json:"Description,omitempty"` Tags string `protobuf:"bytes,5,opt,name=Tags,json=tags,proto3" json:"Tags,omitempty"` Type uint32 `protobuf:"varint,6,opt,name=Type,json=type,proto3" json:"Type,omitempty"` FormatType uint32 `protobuf:"varint,7,opt,name=FormatType,json=format_type,proto3" json:"FormatType,omitempty"` Available bool `protobuf:"varint,8,opt,name=Available,json=available,proto3" json:"Available,omitempty"` GuildID int64 `protobuf:"varint,9,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` User *User `protobuf:"bytes,10,opt,name=User,json=user,proto3" json:"User,omitempty"` SortValue int32 `protobuf:"varint,11,opt,name=SortValue,json=sort_value,proto3" json:"SortValue,omitempty"` // contains filtered or unexported fields }
func (*Sticker) Descriptor
deprecated
func (*Sticker) GetAvailable ¶
func (*Sticker) GetDescription ¶
func (*Sticker) GetFormatType ¶
func (*Sticker) GetGuildID ¶
func (*Sticker) GetSortValue ¶
func (*Sticker) ProtoMessage ¶
func (*Sticker) ProtoMessage()
func (*Sticker) ProtoReflect ¶
func (x *Sticker) ProtoReflect() protoreflect.Message
type ThreadMember ¶
type ThreadMember struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` UserID int64 `protobuf:"varint,2,opt,name=UserID,json=user_id,proto3" json:"UserID,omitempty"` GuildID int64 `protobuf:"varint,3,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` JoinTimestamp string `protobuf:"bytes,4,opt,name=JoinTimestamp,json=join_timestamp,proto3" json:"JoinTimestamp,omitempty"` Flags int32 `protobuf:"varint,5,opt,name=Flags,json=flags,proto3" json:"Flags,omitempty"` // contains filtered or unexported fields }
func (*ThreadMember) Descriptor
deprecated
func (*ThreadMember) Descriptor() ([]byte, []int)
Deprecated: Use ThreadMember.ProtoReflect.Descriptor instead.
func (*ThreadMember) GetFlags ¶
func (x *ThreadMember) GetFlags() int32
func (*ThreadMember) GetGuildID ¶
func (x *ThreadMember) GetGuildID() int64
func (*ThreadMember) GetID ¶
func (x *ThreadMember) GetID() int64
func (*ThreadMember) GetJoinTimestamp ¶
func (x *ThreadMember) GetJoinTimestamp() string
func (*ThreadMember) GetUserID ¶
func (x *ThreadMember) GetUserID() int64
func (*ThreadMember) ProtoMessage ¶
func (*ThreadMember) ProtoMessage()
func (*ThreadMember) ProtoReflect ¶
func (x *ThreadMember) ProtoReflect() protoreflect.Message
func (*ThreadMember) Reset ¶
func (x *ThreadMember) Reset()
func (*ThreadMember) String ¶
func (x *ThreadMember) String() string
type ThreadMetadata ¶
type ThreadMetadata struct { Archived bool `protobuf:"varint,1,opt,name=Archived,json=archived,proto3" json:"Archived,omitempty"` AutoArchiveDuration int32 `protobuf:"varint,2,opt,name=AutoArchiveDuration,json=auto_archive_duration,proto3" json:"AutoArchiveDuration,omitempty"` ArchiveTimestamp string `protobuf:"bytes,3,opt,name=ArchiveTimestamp,json=archive_timestamp,proto3" json:"ArchiveTimestamp,omitempty"` Locked bool `protobuf:"varint,4,opt,name=Locked,json=locked,proto3" json:"Locked,omitempty"` // contains filtered or unexported fields }
func (*ThreadMetadata) Descriptor
deprecated
func (*ThreadMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ThreadMetadata.ProtoReflect.Descriptor instead.
func (*ThreadMetadata) GetArchiveTimestamp ¶
func (x *ThreadMetadata) GetArchiveTimestamp() string
func (*ThreadMetadata) GetArchived ¶
func (x *ThreadMetadata) GetArchived() bool
func (*ThreadMetadata) GetAutoArchiveDuration ¶
func (x *ThreadMetadata) GetAutoArchiveDuration() int32
func (*ThreadMetadata) GetLocked ¶
func (x *ThreadMetadata) GetLocked() bool
func (*ThreadMetadata) ProtoMessage ¶
func (*ThreadMetadata) ProtoMessage()
func (*ThreadMetadata) ProtoReflect ¶
func (x *ThreadMetadata) ProtoReflect() protoreflect.Message
func (*ThreadMetadata) Reset ¶
func (x *ThreadMetadata) Reset()
func (*ThreadMetadata) String ¶
func (x *ThreadMetadata) String() string
type Timestamps ¶
type Timestamps struct { Start int32 `protobuf:"varint,1,opt,name=Start,json=start,proto3" json:"Start,omitempty"` End int32 `protobuf:"varint,2,opt,name=End,json=end,proto3" json:"End,omitempty"` // contains filtered or unexported fields }
func (*Timestamps) Descriptor
deprecated
func (*Timestamps) Descriptor() ([]byte, []int)
Deprecated: Use Timestamps.ProtoReflect.Descriptor instead.
func (*Timestamps) GetEnd ¶
func (x *Timestamps) GetEnd() int32
func (*Timestamps) GetStart ¶
func (x *Timestamps) GetStart() int32
func (*Timestamps) ProtoMessage ¶
func (*Timestamps) ProtoMessage()
func (*Timestamps) ProtoReflect ¶
func (x *Timestamps) ProtoReflect() protoreflect.Message
func (*Timestamps) Reset ¶
func (x *Timestamps) Reset()
func (*Timestamps) String ¶
func (x *Timestamps) String() string
type TooManyRequests ¶
type TooManyRequests struct { Message string `protobuf:"bytes,1,opt,name=Message,json=message,proto3" json:"Message,omitempty"` RetryAfter int32 `protobuf:"varint,2,opt,name=RetryAfter,json=retry_after,proto3" json:"RetryAfter,omitempty"` Global bool `protobuf:"varint,3,opt,name=Global,json=global,proto3" json:"Global,omitempty"` // contains filtered or unexported fields }
func (*TooManyRequests) Descriptor
deprecated
func (*TooManyRequests) Descriptor() ([]byte, []int)
Deprecated: Use TooManyRequests.ProtoReflect.Descriptor instead.
func (*TooManyRequests) GetGlobal ¶
func (x *TooManyRequests) GetGlobal() bool
func (*TooManyRequests) GetMessage ¶
func (x *TooManyRequests) GetMessage() string
func (*TooManyRequests) GetRetryAfter ¶
func (x *TooManyRequests) GetRetryAfter() int32
func (*TooManyRequests) ProtoMessage ¶
func (*TooManyRequests) ProtoMessage()
func (*TooManyRequests) ProtoReflect ¶
func (x *TooManyRequests) ProtoReflect() protoreflect.Message
func (*TooManyRequests) Reset ¶
func (x *TooManyRequests) Reset()
func (*TooManyRequests) String ¶
func (x *TooManyRequests) String() string
type UnavailableGuild ¶
type UnavailableGuild struct { // contains filtered or unexported fields }
func (*UnavailableGuild) Descriptor
deprecated
func (*UnavailableGuild) Descriptor() ([]byte, []int)
Deprecated: Use UnavailableGuild.ProtoReflect.Descriptor instead.
func (*UnavailableGuild) GetID ¶
func (x *UnavailableGuild) GetID() int64
func (*UnavailableGuild) GetUnavailable ¶
func (x *UnavailableGuild) GetUnavailable() bool
func (*UnavailableGuild) ProtoMessage ¶
func (*UnavailableGuild) ProtoMessage()
func (*UnavailableGuild) ProtoReflect ¶
func (x *UnavailableGuild) ProtoReflect() protoreflect.Message
func (*UnavailableGuild) Reset ¶
func (x *UnavailableGuild) Reset()
func (*UnavailableGuild) String ¶
func (x *UnavailableGuild) String() string
type UnimplementedSandwichServer ¶
type UnimplementedSandwichServer struct { }
UnimplementedSandwichServer must be embedded to have forward compatible implementations.
func (UnimplementedSandwichServer) FetchConsumerConfiguration ¶
func (UnimplementedSandwichServer) FetchConsumerConfiguration(context.Context, *FetchConsumerConfigurationRequest) (*FetchConsumerConfigurationResponse, error)
func (UnimplementedSandwichServer) FetchGuild ¶
func (UnimplementedSandwichServer) FetchGuild(context.Context, *FetchGuildRequest) (*GuildsResponse, error)
func (UnimplementedSandwichServer) FetchGuildChannels ¶
func (UnimplementedSandwichServer) FetchGuildChannels(context.Context, *FetchGuildChannelsRequest) (*ChannelsResponse, error)
func (UnimplementedSandwichServer) FetchGuildEmojis ¶
func (UnimplementedSandwichServer) FetchGuildEmojis(context.Context, *FetchGuildEmojisRequest) (*EmojisResponse, error)
func (UnimplementedSandwichServer) FetchGuildMembers ¶
func (UnimplementedSandwichServer) FetchGuildMembers(context.Context, *FetchGuildMembersRequest) (*GuildMembersResponse, error)
func (UnimplementedSandwichServer) FetchGuildRoles ¶
func (UnimplementedSandwichServer) FetchGuildRoles(context.Context, *FetchGuildRolesRequest) (*GuildRolesResponse, error)
func (UnimplementedSandwichServer) FetchMutualGuilds ¶
func (UnimplementedSandwichServer) FetchMutualGuilds(context.Context, *FetchMutualGuildsRequest) (*GuildsResponse, error)
func (UnimplementedSandwichServer) FetchUsers ¶
func (UnimplementedSandwichServer) FetchUsers(context.Context, *FetchUsersRequest) (*UsersResponse, error)
func (UnimplementedSandwichServer) Listen ¶
func (UnimplementedSandwichServer) Listen(*ListenRequest, Sandwich_ListenServer) error
func (UnimplementedSandwichServer) PostAnalytics ¶
func (UnimplementedSandwichServer) PostAnalytics(context.Context, *PostAnalyticsRequest) (*BaseResponse, error)
func (UnimplementedSandwichServer) RelayMessage ¶
func (UnimplementedSandwichServer) RelayMessage(context.Context, *RelayMessageRequest) (*BaseResponse, error)
func (UnimplementedSandwichServer) RequestGuildChunk ¶
func (UnimplementedSandwichServer) RequestGuildChunk(context.Context, *RequestGuildChunkRequest) (*BaseResponse, error)
func (UnimplementedSandwichServer) SendWebsocketMessage ¶
func (UnimplementedSandwichServer) SendWebsocketMessage(context.Context, *SendWebsocketMessageRequest) (*BaseResponse, error)
func (UnimplementedSandwichServer) WhereIsGuild ¶
func (UnimplementedSandwichServer) WhereIsGuild(context.Context, *WhereIsGuildRequest) (*WhereIsGuildResponse, error)
type UnsafeSandwichServer ¶
type UnsafeSandwichServer interface {
// contains filtered or unexported methods
}
UnsafeSandwichServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SandwichServer will result in compilation errors.
type User ¶
type User struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Username string `protobuf:"bytes,2,opt,name=Username,json=username,proto3" json:"Username,omitempty"` Discriminator string `protobuf:"bytes,3,opt,name=Discriminator,json=discriminator,proto3" json:"Discriminator,omitempty"` GlobalName string `protobuf:"bytes,4,opt,name=GlobalName,json=global_name,proto3" json:"GlobalName,omitempty"` Avatar string `protobuf:"bytes,5,opt,name=Avatar,json=avatar,proto3" json:"Avatar,omitempty"` Bot bool `protobuf:"varint,6,opt,name=Bot,json=bot,proto3" json:"Bot,omitempty"` System bool `protobuf:"varint,7,opt,name=System,json=system,proto3" json:"System,omitempty"` MFAEnabled bool `protobuf:"varint,8,opt,name=MFAEnabled,json=mfa_enabled,proto3" json:"MFAEnabled,omitempty"` Banner string `protobuf:"bytes,9,opt,name=Banner,json=banner,proto3" json:"Banner,omitempty"` AccentColour int32 `protobuf:"varint,10,opt,name=AccentColour,json=accent_color,proto3" json:"AccentColour,omitempty"` Locale string `protobuf:"bytes,11,opt,name=Locale,json=locale,proto3" json:"Locale,omitempty"` Verified bool `protobuf:"varint,12,opt,name=Verified,json=verified,proto3" json:"Verified,omitempty"` Email string `protobuf:"bytes,13,opt,name=Email,json=email,proto3" json:"Email,omitempty"` Flags int32 `protobuf:"varint,14,opt,name=Flags,json=flags,proto3" json:"Flags,omitempty"` PremiumType int32 `protobuf:"varint,15,opt,name=PremiumType,json=premium_type,proto3" json:"PremiumType,omitempty"` PublicFlags int32 `protobuf:"varint,16,opt,name=PublicFlags,json=public_flags,proto3" json:"PublicFlags,omitempty"` DMChannelID int64 `protobuf:"varint,17,opt,name=DMChannelID,json=dm_channel_id,proto3" json:"DMChannelID,omitempty"` // contains filtered or unexported fields }
func UserToGRPC ¶
Converts discord.User to gRPC counterpart.
func (*User) Descriptor
deprecated
func (*User) GetAccentColour ¶
func (*User) GetDMChannelID ¶
func (*User) GetDiscriminator ¶
func (*User) GetGlobalName ¶
func (*User) GetMFAEnabled ¶
func (*User) GetPremiumType ¶
func (*User) GetPublicFlags ¶
func (*User) GetUsername ¶
func (*User) GetVerified ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UsersResponse ¶
type UsersResponse struct { BaseResponse *BaseResponse `protobuf:"bytes,1,opt,name=baseResponse,proto3" json:"baseResponse,omitempty"` Users map[int64]*User `` /* 152-byte string literal not displayed */ // contains filtered or unexported fields }
func (*UsersResponse) Descriptor
deprecated
func (*UsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use UsersResponse.ProtoReflect.Descriptor instead.
func (*UsersResponse) GetBaseResponse ¶
func (x *UsersResponse) GetBaseResponse() *BaseResponse
func (*UsersResponse) GetUsers ¶
func (x *UsersResponse) GetUsers() map[int64]*User
func (*UsersResponse) ProtoMessage ¶
func (*UsersResponse) ProtoMessage()
func (*UsersResponse) ProtoReflect ¶
func (x *UsersResponse) ProtoReflect() protoreflect.Message
func (*UsersResponse) Reset ¶
func (x *UsersResponse) Reset()
func (*UsersResponse) String ¶
func (x *UsersResponse) String() string
type VoiceState ¶
type VoiceState struct { UserID int64 `protobuf:"varint,1,opt,name=UserID,json=user_id,proto3" json:"UserID,omitempty"` ChannelID int64 `protobuf:"varint,2,opt,name=ChannelID,json=channel_id,proto3" json:"ChannelID,omitempty"` GuildID int64 `protobuf:"varint,3,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` Member *GuildMember `protobuf:"bytes,4,opt,name=Member,json=member,proto3" json:"Member,omitempty"` SessionID string `protobuf:"bytes,5,opt,name=SessionID,json=session_id,proto3" json:"SessionID,omitempty"` Deaf bool `protobuf:"varint,6,opt,name=Deaf,json=deaf,proto3" json:"Deaf,omitempty"` Mute bool `protobuf:"varint,7,opt,name=Mute,json=mute,proto3" json:"Mute,omitempty"` SelfDeaf bool `protobuf:"varint,8,opt,name=SelfDeaf,json=self_deaf,proto3" json:"SelfDeaf,omitempty"` SelfMute bool `protobuf:"varint,9,opt,name=SelfMute,json=self_mute,proto3" json:"SelfMute,omitempty"` SelfStream bool `protobuf:"varint,10,opt,name=SelfStream,json=self_stream,proto3" json:"SelfStream,omitempty"` SelfVideo bool `protobuf:"varint,11,opt,name=SelfVideo,json=self_video,proto3" json:"SelfVideo,omitempty"` Suppress bool `protobuf:"varint,12,opt,name=Suppress,json=suppress,proto3" json:"Suppress,omitempty"` RequestToSpeakTimestamp string `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
func (*VoiceState) Descriptor
deprecated
func (*VoiceState) Descriptor() ([]byte, []int)
Deprecated: Use VoiceState.ProtoReflect.Descriptor instead.
func (*VoiceState) GetChannelID ¶
func (x *VoiceState) GetChannelID() int64
func (*VoiceState) GetDeaf ¶
func (x *VoiceState) GetDeaf() bool
func (*VoiceState) GetGuildID ¶
func (x *VoiceState) GetGuildID() int64
func (*VoiceState) GetMember ¶
func (x *VoiceState) GetMember() *GuildMember
func (*VoiceState) GetMute ¶
func (x *VoiceState) GetMute() bool
func (*VoiceState) GetRequestToSpeakTimestamp ¶
func (x *VoiceState) GetRequestToSpeakTimestamp() string
func (*VoiceState) GetSelfDeaf ¶
func (x *VoiceState) GetSelfDeaf() bool
func (*VoiceState) GetSelfMute ¶
func (x *VoiceState) GetSelfMute() bool
func (*VoiceState) GetSelfStream ¶
func (x *VoiceState) GetSelfStream() bool
func (*VoiceState) GetSelfVideo ¶
func (x *VoiceState) GetSelfVideo() bool
func (*VoiceState) GetSessionID ¶
func (x *VoiceState) GetSessionID() string
func (*VoiceState) GetSuppress ¶
func (x *VoiceState) GetSuppress() bool
func (*VoiceState) GetUserID ¶
func (x *VoiceState) GetUserID() int64
func (*VoiceState) ProtoMessage ¶
func (*VoiceState) ProtoMessage()
func (*VoiceState) ProtoReflect ¶
func (x *VoiceState) ProtoReflect() protoreflect.Message
func (*VoiceState) Reset ¶
func (x *VoiceState) Reset()
func (*VoiceState) String ¶
func (x *VoiceState) String() string
type Webhook ¶
type Webhook struct { ID int64 `protobuf:"varint,1,opt,name=ID,json=id,proto3" json:"ID,omitempty"` Type uint32 `protobuf:"varint,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` GuildID int64 `protobuf:"varint,3,opt,name=GuildID,json=guild_id,proto3" json:"GuildID,omitempty"` ChannelID int64 `protobuf:"varint,4,opt,name=ChannelID,json=channel_id,proto3" json:"ChannelID,omitempty"` User *User `protobuf:"bytes,5,opt,name=User,json=user,proto3" json:"User,omitempty"` Name string `protobuf:"bytes,6,opt,name=Name,json=name,proto3" json:"Name,omitempty"` Avatar string `protobuf:"bytes,7,opt,name=Avatar,json=avatar,proto3" json:"Avatar,omitempty"` Token string `protobuf:"bytes,8,opt,name=Token,json=token,proto3" json:"Token,omitempty"` ApplicationID int64 `protobuf:"varint,9,opt,name=ApplicationID,json=application_id,proto3" json:"ApplicationID,omitempty"` // contains filtered or unexported fields }
func (*Webhook) Descriptor
deprecated
func (*Webhook) GetApplicationID ¶
func (*Webhook) GetChannelID ¶
func (*Webhook) GetGuildID ¶
func (*Webhook) ProtoMessage ¶
func (*Webhook) ProtoMessage()
func (*Webhook) ProtoReflect ¶
func (x *Webhook) ProtoReflect() protoreflect.Message
type WebhookMessage ¶
type WebhookMessage struct { Content string `protobuf:"bytes,1,opt,name=Content,json=content,proto3" json:"Content,omitempty"` Username string `protobuf:"bytes,2,opt,name=Username,json=username,proto3" json:"Username,omitempty"` AvatarURL string `protobuf:"bytes,3,opt,name=AvatarURL,json=avatar_url,proto3" json:"AvatarURL,omitempty"` TTS bool `protobuf:"varint,4,opt,name=TTS,json=tts,proto3" json:"TTS,omitempty"` Embeds []*Embed `protobuf:"bytes,5,rep,name=Embeds,json=embeds,proto3" json:"Embeds,omitempty"` AllowedMentions []*MessageAllowedMentions `protobuf:"bytes,6,rep,name=AllowedMentions,json=allowed_mentions,proto3" json:"AllowedMentions,omitempty"` Components []*InteractionComponent `protobuf:"bytes,7,rep,name=Components,json=components,proto3" json:"Components,omitempty"` PayloadJSON []byte `protobuf:"bytes,8,opt,name=PayloadJSON,json=payload_json,proto3" json:"PayloadJSON,omitempty"` // contains filtered or unexported fields }
func (*WebhookMessage) Descriptor
deprecated
func (*WebhookMessage) Descriptor() ([]byte, []int)
Deprecated: Use WebhookMessage.ProtoReflect.Descriptor instead.
func (*WebhookMessage) GetAllowedMentions ¶
func (x *WebhookMessage) GetAllowedMentions() []*MessageAllowedMentions
func (*WebhookMessage) GetAvatarURL ¶
func (x *WebhookMessage) GetAvatarURL() string
func (*WebhookMessage) GetComponents ¶
func (x *WebhookMessage) GetComponents() []*InteractionComponent
func (*WebhookMessage) GetContent ¶
func (x *WebhookMessage) GetContent() string
func (*WebhookMessage) GetEmbeds ¶
func (x *WebhookMessage) GetEmbeds() []*Embed
func (*WebhookMessage) GetPayloadJSON ¶
func (x *WebhookMessage) GetPayloadJSON() []byte
func (*WebhookMessage) GetTTS ¶
func (x *WebhookMessage) GetTTS() bool
func (*WebhookMessage) GetUsername ¶
func (x *WebhookMessage) GetUsername() string
func (*WebhookMessage) ProtoMessage ¶
func (*WebhookMessage) ProtoMessage()
func (*WebhookMessage) ProtoReflect ¶
func (x *WebhookMessage) ProtoReflect() protoreflect.Message
func (*WebhookMessage) Reset ¶
func (x *WebhookMessage) Reset()
func (*WebhookMessage) String ¶
func (x *WebhookMessage) String() string
type WhereIsGuildLocation ¶
type WhereIsGuildLocation struct { Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` ShardGroup int32 `protobuf:"varint,2,opt,name=shardGroup,proto3" json:"shardGroup,omitempty"` ShardId int32 `protobuf:"varint,3,opt,name=shardId,proto3" json:"shardId,omitempty"` GuildMember *GuildMember `protobuf:"bytes,4,opt,name=guildMember,proto3" json:"guildMember,omitempty"` // contains filtered or unexported fields }
func (*WhereIsGuildLocation) Descriptor
deprecated
func (*WhereIsGuildLocation) Descriptor() ([]byte, []int)
Deprecated: Use WhereIsGuildLocation.ProtoReflect.Descriptor instead.
func (*WhereIsGuildLocation) GetGuildMember ¶
func (x *WhereIsGuildLocation) GetGuildMember() *GuildMember
func (*WhereIsGuildLocation) GetManager ¶
func (x *WhereIsGuildLocation) GetManager() string
func (*WhereIsGuildLocation) GetShardGroup ¶
func (x *WhereIsGuildLocation) GetShardGroup() int32
func (*WhereIsGuildLocation) GetShardId ¶
func (x *WhereIsGuildLocation) GetShardId() int32
func (*WhereIsGuildLocation) ProtoMessage ¶
func (*WhereIsGuildLocation) ProtoMessage()
func (*WhereIsGuildLocation) ProtoReflect ¶
func (x *WhereIsGuildLocation) ProtoReflect() protoreflect.Message
func (*WhereIsGuildLocation) Reset ¶
func (x *WhereIsGuildLocation) Reset()
func (*WhereIsGuildLocation) String ¶
func (x *WhereIsGuildLocation) String() string
type WhereIsGuildRequest ¶
type WhereIsGuildRequest struct { GuildID int64 `protobuf:"varint,1,opt,name=guildID,proto3" json:"guildID,omitempty"` // contains filtered or unexported fields }
func (*WhereIsGuildRequest) Descriptor
deprecated
func (*WhereIsGuildRequest) Descriptor() ([]byte, []int)
Deprecated: Use WhereIsGuildRequest.ProtoReflect.Descriptor instead.
func (*WhereIsGuildRequest) GetGuildID ¶
func (x *WhereIsGuildRequest) GetGuildID() int64
func (*WhereIsGuildRequest) ProtoMessage ¶
func (*WhereIsGuildRequest) ProtoMessage()
func (*WhereIsGuildRequest) ProtoReflect ¶
func (x *WhereIsGuildRequest) ProtoReflect() protoreflect.Message
func (*WhereIsGuildRequest) Reset ¶
func (x *WhereIsGuildRequest) Reset()
func (*WhereIsGuildRequest) String ¶
func (x *WhereIsGuildRequest) String() string
type WhereIsGuildResponse ¶
type WhereIsGuildResponse struct { BaseResponse *BaseResponse `protobuf:"bytes,1,opt,name=baseResponse,proto3" json:"baseResponse,omitempty"` Locations []*WhereIsGuildLocation `protobuf:"bytes,2,rep,name=locations,proto3" json:"locations,omitempty"` // contains filtered or unexported fields }
func (*WhereIsGuildResponse) Descriptor
deprecated
func (*WhereIsGuildResponse) Descriptor() ([]byte, []int)
Deprecated: Use WhereIsGuildResponse.ProtoReflect.Descriptor instead.
func (*WhereIsGuildResponse) GetBaseResponse ¶
func (x *WhereIsGuildResponse) GetBaseResponse() *BaseResponse
func (*WhereIsGuildResponse) GetLocations ¶
func (x *WhereIsGuildResponse) GetLocations() []*WhereIsGuildLocation
func (*WhereIsGuildResponse) ProtoMessage ¶
func (*WhereIsGuildResponse) ProtoMessage()
func (*WhereIsGuildResponse) ProtoReflect ¶
func (x *WhereIsGuildResponse) ProtoReflect() protoreflect.Message
func (*WhereIsGuildResponse) Reset ¶
func (x *WhereIsGuildResponse) Reset()
func (*WhereIsGuildResponse) String ¶
func (x *WhereIsGuildResponse) String() string