Versions in this module Expand all Collapse all v0 v0.1.0 Oct 6, 2026 Changes in this version + const ActionBlockInteraction + const ActionBlockMessage + const ActionSendAlertMessage + const ActionTimeout + const ArchiveOneDay + const ArchiveOneHour + const ArchiveOneWeek + const ArchiveThreeDays + const BaseURL + const CommandPermissionChannel + const CommandPermissionRole + const CommandPermissionUser + const DefaultPrefix + const EventActive + const EventCancelled + const EventCompleted + const EventExternal + const EventMemberUpdate + const EventMessageSend + const EventScheduled + const EventStageInstance + const EventVoice + const IntentsAllUnprivileged + const IntentsPrivileged + const IntentsSelfbot + const LayoutBottomCollection + const LayoutBottomStats + const LayoutMiniProfileStat + const LayoutPreviewHero + const LayoutTopHero + const MaxRoleConnectionMetadata + const OverwriteMember + const OverwriteRole + const PresentDuration + const PresentImage + const PresentNumber + const PresentText + const PresetProfanity + const PresetSexualContent + const PresetSlurs + const ScopeApplicationIdentitiesWrite + const SelfbotPace + const TriggerKeyword + const TriggerKeywordPreset + const TriggerMemberProfile + const TriggerMentionSpam + const TriggerSpam + const Version + const WidgetApplicationAsset + const WidgetCustomString + const WidgetData + var ErrChannelNotCached = errors.New("starling: channel is not cached") + var ErrClosed = errors.New("starling: client closed") + var ErrGuildNotCached = errors.New("starling: guild is not cached") + var ErrInteractionAlreadyAnswered = errors.New("starling: this interaction has already been answered - use Followup instead") + var ErrMemberNotCached = errors.New("starling: member is not cached") + var ErrTooManyMetadataRecords = errors.New(...) + var ErrUnsupportedStateEvent = errors.New("starling: event does not change cached state") + func AuthorizeURL(appID Snowflake, redirectURI string, scopes ...string) string + func BearerToken(token string) string + func GuardCompare[T any](g *Guard, feature string, equal func(T, T) bool, ...) (T, error) + func HTTPStatus(err error) int + func IsForbidden(err error) bool + func IsNotFound(err error) bool + func IsUnauthorized(err error) bool + func Listen[E Event](c *Client, h func(*E)) func() + func On[E Event](c *Client, h func(*E)) + func Once[E Event](c *Client, h func(*E)) func() + func VerifyInteraction(publicKey ed25519.PublicKey, signatureHex, timestamp string, body []byte) bool + type APIError struct + Body []byte + Code int + Errors []FieldError + Message string + Status int + func (e *APIError) Error() string + type Activity struct + Name string + State string + Type ActivityType + URL string + func Listening(name string) Activity + func Playing(name string) Activity + func Watching(name string) Activity + type ActivityInstance struct + ApplicationID Snowflake + InstanceID string + LaunchID Snowflake + Location struct{ ... } + Users []Snowflake + type ActivityType int + const ActivityCompeting + const ActivityCustom + const ActivityListening + const ActivityPlaying + const ActivityStreaming + const ActivityWatching + type AllowedMentions struct + Parse []string + RepliedUser bool + Roles []Snowflake + Users []Snowflake + func NoMentions() *AllowedMentions + type AppInfo struct + Flags int + ID Snowflake + type AppTeam struct + ID Snowflake + Name string + OwnerUserID Snowflake + type ApplicationCommand struct + ApplicationID Snowflake + Contexts []InteractionContextType + DMPermission *bool + DefaultMemberPermissions *Permissions + DefaultPermission *bool + Description string + DescriptionLocalizations map[string]string + DescriptionLocalized string + GuildID Snowflake + Handler EntryPointHandlerType + ID Snowflake + IntegrationTypes []ApplicationIntegrationType + NSFW bool + Name string + NameLocalizations map[string]string + NameLocalized string + Options []CommandOption + Type ApplicationCommandType + Version Snowflake + type ApplicationCommandPermissionsUpdate struct + ApplicationID Snowflake + GuildID Snowflake + ID Snowflake + Permissions []struct{ ... } + func (e *ApplicationCommandPermissionsUpdate) Client() *Client + type ApplicationCommandType int + const CommandChat + const CommandMessage + const CommandPrimaryEntryPoint + const CommandUser + type ApplicationIdentity struct + ProviderID string + ProviderIssuedUserID string + ProviderType string + type ApplicationIntegrationType int + const IntegrationGuildInstall + const IntegrationUserInstall + type ApplicationParams struct + CoverImage *string + CustomInstallURL *string + Description *string + Flags *int + Icon *string + InteractionsEndpointURL *string + RedirectURIs *[]string + RoleConnectionsVerificationURL *string + Tags *[]string + type ArchivedThreadsQuery struct + Before time.Time + Limit int + type Attachment struct + Application *MessageApplication + ClipCreatedAt *time.Time + ClipParticipants []User + ContentType string + Description string + DurationSecs float64 + Ephemeral bool + Filename string + Flags int + Height int + ID Snowflake + Placeholder string + PlaceholderVersion int + ProxyURL string + Size int + Title string + URL string + Waveform string + Width int + type AttachmentUpload struct + URL string + type AuditLog struct + Entries []AuditLogEntry + Integrations []Integration + Threads []Channel + Users []User + Webhooks []Webhook + type AuditLogChange struct + Key string + NewValue any + OldValue any + type AuditLogEntry struct + ActionType int + Changes []AuditLogChange + ID Snowflake + Reason string + TargetID string + UserID Snowflake + type AuditLogQuery struct + ActionType int + After Snowflake + Before Snowflake + Limit int + UserID Snowflake + type AutoModerationActionExecution struct + Action AutomodAction + AlertSystemMessageID Snowflake + ChannelID Snowflake + Content string + GuildID Snowflake + MatchedContent string + MatchedKeyword string + MessageID Snowflake + RuleID Snowflake + RuleTriggerType int + UserID Snowflake + func (e *AutoModerationActionExecution) Client() *Client + type AutoModerationRuleCreate struct + func (e *AutoModerationRuleCreate) Client() *Client + type AutoModerationRuleDelete struct + func (e *AutoModerationRuleDelete) Client() *Client + type AutoModerationRuleUpdate struct + func (e *AutoModerationRuleUpdate) Client() *Client + type AutomodAction struct + Metadata *AutomodActionMeta + Type int + type AutomodActionMeta struct + ChannelID Snowflake + CustomMessage string + DurationSeconds int + type AutomodRule struct + Actions []AutomodAction + CreatorID Snowflake + Enabled bool + EventType int + ExemptChannels []Snowflake + ExemptRoles []Snowflake + GuildID Snowflake + ID Snowflake + Name string + TriggerMetadata *AutomodTriggerMeta + TriggerType int + type AutomodTriggerMeta struct + AllowList []string + KeywordFilter []string + MentionRaidProtectionEnabled bool + MentionTotalLimit int + Presets []int + RegexPatterns []string + type Ban struct + Reason string + User *User + type BansQuery struct + After Snowflake + Before Snowflake + Limit int + type BulkBanResult struct + BannedUsers []Snowflake + FailedUsers []Snowflake + type ButtonStyle int + const ButtonDanger + const ButtonLink + const ButtonPremium + const ButtonPrimary + const ButtonSecondary + const ButtonSuccess + type CallbackType int + const CallbackAutocompleteResult + const CallbackChannelMessageWithSource + const CallbackDeferredChannelMessage + const CallbackDeferredUpdateMessage + const CallbackLaunchActivity + const CallbackModal + const CallbackPong + const CallbackUpdateMessage + type Channel struct + AppliedTags []Snowflake + AvailableTags []ForumTag + Bitrate int + DefaultReaction *ForumReaction + Flags int + GuildID Snowflake + ID Snowflake + LastMessageID Snowflake + LastPinTimestamp *time.Time + NSFW bool + Name string + OwnerID Snowflake + ParentID Snowflake + PermissionOverwrites []Overwrite + Position int + RateLimitPerUser int + Recipients []User + Status string + ThreadMetadata *ThreadMeta + Topic string + Type ChannelType + UserLimit int + VoiceStartTime *time.Time + func (c *Channel) Mention() string + type ChannelCreate struct + func (e *ChannelCreate) Client() *Client + type ChannelDelete struct + BeforeDelete *Channel + func (e *ChannelDelete) Client() *Client + type ChannelInfo struct + Channels []ChannelInfoChannel + GuildID Snowflake + func (e *ChannelInfo) Client() *Client + type ChannelInfoChannel struct + ID Snowflake + Status *string + VoiceStartTime *int64 + type ChannelInfoField string + const ChannelInfoStatus + const ChannelInfoVoiceStartTime + type ChannelMention struct + GuildID Snowflake + ID Snowflake + Name string + Type ChannelType + type ChannelParams struct + Bitrate *int + DefaultAutoArchive *int + NSFW *bool + Name *string + ParentID *Snowflake + PermissionOverwrites *[]Overwrite + Position *int + RateLimitPerUser *int + Topic *string + Type *ChannelType + UserLimit *int + type ChannelPinsUpdate struct + BeforeUpdate *Channel + ChannelID Snowflake + GuildID Snowflake + LastPinTimestamp *time.Time + func (e *ChannelPinsUpdate) Client() *Client + type ChannelPosition struct + ID Snowflake + LockPermissions *bool + ParentID *Snowflake + Position *int + type ChannelType int + const ChannelAnnouncementThread + const ChannelDM + const ChannelGroupDM + const ChannelGuildAnnouncement + const ChannelGuildCategory + const ChannelGuildDirectory + const ChannelGuildForum + const ChannelGuildMedia + const ChannelGuildStageVoice + const ChannelGuildText + const ChannelGuildVoice + const ChannelPrivateThread + const ChannelPublicThread + func (t ChannelType) IsThread() bool + type ChannelUpdate struct + BeforeUpdate *Channel + func (e *ChannelUpdate) Client() *Client + type Client struct + State *State + func New(token string, opts ...Option) *Client + func Selfbot(token string, opts ...Option) *Client + func (c *Client) ActiveThreads(ctx context.Context, guildID Snowflake) ([]Channel, []ThreadMember, error) + func (c *Client) ActivityInstance(ctx context.Context, appID Snowflake, instanceID string) (*ActivityInstance, error) + func (c *Client) AddGroupDMRecipient(ctx context.Context, channelID, userID Snowflake, accessToken, nick string) error + func (c *Client) AddInviteTargetUser(ctx context.Context, code string, userID Snowflake) error + func (c *Client) AddLobbyMember(ctx context.Context, lobbyID, userID Snowflake, data LobbyMemberInput) (*LobbyMember, error) + func (c *Client) AddMember(ctx context.Context, guildID, userID Snowflake, accessToken string, ...) (*Member, error) + func (c *Client) AddMemberRole(ctx context.Context, guildID, userID, roleID Snowflake, reason string) error + func (c *Client) AddThreadMember(ctx context.Context, threadID, userID Snowflake) error + func (c *Client) Application(ctx context.Context, appID Snowflake) (*CurrentApplication, error) + func (c *Client) ApplicationCommand(ctx context.Context, appID, commandID Snowflake) (*ApplicationCommand, error) + func (c *Client) ApplicationCommands(ctx context.Context, appID Snowflake) ([]ApplicationCommand, error) + func (c *Client) ApplicationEmoji(ctx context.Context, appID, emojiID Snowflake) (*GuildEmoji, error) + func (c *Client) ApplicationEmojis(ctx context.Context, appID Snowflake) ([]GuildEmoji, error) + func (c *Client) ApplicationID() Snowflake + func (c *Client) AuditLog(ctx context.Context, guildID Snowflake, q AuditLogQuery) (*AuditLog, error) + func (c *Client) AutomodRule(ctx context.Context, guildID, ruleID Snowflake) (*AutomodRule, error) + func (c *Client) AutomodRules(ctx context.Context, guildID Snowflake) ([]AutomodRule, error) + func (c *Client) Ban(ctx context.Context, guildID, userID Snowflake) (*Ban, error) + func (c *Client) Bans(ctx context.Context, guildID Snowflake, q BansQuery) ([]Ban, error) + func (c *Client) BulkAddInviteTargetUsers(ctx context.Context, code string, userIDs []Snowflake) (*InviteTargetUsersJob, error) + func (c *Client) BulkBan(ctx context.Context, guildID Snowflake, userIDs []Snowflake, ...) (*BulkBanResult, error) + func (c *Client) BulkDeleteInviteTargetUsers(ctx context.Context, code string, userIDs []Snowflake) (*InviteTargetUsersJob, error) + func (c *Client) BulkDeleteMessages(ctx context.Context, channelID Snowflake, ids []Snowflake, reason string) error + func (c *Client) BulkUpdateLobbyMembers(ctx context.Context, lobbyID Snowflake, members []LobbyMemberInput) ([]LobbyMember, error) + func (c *Client) Channel(ctx context.Context, channelID Snowflake) (*Channel, error) + func (c *Client) ChannelInvites(ctx context.Context, channelID Snowflake) ([]Invite, error) + func (c *Client) ChannelWebhooks(ctx context.Context, channelID Snowflake) ([]Webhook, error) + func (c *Client) ClearReactions(ctx context.Context, channelID, messageID Snowflake) error + func (c *Client) ClearReactionsFor(ctx context.Context, channelID, messageID Snowflake, emoji Emoji) error + func (c *Client) Close() error + func (c *Client) Command(name string, fn CommandFunc) + func (c *Client) Commands() []string + func (c *Client) ConnectVoice(ctx context.Context, guildID, channelID Snowflake) (*VoiceConnection, error) + func (c *Client) ConsumeEntitlement(ctx context.Context, appID, entitlementID Snowflake) error + func (c *Client) CreateApplicationCommand(ctx context.Context, appID Snowflake, cmd ApplicationCommand) (*ApplicationCommand, error) + func (c *Client) CreateApplicationEmoji(ctx context.Context, appID Snowflake, name, image string) (*GuildEmoji, error) + func (c *Client) CreateAutomodRule(ctx context.Context, guildID Snowflake, rule AutomodRule, reason string) (*AutomodRule, error) + func (c *Client) CreateBan(ctx context.Context, guildID, userID Snowflake, deleteMessageSeconds int, ...) error + func (c *Client) CreateChannel(ctx context.Context, guildID Snowflake, params ChannelParams, reason string) (*Channel, error) + func (c *Client) CreateDM(ctx context.Context, userID Snowflake) (*Channel, error) + func (c *Client) CreateGuildCommand(ctx context.Context, appID, guildID Snowflake, cmd ApplicationCommand) (*ApplicationCommand, error) + func (c *Client) CreateGuildEmoji(ctx context.Context, guildID Snowflake, name, image string, roles []Snowflake, ...) (*GuildEmoji, error) + func (c *Client) CreateGuildTemplate(ctx context.Context, guildID Snowflake, name, description string) (*GuildTemplate, error) + func (c *Client) CreateInvite(ctx context.Context, channelID Snowflake, params InviteParams, reason string) (*Invite, error) + func (c *Client) CreateLobby(ctx context.Context, data LobbyCreate) (*Lobby, error) + func (c *Client) CreateRole(ctx context.Context, guildID Snowflake, params RoleParams, reason string) (*Role, error) + func (c *Client) CreateScheduledEvent(ctx context.Context, guildID Snowflake, e ScheduledEvent, reason string) (*ScheduledEvent, error) + func (c *Client) CreateScheduledEventException(ctx context.Context, guildID, eventID Snowflake, e ScheduledEventException) (*ScheduledEventException, error) + func (c *Client) CreateSoundboardSound(ctx context.Context, guildID Snowflake, s NewSoundboardSound, reason string) (*SoundboardSound, error) + func (c *Client) CreateStageInstance(ctx context.Context, s StageInstance, reason string) (*StageInstance, error) + func (c *Client) CreateSticker(ctx context.Context, guildID Snowflake, name, description, tags string, ...) (*Sticker, error) + func (c *Client) CreateTestEntitlement(ctx context.Context, appID, skuID, ownerID Snowflake, ownerType int) (*Entitlement, error) + func (c *Client) CreateWebhook(ctx context.Context, channelID Snowflake, name, reason string) (*Webhook, error) + func (c *Client) CreateWidgetConfig(ctx context.Context, appID Snowflake, displayName string) (*WidgetConfig, error) + func (c *Client) Crosspost(ctx context.Context, channelID, messageID Snowflake) (*Message, error) + func (c *Client) CurrentApplication(ctx context.Context) (*CurrentApplication, error) + func (c *Client) CurrentAuthorization(ctx context.Context, bearerToken string) (*OAuth2Authorization, error) + func (c *Client) CurrentOAuth2Application(ctx context.Context) (*CurrentApplication, error) + func (c *Client) CurrentUser(ctx context.Context) (*User, error) + func (c *Client) CurrentUserGuildMember(ctx context.Context, guildID Snowflake) (*Member, error) + func (c *Client) CurrentUserGuilds(ctx context.Context, q CurrentUserGuildsQuery) ([]Guild, error) + func (c *Client) CurrentVoiceState(ctx context.Context, guildID Snowflake) (*VoiceState, error) + func (c *Client) DefaultSoundboardSounds(ctx context.Context) ([]SoundboardSound, error) + func (c *Client) DeleteApplicationCommand(ctx context.Context, appID, commandID Snowflake) error + func (c *Client) DeleteApplicationEmoji(ctx context.Context, appID, emojiID Snowflake) error + func (c *Client) DeleteApplicationIdentity(ctx context.Context, userID, appID Snowflake, ...) error + func (c *Client) DeleteAutomodRule(ctx context.Context, guildID, ruleID Snowflake, reason string) error + func (c *Client) DeleteChannel(ctx context.Context, channelID Snowflake, reason string) (*Channel, error) + func (c *Client) DeleteGuildCommand(ctx context.Context, appID, guildID, commandID Snowflake) error + func (c *Client) DeleteGuildEmoji(ctx context.Context, guildID, emojiID Snowflake, reason string) error + func (c *Client) DeleteGuildTemplate(ctx context.Context, guildID Snowflake, code string) (*GuildTemplate, error) + func (c *Client) DeleteIntegration(ctx context.Context, guildID, integrationID Snowflake, reason string) error + func (c *Client) DeleteInvite(ctx context.Context, code, reason string) (*Invite, error) + func (c *Client) DeleteLobby(ctx context.Context, lobbyID Snowflake) error + func (c *Client) DeleteMessage(ctx context.Context, channelID, messageID Snowflake, reason string) error + func (c *Client) DeletePermissionOverwrite(ctx context.Context, channelID, overwriteID Snowflake, reason string) error + func (c *Client) DeleteRole(ctx context.Context, guildID, roleID Snowflake, reason string) error + func (c *Client) DeleteScheduledEvent(ctx context.Context, guildID, eventID Snowflake) error + func (c *Client) DeleteScheduledEventException(ctx context.Context, guildID, eventID, exceptionID Snowflake) error + func (c *Client) DeleteSoundboardSound(ctx context.Context, guildID, soundID Snowflake, reason string) error + func (c *Client) DeleteStageInstance(ctx context.Context, channelID Snowflake, reason string) error + func (c *Client) DeleteSticker(ctx context.Context, guildID, stickerID Snowflake, reason string) error + func (c *Client) DeleteTestEntitlement(ctx context.Context, appID, entitlementID Snowflake) error + func (c *Client) DeleteUserRoleConnection(ctx context.Context, bearerToken string, appID Snowflake) error + func (c *Client) DeleteWebhook(ctx context.Context, webhookID Snowflake, reason string) error + func (c *Client) DeleteWebhookMessage(ctx context.Context, webhookID Snowflake, token string, messageID Snowflake) error + func (c *Client) DeleteWebhookWithToken(ctx context.Context, webhookID Snowflake, token string) error + func (c *Client) EditApplication(ctx context.Context, params ApplicationParams) (*CurrentApplication, error) + func (c *Client) EditApplicationByID(ctx context.Context, appID Snowflake, params ApplicationParams) (*CurrentApplication, error) + func (c *Client) EditApplicationCommand(ctx context.Context, appID, commandID Snowflake, cmd ApplicationCommand) (*ApplicationCommand, error) + func (c *Client) EditGuildCommand(ctx context.Context, appID, guildID, commandID Snowflake, ...) (*ApplicationCommand, error) + func (c *Client) EditLobby(ctx context.Context, lobbyID Snowflake, data LobbyEdit) (*Lobby, error) + func (c *Client) EditMessage(ctx context.Context, channelID, messageID Snowflake, data SendData) (*Message, error) + func (c *Client) EditWebhookMessage(ctx context.Context, webhookID Snowflake, token string, messageID Snowflake, ...) (*Message, error) + func (c *Client) EditWebhookMessageFiles(ctx context.Context, webhookID Snowflake, token string, messageID Snowflake, ...) (*Message, error) + func (c *Client) Entitlement(ctx context.Context, appID, entitlementID Snowflake) (*Entitlement, error) + func (c *Client) Entitlements(ctx context.Context, appID Snowflake, q EntitlementsQuery) ([]Entitlement, error) + func (c *Client) ExchangeBotProvisionalToken(ctx context.Context, externalUserID, preferredGlobalName string, ...) (*ProvisionalToken, error) + func (c *Client) ExchangeProvisionalToken(ctx context.Context, credentials ProvisionalCredentials) (*ProvisionalToken, error) + func (c *Client) ExecuteGitHubWebhook(ctx context.Context, webhookID Snowflake, token string, payload any, wait bool) error + func (c *Client) ExecuteSlackWebhook(ctx context.Context, webhookID Snowflake, token string, payload any, wait bool) error + func (c *Client) ExecuteWebhook(ctx context.Context, webhookID Snowflake, token string, msg WebhookMessage, ...) (*Message, error) + func (c *Client) ExecuteWebhookFiles(ctx context.Context, webhookID Snowflake, token string, msg WebhookMessage, ...) (*Message, error) + func (c *Client) ExpirePoll(ctx context.Context, channelID, messageID Snowflake) (*Message, error) + func (c *Client) FollowChannel(ctx context.Context, channelID, targetID Snowflake) error + func (c *Client) Gateway(ctx context.Context) (string, error) + func (c *Client) GatewayBot(ctx context.Context) (*GatewayInfo, error) + func (c *Client) Guard() *Guard + func (c *Client) Guild(ctx context.Context, guildID Snowflake) (*Guild, error) + func (c *Client) GuildChannels(ctx context.Context, guildID Snowflake) ([]Channel, error) + func (c *Client) GuildCommand(ctx context.Context, appID, guildID, commandID Snowflake) (*ApplicationCommand, error) + func (c *Client) GuildCommandPermissions(ctx context.Context, appID, guildID, commandID Snowflake) (*GuildCommandPermissions, error) + func (c *Client) GuildCommands(ctx context.Context, appID, guildID Snowflake) ([]ApplicationCommand, error) + func (c *Client) GuildCommandsPermissions(ctx context.Context, appID, guildID Snowflake) ([]GuildCommandPermissions, error) + func (c *Client) GuildEmoji(ctx context.Context, guildID, emojiID Snowflake) (*GuildEmoji, error) + func (c *Client) GuildEmojis(ctx context.Context, guildID Snowflake) ([]GuildEmoji, error) + func (c *Client) GuildInvites(ctx context.Context, guildID Snowflake) ([]Invite, error) + func (c *Client) GuildJoinRequests(ctx context.Context, guildID Snowflake, status string, limit int) ([]GuildJoinRequest, error) + func (c *Client) GuildMember(ctx context.Context, guildID, userID Snowflake) (*Member, error) + func (c *Client) GuildPreview(ctx context.Context, guildID Snowflake) (*GuildPreview, error) + func (c *Client) GuildSoundboardSound(ctx context.Context, guildID, soundID Snowflake) (*SoundboardSound, error) + func (c *Client) GuildSoundboardSounds(ctx context.Context, guildID Snowflake) ([]SoundboardSound, error) + func (c *Client) GuildSticker(ctx context.Context, guildID, stickerID Snowflake) (*Sticker, error) + func (c *Client) GuildStickers(ctx context.Context, guildID Snowflake) ([]Sticker, error) + func (c *Client) GuildTemplate(ctx context.Context, code string) (*GuildTemplate, error) + func (c *Client) GuildTemplates(ctx context.Context, guildID Snowflake) ([]GuildTemplate, error) + func (c *Client) GuildVoiceRegions(ctx context.Context, guildID Snowflake) ([]VoiceRegion, error) + func (c *Client) GuildWebhooks(ctx context.Context, guildID Snowflake) ([]Webhook, error) + func (c *Client) GuildWidgetImage(ctx context.Context, guildID Snowflake, style string) error + func (c *Client) GuildWidgetImageURL(guildID Snowflake, style string) string + func (c *Client) GuildWidgetJSON(ctx context.Context, guildID Snowflake) (*GuildWidgetJSON, error) + func (c *Client) HandleGatewayFrame(ctx context.Context, frame []byte) error + func (c *Client) IdentityProfile(ctx context.Context, appID, userID Snowflake, providerIssuedUserID string) (*IdentityProfile, error) + func (c *Client) Integrations(ctx context.Context, guildID Snowflake) ([]Integration, error) + func (c *Client) InteractionHandler(publicKey string) (http.Handler, error) + func (c *Client) Invite(ctx context.Context, code string, withCounts bool) (*Invite, error) + func (c *Client) InviteTargetUsers(ctx context.Context, code string, limit int, after Snowflake) ([]InviteTargetUser, error) + func (c *Client) InviteTargetUsersJobStatus(ctx context.Context, code string) (*InviteTargetUsersJob, error) + func (c *Client) JoinThread(ctx context.Context, threadID Snowflake) error + func (c *Client) JoinVoice(ctx context.Context, guildID, channelID Snowflake, mute, deaf bool) error + func (c *Client) Kick(ctx context.Context, guildID, userID Snowflake, reason string) error + func (c *Client) LeaveGuild(ctx context.Context, guildID Snowflake) error + func (c *Client) LeaveThread(ctx context.Context, threadID Snowflake) error + func (c *Client) LeaveVoice(ctx context.Context, guildID Snowflake) error + func (c *Client) Listen(handler any) func() + func (c *Client) Lobby(ctx context.Context, lobbyID Snowflake) (*Lobby, error) + func (c *Client) LobbyInviteForUser(ctx context.Context, lobbyID, userID Snowflake) (string, error) + func (c *Client) Logger() *slog.Logger + func (c *Client) LookupApplicationIdentity(ctx context.Context, appID Snowflake, ...) (*ApplicationIdentity, error) + func (c *Client) Members(ctx context.Context, guildID Snowflake, q MembersQuery) ([]Member, error) + func (c *Client) Message(ctx context.Context, channelID, messageID Snowflake) (*Message, error) + func (c *Client) Messages(ctx context.Context, channelID Snowflake, q MessagesQuery) ([]Message, error) + func (c *Client) ModifyApplicationEmoji(ctx context.Context, appID, emojiID Snowflake, name string) (*GuildEmoji, error) + func (c *Client) ModifyAutomodRule(ctx context.Context, guildID, ruleID Snowflake, rule AutomodRule, ...) (*AutomodRule, error) + func (c *Client) ModifyChannel(ctx context.Context, channelID Snowflake, params ChannelParams, reason string) (*Channel, error) + func (c *Client) ModifyCurrentUser(ctx context.Context, username, avatar string) (*User, error) + func (c *Client) ModifyGuild(ctx context.Context, guildID Snowflake, params GuildParams, reason string) (*Guild, error) + func (c *Client) ModifyGuildEmoji(ctx context.Context, guildID, emojiID Snowflake, name string, ...) (*GuildEmoji, error) + func (c *Client) ModifyGuildTemplate(ctx context.Context, guildID Snowflake, code, name, description string) (*GuildTemplate, error) + func (c *Client) ModifyMember(ctx context.Context, guildID, userID Snowflake, m ModifyMember, reason string) (*Member, error) + func (c *Client) ModifyRole(ctx context.Context, guildID, roleID Snowflake, params RoleParams, ...) (*Role, error) + func (c *Client) ModifyScheduledEvent(ctx context.Context, guildID, eventID Snowflake, e ScheduledEvent, ...) (*ScheduledEvent, error) + func (c *Client) ModifyScheduledEventException(ctx context.Context, guildID, eventID, exceptionID Snowflake, ...) (*ScheduledEventException, error) + func (c *Client) ModifySoundboardSound(ctx context.Context, guildID, soundID Snowflake, s NewSoundboardSound, ...) (*SoundboardSound, error) + func (c *Client) ModifyStageInstance(ctx context.Context, channelID Snowflake, topic, reason string) (*StageInstance, error) + func (c *Client) ModifySticker(ctx context.Context, guildID, stickerID Snowflake, ...) (*Sticker, error) + func (c *Client) ModifyWebhook(ctx context.Context, webhookID Snowflake, params WebhookParams, reason string) (*Webhook, error) + func (c *Client) ModifyWebhookWithToken(ctx context.Context, webhookID Snowflake, token, name, avatar string) (*Webhook, error) + func (c *Client) ModifyWelcomeScreen(ctx context.Context, guildID Snowflake, s WelcomeScreen, reason string) (*WelcomeScreen, error) + func (c *Client) ModifyWidgetSettings(ctx context.Context, guildID Snowflake, s GuildWidgetSettings, reason string) (*GuildWidgetSettings, error) + func (c *Client) MyPrivateArchivedThreads(ctx context.Context, channelID Snowflake, q ArchivedThreadsQuery) ([]Channel, bool, error) + func (c *Client) NewMemberWelcome(ctx context.Context, guildID Snowflake) (*NewMemberWelcome, error) + func (c *Client) OAuth2Keys(ctx context.Context) (map[string]any, error) + func (c *Client) On(handler any) + func (c *Client) OnRaw(fn func(*RawEvent)) func() + func (c *Client) Onboarding(ctx context.Context, guildID Snowflake) (*GuildOnboarding, error) + func (c *Client) OriginalWebhookMessage(ctx context.Context, webhookID Snowflake, token string) (*Message, error) + func (c *Client) Pacing() time.Duration + func (c *Client) PinMessage(ctx context.Context, channelID, messageID Snowflake, reason string) error + func (c *Client) PinMessageV2(ctx context.Context, channelID, messageID Snowflake, reason string) error + func (c *Client) PinnedMessages(ctx context.Context, channelID Snowflake, before string, limit int) (*MessagePins, error) + func (c *Client) Pins(ctx context.Context, channelID Snowflake) ([]Message, error) + func (c *Client) PollAnswerVoters(ctx context.Context, channelID, messageID Snowflake, answerID int, ...) ([]User, error) + func (c *Client) Prefix() string + func (c *Client) PrivateArchivedThreads(ctx context.Context, channelID Snowflake, q ArchivedThreadsQuery) ([]Channel, bool, error) + func (c *Client) Prune(ctx context.Context, guildID Snowflake, days int, computeCount bool, ...) (int, error) + func (c *Client) PruneCount(ctx context.Context, guildID Snowflake, days int, includeRoles []Snowflake) (int, error) + func (c *Client) PublicArchivedThreads(ctx context.Context, channelID Snowflake, q ArchivedThreadsQuery) ([]Channel, bool, error) + func (c *Client) PublishWidgetConfig(ctx context.Context, appID Snowflake, configID string) error + func (c *Client) React(ctx context.Context, channelID, messageID Snowflake, emoji Emoji) error + func (c *Client) Reactions(ctx context.Context, channelID, messageID Snowflake, emoji Emoji, ...) ([]User, error) + func (c *Client) RegisterRoleConnectionMetadata(ctx context.Context, appID Snowflake, records []RoleConnectionMetadata) ([]RoleConnectionMetadata, error) + func (c *Client) RemoveBan(ctx context.Context, guildID, userID Snowflake, reason string) error + func (c *Client) RemoveGroupDMRecipient(ctx context.Context, channelID, userID Snowflake) error + func (c *Client) RemoveInviteTargetUser(ctx context.Context, code string, userID Snowflake) error + func (c *Client) RemoveLobbyMember(ctx context.Context, lobbyID, userID Snowflake) error + func (c *Client) RemoveMemberRole(ctx context.Context, guildID, userID, roleID Snowflake, reason string) error + func (c *Client) RemoveThreadMember(ctx context.Context, threadID, userID Snowflake) error + func (c *Client) RemoveUserReaction(ctx context.Context, channelID, messageID, userID Snowflake, emoji Emoji) error + func (c *Client) ReorderChannels(ctx context.Context, guildID Snowflake, positions []ChannelPosition, ...) error + func (c *Client) ReorderRoles(ctx context.Context, guildID Snowflake, positions []RolePosition, ...) ([]Role, error) + func (c *Client) Reply(ctx context.Context, channelID, messageID Snowflake, content string) (*Message, error) + func (c *Client) Request(ctx context.Context, req RESTRequest, out any) error + func (c *Client) RequestAllMembers(ctx context.Context, guildID Snowflake, nonce string) error + func (c *Client) RequestChannelInfo(ctx context.Context, guildID Snowflake, fields ...ChannelInfoField) error + func (c *Client) RequestMembers(ctx context.Context, req MemberRequest) error + func (c *Client) RequestRaw(ctx context.Context, req RESTRequest) ([]byte, error) + func (c *Client) RequestSoundboardSounds(ctx context.Context, guildIDs ...Snowflake) error + func (c *Client) ResolveJoinRequest(ctx context.Context, guildID, requestID Snowflake, ...) error + func (c *Client) Role(ctx context.Context, guildID, roleID Snowflake) (*Role, error) + func (c *Client) RoleConnectionMetadataRecords(ctx context.Context, appID Snowflake) ([]RoleConnectionMetadata, error) + func (c *Client) RoleMemberCounts(ctx context.Context, guildID Snowflake) (map[Snowflake]int, error) + func (c *Client) Roles(ctx context.Context, guildID Snowflake) ([]Role, error) + func (c *Client) Run() error + func (c *Client) RunContext(ctx context.Context) error + func (c *Client) SKUs(ctx context.Context, appID Snowflake) ([]SKU, error) + func (c *Client) ScheduledEvent(ctx context.Context, guildID, eventID Snowflake, withUserCount bool) (*ScheduledEvent, error) + func (c *Client) ScheduledEventExceptionUsers(ctx context.Context, guildID, eventID, exceptionID Snowflake, ...) ([]ScheduledEventUser, error) + func (c *Client) ScheduledEventUserCounts(ctx context.Context, guildID, eventID Snowflake) (map[string]int, error) + func (c *Client) ScheduledEventUsers(ctx context.Context, guildID, eventID Snowflake, limit int, withMember bool) ([]ScheduledEventUser, error) + func (c *Client) ScheduledEvents(ctx context.Context, guildID Snowflake, withUserCount bool) ([]ScheduledEvent, error) + func (c *Client) SearchGuildMessages(ctx context.Context, guildID Snowflake, params url.Values) (*MessageSearchResult, error) + func (c *Client) SearchMembers(ctx context.Context, guildID Snowflake, name string, limit int) ([]Member, error) + func (c *Client) SearchThreads(ctx context.Context, channelID Snowflake, params url.Values) (*ThreadSearchResult, error) + func (c *Client) Self() *User + func (c *Client) Send(ctx context.Context, channelID Snowflake, content string) (*Message, error) + func (c *Client) SendComplex(ctx context.Context, channelID Snowflake, data SendData) (*Message, error) + func (c *Client) SendDM(ctx context.Context, userID Snowflake, content string) (*Message, error) + func (c *Client) SendFiles(ctx context.Context, channelID Snowflake, data SendData, files ...File) (*Message, error) + func (c *Client) SendGateway(ctx context.Context, op Opcode, data any) error + func (c *Client) SendGatewayRaw(ctx context.Context, frame []byte) error + func (c *Client) SendGuildGateway(ctx context.Context, guildID Snowflake, op Opcode, data any) error + func (c *Client) SendGuildGatewayRaw(ctx context.Context, guildID Snowflake, frame []byte) error + func (c *Client) SendSoundboardSound(ctx context.Context, channelID, soundID, sourceGuildID Snowflake) error + func (c *Client) SetActivity(ctx context.Context, status Status, activity Activity) error + func (c *Client) SetApplicationCommands(ctx context.Context, appID Snowflake, cmds []ApplicationCommand) ([]ApplicationCommand, error) + func (c *Client) SetCurrentVoiceState(ctx context.Context, guildID, channelID Snowflake, suppress bool, ...) error + func (c *Client) SetGuildCommandPermissions(ctx context.Context, bearerToken string, appID, guildID, commandID Snowflake, ...) (*GuildCommandPermissions, error) + func (c *Client) SetGuildCommands(ctx context.Context, appID, guildID Snowflake, cmds []ApplicationCommand) ([]ApplicationCommand, error) + func (c *Client) SetIdentityProfile(ctx context.Context, appID, userID Snowflake, providerIssuedUserID string, ...) (*IdentityProfile, error) + func (c *Client) SetIncidentActions(ctx context.Context, guildID Snowflake, ...) error + func (c *Client) SetInviteTargetUsers(ctx context.Context, code string, userIDs []Snowflake) error + func (c *Client) SetNickname(ctx context.Context, guildID Snowflake, nick string) error + func (c *Client) SetOnboarding(ctx context.Context, guildID Snowflake, o GuildOnboarding, reason string) (*GuildOnboarding, error) + func (c *Client) SetPermissionOverwrite(ctx context.Context, channelID, overwriteID Snowflake, allow, deny Permissions, ...) error + func (c *Client) SetStatus(ctx context.Context, status Status) error + func (c *Client) SetVoiceState(ctx context.Context, guildID, userID, channelID Snowflake, suppress bool) error + func (c *Client) SetVoiceStatus(ctx context.Context, channelID Snowflake, status string) error + func (c *Client) ShardCount() int + func (c *Client) ShardIDForGuild(guildID Snowflake) int + func (c *Client) ShardStatuses() []ShardStatus + func (c *Client) Slash(name, description string, fn SlashFunc, options ...CommandOption) + func (c *Client) SlashCommand(cmd ApplicationCommand, fn SlashFunc) + func (c *Client) SlashDefinitions() []ApplicationCommand + func (c *Client) Social(accessToken string) *SocialClient + func (c *Client) StageInstance(ctx context.Context, channelID Snowflake) (*StageInstance, error) + func (c *Client) StartThread(ctx context.Context, channelID Snowflake, params ThreadParams, reason string) (*Channel, error) + func (c *Client) StartThreadFromMessage(ctx context.Context, channelID, messageID Snowflake, params ThreadParams, ...) (*Channel, error) + func (c *Client) Sticker(ctx context.Context, stickerID Snowflake) (*Sticker, error) + func (c *Client) StickerPack(ctx context.Context, packID Snowflake) (*StickerPack, error) + func (c *Client) StickerPacks(ctx context.Context) ([]StickerPack, error) + func (c *Client) Subscription(ctx context.Context, skuID, subscriptionID Snowflake) (*Subscription, error) + func (c *Client) Subscriptions(ctx context.Context, skuID Snowflake, q SubscriptionsQuery) ([]Subscription, error) + func (c *Client) SyncCommands(ctx context.Context, guildID Snowflake) error + func (c *Client) SyncGuildTemplate(ctx context.Context, guildID Snowflake, code string) (*GuildTemplate, error) + func (c *Client) ThreadMember(ctx context.Context, threadID, userID Snowflake, withMember bool) (*ThreadMember, error) + func (c *Client) ThreadMembers(ctx context.Context, threadID Snowflake, withMember bool) ([]ThreadMember, error) + func (c *Client) Timeout(ctx context.Context, guildID, userID Snowflake, until time.Time, reason string) (*Member, error) + func (c *Client) Typing(ctx context.Context, channelID Snowflake) error + func (c *Client) UnmergeBotProvisionalAccount(ctx context.Context, externalUserID string) error + func (c *Client) UnmergeProvisionalAccount(ctx context.Context, credentials ProvisionalCredentials) error + func (c *Client) UnpinMessage(ctx context.Context, channelID, messageID Snowflake, reason string) error + func (c *Client) UnpinMessageV2(ctx context.Context, channelID, messageID Snowflake, reason string) error + func (c *Client) Unreact(ctx context.Context, channelID, messageID Snowflake, emoji Emoji) error + func (c *Client) UpdateDirectMessageModeration(ctx context.Context, user1, user2, messageID Snowflake, ...) error + func (c *Client) UpdateLobbyMessageModeration(ctx context.Context, lobbyID, messageID Snowflake, metadata map[string]string) error + func (c *Client) UpdatePresence(ctx context.Context, p Presence) error + func (c *Client) UpdateUserRoleConnection(ctx context.Context, bearerToken string, appID Snowflake, conn RoleConnection) (*RoleConnection, error) + func (c *Client) UpdateWidgetConfig(ctx context.Context, appID Snowflake, configID string, ...) (*WidgetConfig, error) + func (c *Client) UploadActivityAttachment(ctx context.Context, appID Snowflake, file File) (*AttachmentUpload, error) + func (c *Client) User(ctx context.Context, userID Snowflake) (*User, error) + func (c *Client) UserApplicationIdentities(ctx context.Context, userID, appID Snowflake) ([]ApplicationIdentity, error) + func (c *Client) UserConnections(ctx context.Context) ([]Connection, error) + func (c *Client) UserEntitlements(ctx context.Context, bearerToken string, appID Snowflake) ([]Entitlement, error) + func (c *Client) UserInfo(ctx context.Context, bearerToken string) (*OpenIDUserInfo, error) + func (c *Client) UserRoleConnection(ctx context.Context, bearerToken string, appID Snowflake) (*RoleConnection, error) + func (c *Client) VanityURL(ctx context.Context, guildID Snowflake) (*VanityURL, error) + func (c *Client) VoiceRegions(ctx context.Context) ([]VoiceRegion, error) + func (c *Client) VoiceStateOf(ctx context.Context, guildID, userID Snowflake) (*VoiceState, error) + func (c *Client) WaitReady(ctx context.Context) error + func (c *Client) Webhook(ctx context.Context, webhookID Snowflake) (*Webhook, error) + func (c *Client) WebhookMessageByID(ctx context.Context, webhookID Snowflake, token string, messageID Snowflake) (*Message, error) + func (c *Client) WebhookWithToken(ctx context.Context, webhookID Snowflake, token string) (*Webhook, error) + func (c *Client) WelcomeScreen(ctx context.Context, guildID Snowflake) (*WelcomeScreen, error) + func (c *Client) WidgetConfigs(ctx context.Context, appID Snowflake) ([]WidgetConfig, error) + func (c *Client) WidgetSettings(ctx context.Context, guildID Snowflake) (*GuildWidgetSettings, error) + type ClientIdentity struct + Browser string + Device string + OS string + UserAgent string + type CloseCode int + const CloseAlreadyAuthenticated + const CloseAuthenticationFailed + const CloseDecodeError + const CloseDisallowedIntents + const CloseInvalidAPIVersion + const CloseInvalidIntents + const CloseInvalidSeq + const CloseInvalidShard + const CloseNotAuthenticated + const CloseRateLimited + const CloseSessionTimedOut + const CloseShardingRequired + const CloseUnknownError + const CloseUnknownOpcode + func (c CloseCode) Fatal() bool + func (c CloseCode) Resumable() bool + func (c CloseCode) String() string + type CommandChoice struct + Name string + NameLocalizations map[string]string + NameLocalized string + Value any + type CommandFunc func(m *MessageCreate, args []string) + type CommandOption struct + Autocomplete bool + ChannelTypes []ChannelType + Choices []CommandChoice + Description string + DescriptionLocalizations map[string]string + DescriptionLocalized string + MaxLength *int + MaxValue *float64 + MinLength *int + MinValue *float64 + Name string + NameLocalizations map[string]string + NameLocalized string + Options []CommandOption + Required bool + Type OptionType + func BoolOption(name, description string, required bool) CommandOption + func ChannelOption(name, description string, required bool) CommandOption + func IntOption(name, description string, required bool) CommandOption + func RoleOption(name, description string, required bool) CommandOption + func StringOption(name, description string, required bool) CommandOption + func UserOption(name, description string, required bool) CommandOption + type CommandPermission struct + ID Snowflake + Permission bool + Type int + type Component struct + AccentColor *int + Accessory *Component + ChannelTypes []ChannelType + Component *Component + Components []Component + Content string + CustomID string + Default *bool + DefaultValues []SelectDefaultValue + Description string + Disabled bool + Divider *bool + Emoji *Emoji + File *UnfurledMedia + FileTypes []string + ID int + Items []MediaGalleryItem + Label string + MaxLength int + MaxValues int + Media *UnfurledMedia + MinLength *int + MinValues *int + Name string + Options []SelectOption + Placeholder string + Required *bool + SKUID Snowflake + Size int + Spacing SeparatorSpacing + Spoiler bool + Style ButtonStyle + Type ComponentType + URL string + Value any + Values []string + func AccentContainer(color int, components ...Component) Component + func ActionRow(components ...Component) Component + func Button(style ButtonStyle, label, customID string) Component + func Checkbox(customID string, checked bool) Component + func CheckboxGroup(customID string, options ...SelectOption) Component + func Container(components ...Component) Component + func EntitySelect(kind ComponentType, customID string) Component + func FileDisplay(filename string) Component + func FileUpload(customID string, required bool) Component + func Label(label, description string, input Component) Component + func LinkButton(label, url string) Component + func MediaGallery(items ...MediaGalleryItem) Component + func PremiumButton(skuID Snowflake) Component + func RadioGroup(customID string, options ...SelectOption) Component + func Section(accessory Component, text ...Component) Component + func Separator(divider bool, spacing SeparatorSpacing) Component + func StringSelect(customID string, options ...SelectOption) Component + func TextDisplay(content string) Component + func TextInput(style TextInputStyle, customID, placeholder string, required bool) Component + func Thumbnail(url, description string) Component + func (c Component) BoolValue() (bool, bool) + func (c Component) SelectedValues() []string + func (c Component) StringValue() (string, bool) + type ComponentType int + const ComponentActionRow + const ComponentButton + const ComponentChannelSelect + const ComponentCheckbox + const ComponentCheckboxGroup + const ComponentContainer + const ComponentFile + const ComponentFileUpload + const ComponentLabel + const ComponentMediaGallery + const ComponentMentionableSelect + const ComponentRadioGroup + const ComponentRoleSelect + const ComponentSection + const ComponentSeparator + const ComponentStringSelect + const ComponentTextDisplay + const ComponentTextInput + const ComponentThumbnail + const ComponentUserSelect + type Connect struct + ShardID int + func (e *Connect) Client() *Client + type Connection struct + FriendSync bool + ID string + Name string + Revoked bool + ShowActivity bool + Type string + Verified bool + Visibility int + type CurrentApplication struct + Description string + ID Snowflake + Icon string + Name string + Owner *User + Team *AppTeam + func (a *CurrentApplication) HumanOwnerID() Snowflake + type CurrentUserGuildsQuery struct + After Snowflake + Before Snowflake + Limit int + WithCounts bool + type Disconnect struct + ShardID int + func (e *Disconnect) Client() *Client + type DynamicField struct + Name string + Type DynamicFieldType + Value any + func MediaField(name, url string) DynamicField + func NumberField(name string, value float64) DynamicField + func StringField(name, value string) DynamicField + type DynamicFieldType int + const DynamicMedia + const DynamicNumber + const DynamicString + type Embed struct + Author *EmbedAuthor + Color int + Description string + Fields []EmbedField + Footer *EmbedFooter + Image *EmbedMedia + Provider *EmbedProvider + Thumbnail *EmbedMedia + Timestamp *time.Time + Title string + Type string + URL string + Video *EmbedMedia + func (e *Embed) AddField(name, value string, inline bool) *Embed + func (e *Embed) SetAuthor(name, url, iconURL string) *Embed + func (e *Embed) SetFooter(text, iconURL string) *Embed + func (e *Embed) SetImage(url string) *Embed + func (e *Embed) SetThumbnail(url string) *Embed + type EmbedAuthor struct + IconURL string + Name string + URL string + type EmbedField struct + Inline bool + Name string + Value string + type EmbedFooter struct + IconURL string + Text string + type EmbedMedia struct + Height int + ProxyURL string + URL string + Width int + type EmbedProvider struct + Name string + URL string + type Emoji struct + Animated bool + ID Snowflake + Name string + func (e Emoji) APIFormat() string + type Entitlement struct + ApplicationID Snowflake + Consumed bool + Deleted bool + EndsAt *time.Time + FulfilledAt *time.Time + FulfillmentStatus int + GifterUserID Snowflake + GuildID Snowflake + ID Snowflake + ParentID Snowflake + SKUID Snowflake + StartsAt *time.Time + SubscriptionID Snowflake + Type EntitlementType + UserID Snowflake + type EntitlementCreate struct + func (e *EntitlementCreate) Client() *Client + type EntitlementDelete struct + func (e *EntitlementDelete) Client() *Client + type EntitlementType int + const EntitlementApplicationSubscription + const EntitlementDeveloperGift + const EntitlementFreePurchase + const EntitlementPremiumPurchase + const EntitlementPremiumSubscription + const EntitlementPurchase + const EntitlementTestModePurchase + const EntitlementUserGift + type EntitlementUpdate struct + func (e *EntitlementUpdate) Client() *Client + type EntitlementsQuery struct + After Snowflake + Before Snowflake + ExcludeEnded bool + GuildID Snowflake + IncludeDeleted bool + Limit int + SKUIDs []Snowflake + UserID Snowflake + type EntryPointHandlerType int + const EntryPointAppHandler + const EntryPointDiscordLaunchActivity + type Event interface + type ExternalAuthType string + const ExternalAuthAppleIDToken + const ExternalAuthDiscordBotAccessToken + const ExternalAuthEpicAccessToken + const ExternalAuthEpicIDToken + const ExternalAuthOIDC + const ExternalAuthPlayStationNetworkIDToken + const ExternalAuthSteamSessionTicket + const ExternalAuthUnityIDToken + type FFmpegOpusProvider struct + func NewFFmpegOpusProvider(ctx context.Context, path string) (*FFmpegOpusProvider, error) + func (p *FFmpegOpusProvider) Close() + func (p *FFmpegOpusProvider) ProvideOpusFrame() ([]byte, error) + func (p *FFmpegOpusProvider) StarlogPlayback() StarlogPlayback + func (p *FFmpegOpusProvider) Wait() error + type FatalError struct + Code CloseCode + Reason string + func (e *FatalError) Error() string + type FieldError struct + Code string + Message string + Path string + type File struct + ContentType string + Data io.Reader + Description string + Name string + func FileFromBytes(name string, data []byte) File + func FileFromPath(path string) (File, error) + type ForumReaction struct + EmojiID Snowflake + EmojiName string + type ForumTag struct + EmojiID Snowflake + EmojiName string + ID Snowflake + Moderated bool + Name string + type GatewayInfo struct + SessionStartLimit struct{ ... } + Shards int + URL string + type Guard struct + func NewGuard(options ...GuardOption) *Guard + func (g *Guard) Measure(feature string, implementation GuardImplementation, fn func() error) error + func (g *Guard) Observe(feature string, implementation GuardImplementation, duration time.Duration, ...) + func (g *Guard) Report() GuardReport + type GuardAdvice struct + Checks uint64 + Feature string + Mismatches uint64 + Recommendation string + type GuardImplementation string + const GuardAutomatic + const GuardManual + type GuardMetric struct + Average time.Duration + Calls uint64 + Errors uint64 + Feature string + Implementation GuardImplementation + Maximum time.Duration + Minimum time.Duration + P50 time.Duration + P95 time.Duration + Total time.Duration + type GuardOption func(*Guard) + func WithGuardMaxFeatures(maximum int) GuardOption + type GuardReport struct + Advice []GuardAdvice + DroppedSamples uint64 + Metrics []GuardMetric + func (r GuardReport) String() string + type Guild struct + AFKChannelID Snowflake + AFKTimeout int + Banner string + Channels []Channel + DefaultMessageNotifications int + Description string + Emojis []GuildEmoji + ExplicitContentFilter int + Features []string + GuildScheduledEvents []ScheduledEvent + ID Snowflake + Icon string + JoinedAt time.Time + Large bool + MFALevel int + MemberCount int + Members []Member + NSFWLevel int + Name string + OwnerID Snowflake + Permissions Permissions + PreferredLocale string + PremiumSubscriptionCount int + PremiumTier int + Presences []PresenceUpdate + Roles []Role + RulesChannelID Snowflake + SoundboardSounds []SoundboardSound + Splash string + StageInstances []StageInstance + Stickers []Sticker + SystemChannelID Snowflake + Threads []Channel + Unavailable bool + VerificationLevel int + VoiceStates []VoiceState + func (g *Guild) IconURL(size int) string + func (g *Guild) Role(id Snowflake) *Role + type GuildAuditLogEntryCreate struct + GuildID Snowflake + func (e *GuildAuditLogEntryCreate) Client() *Client + type GuildBanAdd struct + GuildID Snowflake + User *User + func (e *GuildBanAdd) Client() *Client + type GuildBanRemove struct + GuildID Snowflake + User *User + func (e *GuildBanRemove) Client() *Client + type GuildCommandPermissions struct + ApplicationID Snowflake + GuildID Snowflake + ID Snowflake + Permissions []CommandPermission + type GuildCreate struct + func (e *GuildCreate) Client() *Client + type GuildDelete struct + BeforeDelete *Guild + ID Snowflake + Unavailable bool + func (e *GuildDelete) Client() *Client + type GuildEmoji struct + Animated bool + Available bool + ID Snowflake + Managed bool + Name string + RequireColons bool + Roles []Snowflake + User *User + type GuildEmojisUpdate struct + BeforeUpdate []GuildEmoji + Emojis []GuildEmoji + GuildID Snowflake + func (e *GuildEmojisUpdate) Client() *Client + type GuildIntegrationsUpdate struct + GuildID Snowflake + func (e *GuildIntegrationsUpdate) Client() *Client + type GuildJoinRequest struct + CreatedAt string + GuildID Snowflake + ID Snowflake + RejectionReason string + Status string + User *User + UserID Snowflake + type GuildMemberAdd struct + GuildID Snowflake + func (e *GuildMemberAdd) Client() *Client + type GuildMemberRemove struct + BeforeDelete *Member + GuildID Snowflake + User *User + func (e *GuildMemberRemove) Client() *Client + type GuildMemberUpdate struct + BeforeUpdate *Member + GuildID Snowflake + JoinedAt *time.Time + Nick string + Roles []Snowflake + User *User + func (e *GuildMemberUpdate) Client() *Client + type GuildMembersChunk struct + ChunkCount int + ChunkIndex int + GuildID Snowflake + Members []Member + Nonce string + NotFound []Snowflake + Presences []PresenceUpdate + func (e *GuildMembersChunk) Client() *Client + type GuildOnboarding struct + DefaultChannelIDs []Snowflake + Enabled bool + GuildID Snowflake + Mode int + Prompts []OnboardingPrompt + type GuildParams struct + AFKChannelID *Snowflake + AFKTimeout *int + Banner *string + DefaultMessageNotifications *int + Description *string + ExplicitContentFilter *int + Features *[]string + Icon *string + Name *string + OwnerID *Snowflake + PreferredLocale *string + PremiumProgressBarEnabled *bool + PublicUpdatesChannelID *Snowflake + RulesChannelID *Snowflake + Splash *string + SystemChannelID *Snowflake + VerificationLevel *int + type GuildPreview struct + ApproximateMemberCount int + ApproximatePresenceCount int + Description string + DiscoverySplash string + Emojis []GuildEmoji + Features []string + ID Snowflake + Icon string + Name string + Splash string + type GuildProductPurchase struct + ListingID Snowflake + ProductName string + type GuildRoleCreate struct + GuildID Snowflake + Role *Role + func (e *GuildRoleCreate) Client() *Client + type GuildRoleDelete struct + BeforeDelete *Role + GuildID Snowflake + RoleID Snowflake + func (e *GuildRoleDelete) Client() *Client + type GuildRoleUpdate struct + BeforeUpdate *Role + GuildID Snowflake + Role *Role + func (e *GuildRoleUpdate) Client() *Client + type GuildScheduledEventCreate struct + func (e *GuildScheduledEventCreate) Client() *Client + type GuildScheduledEventDelete struct + func (e *GuildScheduledEventDelete) Client() *Client + type GuildScheduledEventUpdate struct + func (e *GuildScheduledEventUpdate) Client() *Client + type GuildScheduledEventUserAdd struct + GuildID Snowflake + GuildScheduledEventID Snowflake + UserID Snowflake + func (e *GuildScheduledEventUserAdd) Client() *Client + type GuildScheduledEventUserRemove struct + GuildID Snowflake + GuildScheduledEventID Snowflake + UserID Snowflake + func (e *GuildScheduledEventUserRemove) Client() *Client + type GuildSoundboardSoundCreate struct + func (e *GuildSoundboardSoundCreate) Client() *Client + type GuildSoundboardSoundDelete struct + GuildID Snowflake + SoundID Snowflake + func (e *GuildSoundboardSoundDelete) Client() *Client + type GuildSoundboardSoundUpdate struct + func (e *GuildSoundboardSoundUpdate) Client() *Client + type GuildSoundboardSoundsUpdate struct + GuildID Snowflake + SoundboardSounds []SoundboardSound + func (e *GuildSoundboardSoundsUpdate) Client() *Client + type GuildStickersUpdate struct + BeforeUpdate []Sticker + GuildID Snowflake + Stickers []Sticker + func (e *GuildStickersUpdate) Client() *Client + type GuildTemplate struct + Code string + CreatedAt time.Time + Creator *User + CreatorID Snowflake + Description string + IsDirty bool + Name string + SerializedSourceGuild *Guild + SourceGuildID Snowflake + UpdatedAt time.Time + UsageCount int + type GuildUpdate struct + BeforeUpdate *Guild + func (e *GuildUpdate) Client() *Client + type GuildWidgetJSON struct + Channels []Channel + ID Snowflake + InstantInvite string + Members []User + Name string + PresenceCount int + type GuildWidgetSettings struct + ChannelID Snowflake + Enabled bool + type IdentityProfile struct + Data *ProfileData + Metadata map[string]any + Username string + type Integration struct + Account struct{ ... } + Enabled bool + ID Snowflake + Name string + Type string + User *User + type IntegrationCreate struct + GuildID Snowflake + func (e *IntegrationCreate) Client() *Client + type IntegrationDelete struct + ApplicationID Snowflake + GuildID Snowflake + ID Snowflake + func (e *IntegrationDelete) Client() *Client + type IntegrationUpdate struct + GuildID Snowflake + func (e *IntegrationUpdate) Client() *Client + type Intent uint64 + const IntentAutoModerationConfiguration + const IntentAutoModerationExecution + const IntentDirectMessagePolls + const IntentDirectMessageReactions + const IntentDirectMessageTyping + const IntentDirectMessages + const IntentGuildExpressions + const IntentGuildIntegrations + const IntentGuildInvites + const IntentGuildMembers + const IntentGuildMessagePolls + const IntentGuildMessageReactions + const IntentGuildMessageTyping + const IntentGuildMessages + const IntentGuildModeration + const IntentGuildPresences + const IntentGuildScheduledEvents + const IntentGuildVoiceStates + const IntentGuildWebhooks + const IntentGuilds + const IntentMessageContent + const IntentsNone + func (i Intent) Has(other Intent) bool + func (i Intent) HasAny(others ...Intent) bool + type Interaction struct + AppPermissions Permissions + ApplicationID Snowflake + AttachmentSizeLimit int + AuthorizingIntegrationOwners map[string]Snowflake + Channel *Channel + ChannelID Snowflake + Context InteractionContextType + Data InteractionData + Entitlements []Entitlement + Guild *Guild + GuildID Snowflake + GuildLocale string + ID Snowflake + Locale string + Member *Member + Message *Message + Token string + Type InteractionType + User *User + Version int + func (i *Interaction) AuthorizingOwner(kind ApplicationIntegrationType) (Snowflake, bool) + func (i *Interaction) Invoker() *User + type InteractionContextType int + const InteractionContextBotDM + const InteractionContextGuild + const InteractionContextPrivateChannel + type InteractionCreate struct + func (e *InteractionCreate) Client() *Client + func (i *InteractionCreate) Autocomplete(choices ...CommandChoice) error + func (i *InteractionCreate) ChannelOption(name string) *Channel + func (i *InteractionCreate) Defer(ephemeral bool) error + func (i *InteractionCreate) DeleteFollowup(ctx context.Context, messageID Snowflake) error + func (i *InteractionCreate) DeleteResponse(ctx context.Context) error + func (i *InteractionCreate) EditFollowup(ctx context.Context, messageID Snowflake, data InteractionResponseData) (*Message, error) + func (i *InteractionCreate) EditFollowupFiles(ctx context.Context, messageID Snowflake, data InteractionResponseData, ...) (*Message, error) + func (i *InteractionCreate) EditResponse(ctx context.Context, data InteractionResponseData) (*Message, error) + func (i *InteractionCreate) EditResponseFiles(ctx context.Context, data InteractionResponseData, files ...File) (*Message, error) + func (i *InteractionCreate) Followup(ctx context.Context, data InteractionResponseData) (*Message, error) + func (i *InteractionCreate) FollowupFiles(ctx context.Context, data InteractionResponseData, files ...File) (*Message, error) + func (i *InteractionCreate) FollowupMessage(ctx context.Context, messageID Snowflake) (*Message, error) + func (i *InteractionCreate) Modal(customID, title string, components ...Component) error + func (i *InteractionCreate) Reply(content string) error + func (i *InteractionCreate) ReplyComplex(data InteractionResponseData) error + func (i *InteractionCreate) ReplyEphemeral(content string) error + func (i *InteractionCreate) ReplyFiles(data InteractionResponseData, files ...File) error + func (i *InteractionCreate) Respond(ctx context.Context, resp InteractionResponse) error + func (i *InteractionCreate) RespondFiles(ctx context.Context, resp InteractionResponse, files ...File) error + func (i *InteractionCreate) Response(ctx context.Context) (*Message, error) + func (i *InteractionCreate) RoleOption(name string) *Role + func (i *InteractionCreate) UpdateMessage(data InteractionResponseData) error + func (i *InteractionCreate) UpdateMessageFiles(data InteractionResponseData, files ...File) error + func (i *InteractionCreate) UserOption(name string) *User + type InteractionData struct + ComponentType ComponentType + Components []Component + CustomID string + GuildID Snowflake + ID Snowflake + Name string + Options []InteractionOption + Resolved *ResolvedData + TargetID Snowflake + Type int + Values []string + func (d *InteractionData) Component(customID string) *Component + func (d *InteractionData) Option(name string) *InteractionOption + func (d InteractionData) ComponentID() int + type InteractionOption struct + Focused bool + Name string + Options []InteractionOption + Type OptionType + Value jsontext.Value + func (o *InteractionOption) Bool() bool + func (o *InteractionOption) Float() float64 + func (o *InteractionOption) Int() int64 + func (o *InteractionOption) Snowflake() Snowflake + func (o *InteractionOption) String() string + type InteractionResponse struct + Data *InteractionResponseData + Type CallbackType + type InteractionResponseData struct + AllowedMentions *AllowedMentions + Attachments []Attachment + Choices []CommandChoice + Components []Component + Content string + CustomID string + Embeds []Embed + Flags MessageFlags + Poll *Poll + TTS bool + Title string + type InteractionType int + const InteractionApplicationCommand + const InteractionCommandAutocomplete + const InteractionMessageComponent + const InteractionModalSubmit + const InteractionPing + type Invite struct + ApproximateMemberCount int + ApproximatePresenceCount int + Channel *Channel + Code string + CreatedAt string + ExpiresAt *string + Guild *Guild + GuildID Snowflake + Inviter *User + MaxAge int + MaxUses int + TargetType int + TargetUser *User + Temporary bool + Uses int + type InviteCreate struct + ChannelID Snowflake + Code string + CreatedAt time.Time + GuildID Snowflake + Inviter *User + MaxAge int + MaxUses int + TargetType int + TargetUser *User + Temporary bool + Uses int + func (e *InviteCreate) Client() *Client + type InviteDelete struct + ChannelID Snowflake + Code string + GuildID Snowflake + func (e *InviteDelete) Client() *Client + type InviteParams struct + MaxAge *int + MaxUses *int + Temporary *bool + Unique *bool + type InviteTargetUser struct + User *User + UserID Snowflake + type InviteTargetUsersJob struct + JobID string + Progress int + Status string + type Lobby struct + ApplicationID Snowflake + Flags LobbyFlags + ID Snowflake + LinkedChannel *Channel + Members []LobbyMember + Metadata map[string]string + OverrideEventWebhooksURL string + type LobbyCreate struct + Flags LobbyFlags + IdleTimeoutSeconds int + Members []LobbyMemberInput + Metadata map[string]string + OverrideEventWebhooksURL string + type LobbyEdit struct + ClearMetadata bool + ClearOverrideEventWebhooksURL bool + Flags *LobbyFlags + IdleTimeoutSeconds *int + Members *[]LobbyMemberInput + Metadata *map[string]string + OverrideEventWebhooksURL *string + type LobbyFlags uint32 + type LobbyJoin struct + Flags LobbyFlags + IdleTimeoutSeconds int + LobbyMetadata map[string]string + MemberMetadata map[string]string + Secret string + type LobbyMember struct + AdditionalName string + Flags LobbyMemberFlags + ID Snowflake + Metadata map[string]string + func (m LobbyMember) CanLinkChannel() bool + type LobbyMemberFlags int + const LobbyMemberCanLinkChannel + type LobbyMemberInput struct + AdditionalName string + ClearAdditionalName bool + Flags LobbyMemberFlags + ID Snowflake + Metadata map[string]string + Remove bool + type LobbyMessage struct + ApplicationID Snowflake + Author *User + ChannelID Snowflake + Content string + Flags MessageFlags + ID Snowflake + LobbyID Snowflake + LobbyMember *MessageLobbyMember + Metadata map[string]string + ModerationMetadata map[string]string + Type MessageType + type LobbyMessageData struct + AllowedMentions *AllowedMentions + Attachments []Attachment + Components []Component + Content string + Embeds []Embed + EnforceNonce bool + Flags MessageFlags + MessageRef *MessageRef + Metadata map[string]string + Nonce any + Poll *Poll + SharedClientTheme *SharedClientTheme + StickerIDs []Snowflake + TTS bool + type Media struct + URL string + type MediaGalleryItem struct + Description string + Media UnfurledMedia + Spoiler bool + func GalleryItem(url, description string) MediaGalleryItem + type Member struct + Avatar string + CommunicationDisabledUntil *time.Time + Deaf bool + Flags int + JoinedAt time.Time + Mute bool + Nick string + Pending bool + Permissions Permissions + PremiumSince *time.Time + Roles []Snowflake + User *User + func (m *Member) DisplayName() string + func (m *Member) TimedOut() bool + type MemberRequest struct + GuildID Snowflake + Limit int + Nonce string + Presences bool + Query *string + UserIDs []Snowflake + type MembersQuery struct + After Snowflake + Limit int + type Message struct + Activity *MessageActivity + Application *MessageApplication + ApplicationID Snowflake + Attachments []Attachment + Author *User + Call *MessageCallInfo + ChannelID Snowflake + Components []Component + Content string + EditedTimestamp *time.Time + Embeds []Embed + Flags MessageFlags + GuildID Snowflake + ID Snowflake + Interaction *MessageInteraction + InteractionMeta *MessageInteractionMetadata + LobbyMember *MessageLobbyMember + Member *Member + MentionChannels []ChannelMention + MentionEveryone bool + MentionRoles []Snowflake + Mentions []User + MessageRef *MessageRef + Nonce any + Pinned bool + Poll *Poll + Position int + PurchaseNotification *PurchaseNotification + Reactions []Reaction + ReferencedMsg *Message + Resolved *ResolvedData + RoleSubscription *RoleSubscriptionData + SharedClientTheme *SharedClientTheme + Snapshots []MessageSnapshot + StickerItems []StickerItem + Stickers []Sticker + TTS bool + Thread *Channel + Timestamp time.Time + Type MessageType + WebhookID Snowflake + type MessageActivity struct + PartyID string + Type MessageActivityType + type MessageActivityType int + const MessageActivityJoin + const MessageActivityJoinRequest + const MessageActivityListen + const MessageActivitySpectate + type MessageApplication struct + Bot *User + CoverImage string + Description string + Flags int + FlagsNew string + ID Snowflake + Icon string + Name string + PrimarySKUID Snowflake + Type int + type MessageCallInfo struct + EndedTimestamp *time.Time + Participants []Snowflake + type MessageCreate struct + func (e *MessageCreate) Client() *Client + func (m *MessageCreate) Delete() error + func (m *MessageCreate) IsFromBot() bool + func (m *MessageCreate) IsFromSelf() bool + func (m *MessageCreate) React(emoji string) error + func (m *MessageCreate) Reply(content string) (*Message, error) + func (m *MessageCreate) ReplyComplex(data SendData) (*Message, error) + func (m *MessageCreate) ReplyFiles(data SendData, files ...File) (*Message, error) + func (m *MessageCreate) Send(content string) (*Message, error) + type MessageDelete struct + BeforeDelete *Message + ChannelID Snowflake + GuildID Snowflake + ID Snowflake + func (e *MessageDelete) Client() *Client + type MessageDeleteBulk struct + BeforeDelete []Message + ChannelID Snowflake + GuildID Snowflake + IDs []Snowflake + func (e *MessageDeleteBulk) Client() *Client + type MessageFlags int + const MessageFlagCrossposted + const MessageFlagEphemeral + const MessageFlagFailedToMentionSomeRolesInThread + const MessageFlagHasThread + const MessageFlagIsComponentsV2 + const MessageFlagIsCrosspost + const MessageFlagIsVoiceMessage + const MessageFlagLoading + const MessageFlagSourceMessageDeleted + const MessageFlagSuppressEmbeds + const MessageFlagSuppressNotifications + const MessageFlagUrgent + type MessageInteraction struct + ID Snowflake + Member *Member + Name string + Type InteractionType + User *User + type MessageInteractionMetadata struct + AuthorizingIntegrationOwners map[string]Snowflake + ID Snowflake + InteractedMessageID Snowflake + OriginalResponseMessageID Snowflake + TargetMessageID Snowflake + TargetUser *User + TriggeringInteractionMetadata *MessageInteractionMetadata + Type InteractionType + User *User + type MessageLobbyMember struct + AdditionalName string + type MessagePin struct + Message *Message + PinnedAt string + type MessagePins struct + HasMore bool + Items []MessagePin + type MessagePollVoteAdd struct + AnswerID int + ChannelID Snowflake + GuildID Snowflake + MessageID Snowflake + UserID Snowflake + func (e *MessagePollVoteAdd) Client() *Client + type MessagePollVoteRemove struct + AnswerID int + ChannelID Snowflake + GuildID Snowflake + MessageID Snowflake + UserID Snowflake + func (e *MessagePollVoteRemove) Client() *Client + type MessageReactionAdd struct + BeforeUpdate *Message + ChannelID Snowflake + Emoji Emoji + GuildID Snowflake + Member *Member + MessageID Snowflake + UserID Snowflake + func (e *MessageReactionAdd) Client() *Client + type MessageReactionRemove struct + BeforeUpdate *Message + ChannelID Snowflake + Emoji Emoji + GuildID Snowflake + MessageID Snowflake + UserID Snowflake + func (e *MessageReactionRemove) Client() *Client + type MessageReactionRemoveAll struct + BeforeUpdate *Message + ChannelID Snowflake + GuildID Snowflake + MessageID Snowflake + func (e *MessageReactionRemoveAll) Client() *Client + type MessageReactionRemoveEmoji struct + BeforeUpdate *Message + ChannelID Snowflake + Emoji Emoji + GuildID Snowflake + MessageID Snowflake + func (e *MessageReactionRemoveEmoji) Client() *Client + type MessageRef struct + ChannelID Snowflake + FailIfNotExists *bool + GuildID Snowflake + MessageID Snowflake + Type MessageReferenceType + type MessageReferenceType int + const MessageReferenceDefault + const MessageReferenceForward + type MessageSearchResult struct + Messages [][]Message + TotalResults int + type MessageSnapshot struct + Message *Message + type MessageType int + const MessageAutoModerationAction + const MessageCall + const MessageChannelFollowAdd + const MessageChannelIconChange + const MessageChannelNameChange + const MessageChannelPinnedMessage + const MessageChatInputCommand + const MessageContextMenuCommand + const MessageDefault + const MessageGuildApplicationPremiumSubscription + const MessageGuildBoost + const MessageGuildBoostTier1 + const MessageGuildBoostTier2 + const MessageGuildBoostTier3 + const MessageGuildDiscoveryDisqualified + const MessageGuildDiscoveryGracePeriodFinalWarning + const MessageGuildDiscoveryGracePeriodInitialWarning + const MessageGuildDiscoveryRequalified + const MessageGuildInviteReminder + const MessageInteractionPremiumUpsell + const MessagePollResult + const MessagePrivateChannelIntegrationAdded + const MessageRecipientAdd + const MessageRecipientRemove + const MessageReply + const MessageRoleSubscriptionPurchase + const MessageStageEnd + const MessageStageSpeaker + const MessageStageStart + const MessageStageTopic + const MessageThreadCreated + const MessageThreadStarterMessage + const MessageUserJoin + type MessageUpdate struct + BeforeUpdate *Message + func (e *MessageUpdate) Client() *Client + type MessagesQuery struct + After Snowflake + Around Snowflake + Before Snowflake + Limit int + type MetadataType int + const MetadataBooleanEqual + const MetadataBooleanNotEqual + const MetadataDateTimeGreaterThanOrEqual + const MetadataDateTimeLessThanOrEqual + const MetadataIntegerEqual + const MetadataIntegerGreaterThanOrEqual + const MetadataIntegerLessThanOrEqual + const MetadataIntegerNotEqual + type ModifyMember struct + ChannelID *Snowflake + CommunicationDisabledUntil **time.Time + Deaf *bool + Flags *int + Mute *bool + Nick *string + Roles *[]Snowflake + type NewMemberWelcome struct + Description string + GuildID Snowflake + NewMemberActions []struct{ ... } + type NewSoundboardSound struct + EmojiID Snowflake + EmojiName string + Name string + Sound string + Volume *float64 + type OAuth2Authorization struct + Application *CurrentApplication + Expires string + Scopes []string + User *User + type OnboardingOption struct + ChannelIDs []Snowflake + Description string + Emoji *Emoji + ID Snowflake + RoleIDs []Snowflake + Title string + type OnboardingPrompt struct + ID Snowflake + InOnboarding bool + Options []OnboardingOption + Required bool + SingleSelect bool + Title string + Type int + type Opcode int + const OpDispatch + const OpHeartbeat + const OpHeartbeatACK + const OpHello + const OpIdentify + const OpInvalidSession + const OpPresenceUpdate + const OpReconnect + const OpRequestChannelInfo + const OpRequestGuildMembers + const OpRequestSoundboardSounds + const OpResume + const OpVoiceStateUpdate + type OpenIDUserInfo struct + Avatar string + Email string + Sub string + Username string + Verified bool + type Option func(*Client) + func WithAsyncEvents(enabled bool) Option + func WithAutoSharding(enabled bool) Option + func WithGatewayCompression(enabled bool) Option + func WithGuard(options ...GuardOption) Option + func WithHTTPClient(h *http.Client) Option + func WithIdentity(id ClientIdentity) Option + func WithIntents(i Intent) Option + func WithLogger(l *slog.Logger) Option + func WithPacing(gap time.Duration) Option + func WithPrefix(prefix string) Option + func WithShard(id, total int) Option + func WithStarlog(log *Starlog) Option + func WithStateCache(config StateConfig) Option + func WithStateMode(mode StateMode) Option + func WithStatus(status Status, activity Activity) Option + func WithUserToken() Option + type OptionType int + const OptionAttachment + const OptionBoolean + const OptionChannel + const OptionInteger + const OptionMentionable + const OptionNumber + const OptionRole + const OptionString + const OptionSubCommand + const OptionSubCommandGroup + const OptionUser + type OpusPacket struct + Opus []byte + SSRC uint32 + Sequence uint16 + Timestamp uint32 + UserID Snowflake + type OpusProvider interface + Close func() + ProvideOpusFrame func() ([]byte, error) + type Overwrite struct + Allow Permissions + Deny Permissions + ID Snowflake + Type int + type Permissions uint64 + const PermissionAddReactions + const PermissionAdministrator + const PermissionAttachFiles + const PermissionBanMembers + const PermissionBypassSlowmode + const PermissionChangeNickname + const PermissionConnect + const PermissionCreateEvents + const PermissionCreateGuildExpressions + const PermissionCreateInstantInvite + const PermissionCreatePrivateThreads + const PermissionCreatePublicThreads + const PermissionDeafenMembers + const PermissionEmbedLinks + const PermissionKickMembers + const PermissionManageChannels + const PermissionManageEvents + const PermissionManageGuild + const PermissionManageGuildExpressions + const PermissionManageMessages + const PermissionManageNicknames + const PermissionManageRoles + const PermissionManageThreads + const PermissionManageWebhooks + const PermissionMentionEveryone + const PermissionModerateMembers + const PermissionMoveMembers + const PermissionMuteMembers + const PermissionPinMessages + const PermissionPrioritySpeaker + const PermissionReadMessageHistory + const PermissionRequestToSpeak + const PermissionSendMessages + const PermissionSendMessagesInThreads + const PermissionSendPolls + const PermissionSendTTSMessages + const PermissionSendVoiceMessages + const PermissionSetVoiceChannelStatus + const PermissionSpeak + const PermissionStream + const PermissionUseApplicationCommands + const PermissionUseEmbeddedActivities + const PermissionUseExternalApps + const PermissionUseExternalEmojis + const PermissionUseExternalSounds + const PermissionUseExternalStickers + const PermissionUseSoundboard + const PermissionUseVAD + const PermissionViewAuditLog + const PermissionViewChannel + const PermissionViewCreatorMonetizationAnalytics + const PermissionViewGuildInsights + func (p Permissions) Add(other Permissions) Permissions + func (p Permissions) Has(other Permissions) bool + func (p Permissions) Remove(other Permissions) Permissions + func (p Permissions) String() string + type Poll struct + AllowMultiselect bool + Answers []PollAnswer + Duration int + Expiry *time.Time + LayoutType PollLayoutType + Question PollMedia + Results *PollResults + func NewPoll(question string, answers ...string) Poll + type PollAnswer struct + AnswerID int + Media PollMedia + type PollAnswerCount struct + Count int + ID int + MeVoted bool + type PollLayoutType int + const PollLayoutDefault + type PollMedia struct + Emoji *Emoji + Text string + type PollResults struct + AnswerCounts []PollAnswerCount + Finalized bool + type PollVotersQuery struct + After Snowflake + Limit int + type Presence struct + AFK bool + Activities []Activity + Since *int64 + Status Status + type PresenceUpdate struct + Activities []Activity + BeforeUpdate *PresenceUpdate + ClientStatus struct{ ... } + GuildID Snowflake + Status string + User *User + func (e *PresenceUpdate) Client() *Client + type PresencesReplace []PresenceUpdate + type PrimaryProfileData struct + CurrentPeriodAssists int + CurrentPeriodDeaths int + CurrentPeriodGames int + CurrentPeriodKills int + CurrentPeriodWins int + FeaturedPlayedCharacter string + FeaturedPlayedCharacterImage *Media + HighestRank string + HighestRankImage *Media + PlaytimeHours float64 + RankImage *Media + RankName string + Season string + TotalAssists int + TotalDeaths int + TotalGames int + TotalKills int + TotalWins int + type ProfileData struct + Dynamic []DynamicField + Primary *PrimaryProfileData + type ProvisionalCredentials struct + ClientID Snowflake + ClientSecret string + ExternalAuthToken string + ExternalAuthType ExternalAuthType + type ProvisionalToken struct + AccessToken string + ExpiresAtS *int64 + ExpiresIn int + IDToken string + RefreshToken string + Scope string + Scopes []string + TokenType string + type PurchaseNotification struct + GuildProductPurchase *GuildProductPurchase + Type int + type RESTRequest struct + Auth string + Base string + Body any + ContentType string + Files []File + Headers http.Header + Method string + NoAuth bool + Path string + RawBody []byte + Reason string + Route string + type RateLimit struct + Global bool + Method string + Path string + RetryAfterSeconds float64 + Route string + func (e *RateLimit) Client() *Client + func (r RateLimit) Wait() time.Duration + type RateLimited struct + Meta struct{ ... } + Opcode Opcode + RetryAfter float64 + func (e *RateLimited) Client() *Client + type RawEvent struct + Client *Client + Data jsontext.Value + Name string + type Reaction struct + BurstColors []string + Count int + CountDetails ReactionCountDetails + Emoji Emoji + Me bool + MeBurst bool + type ReactionCountDetails struct + Burst int + Normal int + type ReactionsQuery struct + After Snowflake + Limit int + Type int + type Ready struct + Application *AppInfo + Guilds []Guild + ResumeGatewayURL string + SessionID string + Shard [2]int + User *User + Version int + func (e *Ready) Client() *Client + type ResolvedData struct + Attachments map[Snowflake]*Attachment + Channels map[Snowflake]*Channel + Members map[Snowflake]*Member + Messages map[Snowflake]*Message + Roles map[Snowflake]*Role + Users map[Snowflake]*User + type Resumed struct + func (e *Resumed) Client() *Client + type Role struct + Color int + Hoist bool + ID Snowflake + Icon string + Managed bool + Mentionable bool + Name string + Permissions Permissions + Position int + func (r *Role) Mention() string + type RoleConnection struct + Metadata map[string]string + PlatformName string + PlatformUsername string + type RoleConnectionMetadata struct + Description string + DescriptionLocalizations map[string]string + Key string + Name string + NameLocalizations map[string]string + Type MetadataType + type RoleParams struct + Color *int + Hoist *bool + Icon *string + Mentionable *bool + Name *string + Permissions *Permissions + UnicodeEmoji *string + type RolePosition struct + ID Snowflake + Position *int + type RoleSubscriptionData struct + IsRenewal bool + RoleSubscriptionListingID Snowflake + TierName string + TotalMonthsSubscribed int + type SKU struct + ApplicationID Snowflake + Flags SKUFlags + ID Snowflake + Name string + Slug string + Type SKUType + type SKUFlags int + const SKUAvailable + const SKUGuildSubscription + const SKUUserSubscription + func (f SKUFlags) Has(flags SKUFlags) bool + type SKUType int + const SKUConsumable + const SKUDurable + const SKUSubscription + const SKUSubscriptionGroup + type ScheduledEvent struct + ChannelID Snowflake + Creator *User + CreatorID Snowflake + Description string + EntityID Snowflake + EntityMetadata ... + EntityType int + GuildID Snowflake + ID Snowflake + Image string + Name string + PrivacyLevel int + ScheduledEndTime *time.Time + ScheduledStartTime time.Time + Status int + UserCount int + type ScheduledEventException struct + EventExceptionID Snowflake + EventID Snowflake + GuildID Snowflake + IsCanceled bool + ScheduledEndTime *time.Time + ScheduledStartTime *time.Time + type ScheduledEventUser struct + GuildScheduledEventID Snowflake + Member *Member + User *User + type SelectDefaultValue struct + ID Snowflake + Type string + type SelectOption struct + Default bool + Description string + Emoji *Emoji + Label string + Value string + type SendData struct + AllowedMentions *AllowedMentions + Components []Component + Content string + Embeds []Embed + EnforceNonce bool + Flags MessageFlags + MessageRef *MessageRef + Nonce any + Poll *Poll + SharedClientTheme *SharedClientTheme + StickerIDs []Snowflake + TTS bool + func ComponentsMessage(components ...Component) SendData + type SeparatorSpacing int + const SeparatorSpacingLarge + const SeparatorSpacingSmall + type ShardStatus struct + Connected bool + Count int + ID int + Latency time.Duration + Resumable bool + Sequence int64 + type SharedClientTheme struct + BackgroundGradientAngle *int + BackgroundGradientPresetID *int + type SlashFunc func(i *InteractionCreate) + type Snowflake uint64 + func MustID(s string) Snowflake + func ParseSnowflake(s string) (Snowflake, error) + func (s *Snowflake) UnmarshalJSON(b []byte) error + func (s *Snowflake) UnmarshalJSONFrom(dec *jsontext.Decoder) error + func (s Snowflake) IsZero() bool + func (s Snowflake) MarshalJSON() ([]byte, error) + func (s Snowflake) MarshalJSONTo(enc *jsontext.Encoder) error + func (s Snowflake) String() string + func (s Snowflake) Time() time.Time + type SocialClient struct + func (s *SocialClient) CreateOrJoinLobby(ctx context.Context, data LobbyJoin) (*Lobby, error) + func (s *SocialClient) LeaveLobby(ctx context.Context, lobbyID Snowflake) error + func (s *SocialClient) LinkLobbyChannel(ctx context.Context, lobbyID, channelID Snowflake) (*Lobby, error) + func (s *SocialClient) LobbyInvite(ctx context.Context, lobbyID Snowflake) (string, error) + func (s *SocialClient) LobbyMessages(ctx context.Context, lobbyID Snowflake, limit int) ([]LobbyMessage, error) + func (s *SocialClient) SendLobbyMessage(ctx context.Context, lobbyID Snowflake, content string) (*LobbyMessage, error) + func (s *SocialClient) SendLobbyMessageComplex(ctx context.Context, lobbyID Snowflake, data LobbyMessageData) (*LobbyMessage, error) + func (s *SocialClient) UnlinkLobbyChannel(ctx context.Context, lobbyID Snowflake) (*Lobby, error) + type SoundboardSound struct + Available bool + EmojiID Snowflake + EmojiName string + GuildID Snowflake + Name string + SoundID Snowflake + User *User + Volume float64 + func (s *SoundboardSound) Emoji() string + type SoundboardSounds struct + GuildID Snowflake + SoundboardSounds []SoundboardSound + func (e *SoundboardSounds) Client() *Client + type StageInstance struct + ChannelID Snowflake + GuildID Snowflake + GuildScheduledEventID Snowflake + ID Snowflake + PrivacyLevel int + Topic string + type StageInstanceCreate struct + func (e *StageInstanceCreate) Client() *Client + type StageInstanceDelete struct + func (e *StageInstanceDelete) Client() *Client + type StageInstanceUpdate struct + func (e *StageInstanceUpdate) Client() *Client + type StarPetVariant uint8 + const StarPetComet + const StarPetNebula + const StarPetNova + type Starlog struct + func NewStarlog(name string, options ...StarlogOption) *Starlog + func (s *Starlog) Active() bool + func (s *Starlog) AddSink(sink *StarlogSink) (remove func()) + func (s *Starlog) Attach(c *Client) + func (s *Starlog) Build(message string, args ...any) + func (s *Starlog) BuildWriter(source string) io.WriteCloser + func (s *Starlog) Close() error + func (s *Starlog) Debug(message string, args ...any) + func (s *Starlog) Error(message string, args ...any) + func (s *Starlog) Errors(output io.Writer, options ...StarlogSinkOption) *StarlogSink + func (s *Starlog) FollowLogs() + func (s *Starlog) FollowPlayback(source StarlogPlaybackSource) + func (s *Starlog) Info(message string, args ...any) + func (s *Starlog) Log(ctx context.Context, level slog.Level, message string, args ...any) + func (s *Starlog) Logger() *slog.Logger + func (s *Starlog) Metrics() StarlogMetrics + func (s *Starlog) Scroll(lines int) + func (s *Starlog) ScrollOffset() int + func (s *Starlog) SetLevel(level slog.Level) + func (s *Starlog) Snapshot() []StarlogEntry + func (s *Starlog) Start(ctx context.Context) bool + func (s *Starlog) Styled(output io.Writer, color int, options ...StarlogSinkOption) *StarlogSink + func (s *Starlog) Warn(message string, args ...any) + func (s *Starlog) Warnings(output io.Writer, options ...StarlogSinkOption) *StarlogSink + func (s *Starlog) Write(p []byte) (int, error) + func (s *Starlog) Writer(level slog.Level, source string) io.WriteCloser + type StarlogColorPolicy uint8 + const StarlogColorAlways + const StarlogColorAuto + const StarlogColorNever + type StarlogEntry struct + Fields []StarlogField + Level slog.Level + Message string + Mood StarlogMood + Shard int + Time time.Time + type StarlogField struct + Key string + Value string + type StarlogFrame []string + type StarlogMetrics struct + CPUPercent float64 + DebugLogs uint64 + ErrorLogs uint64 + Goroutines int + HeapBytes uint64 + InfoLogs uint64 + LogsByShard map[int]uint64 + LogsPerSecond float64 + Shards []ShardStatus + TotalLogs uint64 + Uptime time.Duration + WarnLogs uint64 + type StarlogMood uint8 + const StarlogBuild + const StarlogCalm + const StarlogError + const StarlogWarn + type StarlogOption func(*Starlog) + func StarlogColor(enabled bool) StarlogOption + func StarlogDashboard() StarlogOption + func StarlogHistory(entries int) StarlogOption + func StarlogNoPets() StarlogOption + func StarlogOutput(w io.Writer) StarlogOption + func StarlogRefresh(period time.Duration) StarlogOption + func StarlogStreamArt(enabled bool) StarlogOption + func StarlogStreaming() StarlogOption + func StarlogSystemMedia() StarlogOption + func StarlogTUI(enabled bool) StarlogOption + func StarlogWithPet(pet StarlogPet) StarlogOption + func StarlogWithPets(pets ...StarlogPet) StarlogOption + func StarlogWithPlayback(source StarlogPlaybackSource) StarlogOption + type StarlogPet struct + Build []StarlogFrame + Calm []StarlogFrame + Color int + Error []StarlogFrame + FrameDelay time.Duration + Name string + Picture *StarlogSpriteSheet + Variant string + Warn []StarlogFrame + func NewStarPet(variant StarPetVariant) StarlogPet + type StarlogPlayback struct + Artist string + Duration time.Duration + Playing bool + Position time.Duration + Provider string + Title string + type StarlogPlaybackSource interface + StarlogPlayback func() StarlogPlayback + type StarlogSink struct + func NewStarlogSink(output io.Writer, options ...StarlogSinkOption) *StarlogSink + type StarlogSinkOption func(*StarlogSink) + func StarlogSinkArt(enabled bool) StarlogSinkOption + func StarlogSinkColor(color int) StarlogSinkOption + func StarlogSinkColorPolicy(policy StarlogColorPolicy) StarlogSinkOption + func StarlogSinkLevels(minimum, maximum slog.Level) StarlogSinkOption + func StarlogSinkMinLevel(level slog.Level) StarlogSinkOption + func StarlogSinkPet(pet StarlogPet) StarlogSinkOption + type StarlogSpriteSheet struct + Build []int + Calm []int + Columns int + Error []int + PNG []byte + Rows int + Warn []int + Width int + func NewStarlogSpriteSheet(png []byte, columns, rows, width int) *StarlogSpriteSheet + type State struct + func (s *State) Apply(event Event) (err error) + func (s *State) BasePermissions(guildID, userID Snowflake) (Permissions, error) + func (s *State) Channel(id Snowflake) (Channel, bool) + func (s *State) ChannelPermissions(channelID, userID Snowflake) (Permissions, error) + func (s *State) Channels() []Channel + func (s *State) Config() StateConfig + func (s *State) Emoji(guildID, emojiID Snowflake) (GuildEmoji, bool) + func (s *State) Emojis(guildID Snowflake) []GuildEmoji + func (s *State) Guild(id Snowflake) (Guild, bool) + func (s *State) Guilds() []Guild + func (s *State) Member(guildID, userID Snowflake) (Member, bool) + func (s *State) Members(guildID Snowflake) []Member + func (s *State) Message(channelID, messageID Snowflake) (Message, bool) + func (s *State) MessageColor(message *Message) (int, error) + func (s *State) MessagePermissions(message *Message) (Permissions, error) + func (s *State) Messages(channelID Snowflake) []Message + func (s *State) Mode() StateMode + func (s *State) Permissions(guildID, channelID, userID Snowflake) (Permissions, error) + func (s *State) Presence(guildID, userID Snowflake) (PresenceUpdate, bool) + func (s *State) Presences(guildID Snowflake) []PresenceUpdate + func (s *State) Role(guildID, roleID Snowflake) (Role, bool) + func (s *State) Roles(guildID Snowflake) []Role + func (s *State) Stats() StateStats + func (s *State) Sticker(guildID, stickerID Snowflake) (Sticker, bool) + func (s *State) Stickers(guildID Snowflake) []Sticker + func (s *State) ThreadMember(threadID, userID Snowflake) (ThreadMember, bool) + func (s *State) ThreadMembers(threadID Snowflake) []ThreadMember + func (s *State) User(id Snowflake) (User, bool) + func (s *State) UserColor(guildID, userID Snowflake) (int, error) + func (s *State) Users() []User + func (s *State) VoiceState(guildID, userID Snowflake) (VoiceState, bool) + func (s *State) VoiceStates(guildID Snowflake) []VoiceState + type StateConfig struct + Channels bool + Emojis bool + Guilds bool + MaxMessagesPerChannel int + Members bool + Mode StateMode + Presences bool + Roles bool + Stickers bool + ThreadMembers bool + Users bool + VoiceStates bool + func DefaultStateConfig() StateConfig + type StateMode uint8 + const StateAutomatic + const StateManual + type StateStats struct + Channels int + Emojis int + Guilds int + Members int + MessageChannels int + Messages int + Presences int + Roles int + Stickers int + ThreadMembers int + Users int + VoiceStates int + type Status string + const StatusDND + const StatusIdle + const StatusInvisible + const StatusOffline + const StatusOnline + type Sticker struct + Available bool + Description string + FormatType int + GuildID Snowflake + ID Snowflake + Name string + PackID Snowflake + SortValue int + Tags string + Type int + User *User + type StickerItem struct + FormatType int + ID Snowflake + Name string + type StickerPack struct + BannerAssetID Snowflake + CoverStickerID Snowflake + Description string + ID Snowflake + Name string + SKUID Snowflake + Stickers []Sticker + type Subscription struct + CanceledAt *time.Time + Country string + CurrentPeriodEnd time.Time + CurrentPeriodStart time.Time + EntitlementIDs []Snowflake + ID Snowflake + RenewalSKUIDs []Snowflake + SKUIDs []Snowflake + Status SubscriptionStatus + UserID Snowflake + type SubscriptionCreate struct + func (e *SubscriptionCreate) Client() *Client + type SubscriptionDelete struct + func (e *SubscriptionDelete) Client() *Client + type SubscriptionStatus int + const SubscriptionActive + const SubscriptionEnding + const SubscriptionInactive + type SubscriptionUpdate struct + func (e *SubscriptionUpdate) Client() *Client + type SubscriptionsQuery struct + After Snowflake + Before Snowflake + Limit int + UserID Snowflake + type TextInputStyle int + const TextInputParagraph + const TextInputShort + type ThreadCreate struct + NewlyCreated bool + func (e *ThreadCreate) Client() *Client + type ThreadDelete struct + BeforeDelete *Channel + GuildID Snowflake + ID Snowflake + ParentID Snowflake + Type ChannelType + func (e *ThreadDelete) Client() *Client + type ThreadListSync struct + ChannelIDs []Snowflake + GuildID Snowflake + Members []ThreadMember + Threads []Channel + func (e *ThreadListSync) Client() *Client + type ThreadMember struct + Flags int + ID Snowflake + JoinTimestamp time.Time + Member *Member + UserID Snowflake + type ThreadMemberUpdate struct + BeforeUpdate *ThreadMember + GuildID Snowflake + func (e *ThreadMemberUpdate) Client() *Client + type ThreadMembersUpdate struct + AddedMembers []ThreadMember + BeforeUpdate []ThreadMember + GuildID Snowflake + ID Snowflake + MemberCount int + RemovedMemberIDs []Snowflake + func (e *ThreadMembersUpdate) Client() *Client + type ThreadMeta struct + ArchiveTimestamp time.Time + Archived bool + AutoArchiveDuration int + CreateTimestamp *time.Time + Invitable bool + Locked bool + type ThreadParams struct + AutoArchiveDuration int + Invitable *bool + Name string + RateLimitPerUser *int + Type ChannelType + type ThreadSearchResult struct + HasMore bool + Members []ThreadMember + Threads []Channel + TotalResults int + type ThreadUpdate struct + BeforeUpdate *Channel + func (e *ThreadUpdate) Client() *Client + type TypingStart struct + ChannelID Snowflake + GuildID Snowflake + Member *Member + Timestamp int64 + UserID Snowflake + func (e *TypingStart) Client() *Client + type UnfurledMedia struct + AttachmentID Snowflake + ContentType string + Flags int + Height *int + ID Snowflake + Placeholder string + PlaceholderVersion int + ProxyURL string + URL string + Width *int + type User struct + AccentColor int + Avatar string + Banner string + Bot bool + Discriminator string + Email string + Flags int + GlobalName string + ID Snowflake + Locale string + MFAEnabled bool + PremiumType int + PublicFlags int + System bool + Username string + Verified bool + func (u *User) AvatarURL(size int) string + func (u *User) Mention() string + func (u *User) Tag() string + type UserUpdate struct + BeforeUpdate *User + func (e *UserUpdate) Client() *Client + type VanityURL struct + Code string + Uses int + type VoiceChannelEffectSend struct + AnimationID int + AnimationType int + ChannelID Snowflake + Emoji *Emoji + GuildID Snowflake + SoundID Snowflake + SoundVolume float64 + UserID Snowflake + func (e *VoiceChannelEffectSend) Client() *Client + type VoiceChannelStartTimeUpdate struct + BeforeUpdate *Channel + GuildID Snowflake + ID Snowflake + VoiceStartTime *int64 + func (e *VoiceChannelStartTimeUpdate) Client() *Client + type VoiceChannelStatusUpdate struct + BeforeUpdate *Channel + GuildID Snowflake + ID Snowflake + Status *string + func (e *VoiceChannelStatusUpdate) Client() *Client + type VoiceConnection struct + func (v *VoiceConnection) Close(ctx context.Context) + func (v *VoiceConnection) Play(provider OpusProvider) error + func (v *VoiceConnection) PlayFile(ctx context.Context, path string) (*FFmpegOpusProvider, error) + func (v *VoiceConnection) Receive(callback func(*OpusPacket) error) error + type VoiceRegion struct + Custom bool + Deprecated bool + ID string + Name string + Optimal bool + type VoiceServerUpdate struct + Endpoint string + GuildID Snowflake + Token string + func (e *VoiceServerUpdate) Client() *Client + type VoiceState struct + ChannelID Snowflake + Deaf bool + GuildID Snowflake + Member *Member + Mute bool + SelfDeaf bool + SelfMute bool + SelfStream bool + SelfVideo bool + SessionID string + Suppress bool + UserID Snowflake + type VoiceStateUpdate struct + BeforeUpdate *VoiceState + func (e *VoiceStateUpdate) Client() *Client + type Webhook struct + ApplicationID Snowflake + Avatar string + ChannelID Snowflake + GuildID Snowflake + ID Snowflake + Name string + Token string + Type WebhookType + URL string + User *User + type WebhookMessage struct + AllowedMentions *AllowedMentions + AppliedTags []Snowflake + AvatarURL string + Components []Component + Content string + Embeds []Embed + Flags MessageFlags + Poll *Poll + TTS bool + ThreadName string + Username string + type WebhookParams struct + Avatar *string + ChannelID *Snowflake + Name *string + type WebhookType int + const WebhookApplication + const WebhookChannelFollower + const WebhookIncoming + type WebhooksUpdate struct + ChannelID Snowflake + GuildID Snowflake + func (e *WebhooksUpdate) Client() *Client + type WelcomeScreen struct + Description string + WelcomeChannels []WelcomeScreenChannel + type WelcomeScreenChannel struct + ChannelID Snowflake + Description string + EmojiID Snowflake + EmojiName string + type WidgetAsset struct + AssetID Snowflake + AssetType string + Key string + Metadata struct{ ... } + Visibility string + type WidgetComponent struct + Fields map[string]WidgetField + type WidgetConfig struct + ApplicationID Snowflake + ConfigID string + DisplayName string + ResolvedAssets []WidgetAsset + Status string + Surfaces map[string]WidgetSurface + type WidgetField struct + PresentationType string + Value string + ValueType string + func AssetField(assetKey string) WidgetField + func DataField(key, presentation string) WidgetField + func LiteralField(text string) WidgetField + type WidgetStat struct + Key string + Label string + Presentation string + type WidgetSurface struct + Components map[string]WidgetComponent + Layout string + func CollectionSurface(keyPrefix string) WidgetSurface + func StatsSurface(stats ...WidgetStat) WidgetSurface