Versions in this module Expand all Collapse all v0 v0.0.1 Aug 15, 2022 Changes in this version + const DiscordCDNBaseURL + const DiscordEpoch + var ErrorEmbedAuthorNameTooLarge = fmt.Errorf("primitives: embed author name too large") + var ErrorEmbedDescriptionTooLarge = fmt.Errorf("primitives: embed description too large") + var ErrorEmbedFieldNameTooLarge = fmt.Errorf("primitives: embedfield name too large") + var ErrorEmbedFieldValueTooLarge = fmt.Errorf("primitives: embedfield value too large") + var ErrorEmbedFieldsTooLarge = fmt.Errorf("primitives: too many embed fields") + var ErrorEmbedFooterTextTooLarge = fmt.Errorf("primitives: embed footer text too large") + var ErrorEmbedTitleTooLarge = fmt.Errorf("primitives: embed title too large") + var ErrorEmbedTooLarge = fmt.Errorf("primitives: embed data too large") + var ErrorInvalidUTF8 = fmt.Errorf("primitives: message contains invalid utf8") + var ErrorNoGatewayEventByName = fmt.Errorf("primitives: no valid GatewayEvent for given GatewayEventName") + type Activity struct + ApplicationID Snowflake + Assets ActivityAssets + Buttons []Buttons + CreatedAt time.Time + Details string + Emoji Emoji + Flags ActivityFlag + IsInstance bool + Name string + Party ActivityParty + Secrets ActivitySecrets + State string + Timestamps []ActivityTimestamp + Type ActivityType + Url string + type ActivityAssets struct + LargeImage Snowflake + LargeText string + SmallImage Snowflake + SmallText Snowflake + type ActivityFlag uint8 + const ActivityFlagAll + const ActivityFlagInstance + const ActivityFlagInvalid + const ActivityFlagJoin + const ActivityFlagJoinRequest + const ActivityFlagPlay + const ActivityFlagSpectate + const ActivityFlagSync + func (activityFlag ActivityFlag) Contains(flags ActivityFlag) bool + func (activityFlag ActivityFlag) IsValid() bool + type ActivityParty struct + ID string + Size [2]int + type ActivitySecrets struct + Join string + Match string + Spectate string + type ActivityTimestamp struct + End time.Time + Start time.Time + type ActivityType uint8 + const ActivityTypeCompeting + const ActivityTypeCustom + const ActivityTypeGame + const ActivityTypeInvalid + const ActivityTypeListening + const ActivityTypeStreaming + const ActivityTypeWatching + func (activityType ActivityType) IsValid() bool + type Application struct + BotRequiresCodeGrant bool + CoverImageHash ImageHash + Description string + Flags ApplicationFlag + GuildID Snowflake + ID Snowflake + IconHash ImageHash + IsBotPublic bool + Name string + Owner User + PrimarySKUID Snowflake + PrivacyPolicyURL string + RPCOriginURLS []string + Summary string + Team Team + TermsOfServiceURL string + URLSlug string + VerifyKey string + type ApplicationFlag uint32 + type Attachment struct + ContentType string + Description string + FileName string + Height int + ID Snowflake + IsEphemeral bool + ProxyURL string + Size int + URL string + Width int + type Buttons struct + Label string + Url string + type Channel struct + ApplicationID Snowflake + Bitrate int + DefaultAutoArchiveDuration int + GuildID Snowflake + ID Snowflake + IconHash ImageHash + IsNSFW bool + LastMessageID Snowflake + LastPinTimestamp time.Time + Member ThreadMember + MemberCount int + MemberLimit int + MessageCount int + Name string + OwnerID Snowflake + ParentID Snowflake + PermissionOverwrites []Overwrite + Permissions string + Position int + RateLimitPerMember int + Recipients []User + ThreadMetadata ThreadMetadata + Topic string + Type ChannelType + VoiceQualityMode VoiceQualityMode + VoiceRegion VoiceRegion + type ChannelMention struct + GuildID Snowflake + ID Snowflake + Name string + Type ChannelType + type ChannelType uint8 + const ChannelTypeDM + const ChannelTypeGroupDM + const ChannelTypeGuildCategory + const ChannelTypeGuildNews + const ChannelTypeGuildNewsThread + const ChannelTypeGuildPrivateThread + const ChannelTypeGuildPublicThread + const ChannelTypeGuildStageVoice + const ChannelTypeGuildStore + const ChannelTypeGuildText + const ChannelTypeGuildVoice + const ChannelTypeINVALID + func (channelType ChannelType) IsValid() bool + type ClientStatus struct + Desktop string + Mobile string + Web string + type Embed struct + Author EmbedAuthor + ColorCode int + Description string + Fields []EmbedField + Footer EmbedFooter + Image EmbedImage + Provider EmbedProvider + Thumbnail EmbedThumbnail + Timestamp time.Time + Title string + Type EmbedType + URL string + Video EmbedVideo + func (e Embed) IsValid() error + type EmbedAuthor struct + IconURL string + Name string + ProxyIconURL string + URL string + type EmbedField struct + IsInline bool + Name string + Value string + type EmbedFooter struct + IconURL string + ProxyIconURL string + Text string + type EmbedImage struct + Height int + ProxyURL string + URL string + Width int + type EmbedProvider struct + Name string + URL string + type EmbedThumbnail struct + Height int + ProxyURL string + URL string + Width int + type EmbedType string + const EmbedTypeArticle + const EmbedTypeGifv + const EmbedTypeImage + const EmbedTypeLink + const EmbedTypeNil + const EmbedTypeRich + const EmbedTypeVideo + func (e EmbedType) IsValid() bool + type EmbedVideo struct + Height int + ProxyURL string + URL string + Width int + type Emoji struct + Creator User + ID Snowflake + IsAnimated bool + IsAvailable bool + IsManaged bool + Name string + RequiresColons bool + Roles []Role + type ExplicitContentFilterLevel uint8 + type GEvent struct + Data json.RawMessage + Name string + Opcode GatewayOpcode + SequenceNumber int + type GatewayErrorEventCode int + const GatewayErrorEventCodeAlreadyAuthenticated + const GatewayErrorEventCodeAuthenticationFailed + const GatewayErrorEventCodeDecodeError + const GatewayErrorEventCodeDisallowedIntents + const GatewayErrorEventCodeInvalidAPIVersion + const GatewayErrorEventCodeInvalidIntents + const GatewayErrorEventCodeInvalidSequence + const GatewayErrorEventCodeInvalidShard + const GatewayErrorEventCodeNotAuthenticated + const GatewayErrorEventCodeRateLimited + const GatewayErrorEventCodeSessionTimedOut + const GatewayErrorEventCodeSharingRequired + const GatewayErrorEventCodeUnknownError + const GatewayErrorEventCodeUnknownOpcode + type GatewayEvent interface + Opcode func() GatewayOpcode + Type func() GatewayEventType + func GetGatewayEventByName(name string) (GatewayEvent, error) + type GatewayEventChannelCreate struct + func (GatewayEventChannelCreate) Opcode() GatewayOpcode + func (GatewayEventChannelCreate) Type() GatewayEventType + type GatewayEventChannelDelete struct + func (GatewayEventChannelDelete) Opcode() GatewayOpcode + func (GatewayEventChannelDelete) Type() GatewayEventType + type GatewayEventChannelPinsUpdate struct + ChannelID Snowflake + GuildID Snowflake + LastPinTimestamp time.Time + func (GatewayEventChannelPinsUpdate) Opcode() GatewayOpcode + func (GatewayEventChannelPinsUpdate) Type() GatewayEventType + type GatewayEventChannelUpdate struct + func (GatewayEventChannelUpdate) Opcode() GatewayOpcode + func (GatewayEventChannelUpdate) Type() GatewayEventType + type GatewayEventClientShutdown struct + Err error + func (GatewayEventClientShutdown) Opcode() GatewayOpcode + func (GatewayEventClientShutdown) Type() GatewayEventType + func (g GatewayEventClientShutdown) Error() error + type GatewayEventGuildBanAdd struct + GuildID Snowflake + User User + func (GatewayEventGuildBanAdd) Opcode() GatewayOpcode + func (GatewayEventGuildBanAdd) Type() GatewayEventType + type GatewayEventGuildBanRemove struct + GuildID Snowflake + User User + func (GatewayEventGuildBanRemove) Opcode() GatewayOpcode + func (GatewayEventGuildBanRemove) Type() GatewayEventType + type GatewayEventGuildCreate struct + func (GatewayEventGuildCreate) Opcode() GatewayOpcode + func (GatewayEventGuildCreate) Type() GatewayEventType + type GatewayEventGuildDelete struct + func (GatewayEventGuildDelete) Opcode() GatewayOpcode + func (GatewayEventGuildDelete) Type() GatewayEventType + type GatewayEventGuildEmojisUpdate struct + Emojis []Emoji + GuildID Snowflake + func (GatewayEventGuildEmojisUpdate) Opcode() GatewayOpcode + func (GatewayEventGuildEmojisUpdate) Type() GatewayEventType + type GatewayEventGuildIntegrationDelete struct + ApplicationID Snowflake + GuildID Snowflake + ID Snowflake + func (g GatewayEventGuildIntegrationDelete) Opcode() GatewayOpcode + func (g GatewayEventGuildIntegrationDelete) Type() GatewayEventType + type GatewayEventGuildIntegrationUpdate struct + GuildID Snowflake + func (g GatewayEventGuildIntegrationUpdate) Opcode() GatewayOpcode + func (g GatewayEventGuildIntegrationUpdate) Type() GatewayEventType + type GatewayEventGuildIntegrationsUpdate struct + GuildID Snowflake + func (GatewayEventGuildIntegrationsUpdate) Opcode() GatewayOpcode + func (GatewayEventGuildIntegrationsUpdate) Type() GatewayEventType + type GatewayEventGuildMemberAdd struct + GuildID Snowflake + func (GatewayEventGuildMemberAdd) Opcode() GatewayOpcode + func (GatewayEventGuildMemberAdd) Type() GatewayEventType + type GatewayEventGuildMemberRemove struct + GuildID Snowflake + User User + func (GatewayEventGuildMemberRemove) Opcode() GatewayOpcode + func (GatewayEventGuildMemberRemove) Type() GatewayEventType + type GatewayEventGuildMemberUpdate struct + AvatarHash ImageHash + CommunicationDisabledUntil time.Time + GuildID Snowflake + IsDeafened bool + IsMuted bool + IsPending bool + JoinedAt time.Time + Nickname string + PremiumSince time.Time + Roles []Role + User User + func (GatewayEventGuildMemberUpdate) Opcode() GatewayOpcode + func (GatewayEventGuildMemberUpdate) Type() GatewayEventType + type GatewayEventGuildMembersChunk struct + Count int + GuildID Snowflake + Index int + Members []GuildMember + Nonce string + NotFoundIDs []string + Presences []PresenceUpdate + func (GatewayEventGuildMembersChunk) Opcode() GatewayOpcode + func (GatewayEventGuildMembersChunk) Type() GatewayEventType + type GatewayEventGuildRoleCreate struct + GuildID Snowflake + Role Role + func (GatewayEventGuildRoleCreate) Opcode() GatewayOpcode + func (GatewayEventGuildRoleCreate) Type() GatewayEventType + type GatewayEventGuildRoleDelete struct + GuildID Snowflake + RoleID Snowflake + func (GatewayEventGuildRoleDelete) Opcode() GatewayOpcode + func (GatewayEventGuildRoleDelete) Type() GatewayEventType + type GatewayEventGuildRoleUpdate struct + GuildID Snowflake + Role Role + func (GatewayEventGuildRoleUpdate) Opcode() GatewayOpcode + func (GatewayEventGuildRoleUpdate) Type() GatewayEventType + type GatewayEventGuildScheduledEventCreate struct + func (GatewayEventGuildScheduledEventCreate) Opcode() GatewayOpcode + func (GatewayEventGuildScheduledEventCreate) Type() GatewayEventType + type GatewayEventGuildScheduledEventDelete struct + func (GatewayEventGuildScheduledEventDelete) Opcode() GatewayOpcode + func (GatewayEventGuildScheduledEventDelete) Type() GatewayEventType + type GatewayEventGuildScheduledEventUpdate struct + func (GatewayEventGuildScheduledEventUpdate) Opcode() GatewayOpcode + func (GatewayEventGuildScheduledEventUpdate) Type() GatewayEventType + type GatewayEventGuildScheduledEventUserAdd struct + GuildID Snowflake + GuildScheduledEventID Snowflake + UserID Snowflake + func (GatewayEventGuildScheduledEventUserAdd) Opcode() GatewayOpcode + func (GatewayEventGuildScheduledEventUserAdd) Type() GatewayEventType + type GatewayEventGuildScheduledEventUserRemove struct + GuildID Snowflake + GuildScheduledEventID Snowflake + UserID Snowflake + func (GatewayEventGuildScheduledEventUserRemove) Opcode() GatewayOpcode + func (GatewayEventGuildScheduledEventUserRemove) Type() GatewayEventType + type GatewayEventGuildStickersUpdate struct + GuildID Snowflake + Stickers []Sticker + func (GatewayEventGuildStickersUpdate) Opcode() GatewayOpcode + func (GatewayEventGuildStickersUpdate) Type() GatewayEventType + type GatewayEventGuildUpdate struct + func (GatewayEventGuildUpdate) Opcode() GatewayOpcode + func (GatewayEventGuildUpdate) Type() GatewayEventType + type GatewayEventHeartBeatRequest struct + func (g GatewayEventHeartBeatRequest) Opcode() GatewayOpcode + func (g GatewayEventHeartBeatRequest) Type() GatewayEventType + type GatewayEventHeartbeatACK struct + func (GatewayEventHeartbeatACK) Opcode() GatewayOpcode + func (GatewayEventHeartbeatACK) Type() GatewayEventType + type GatewayEventHello struct + Interval int + func (gatewayHelloEvent GatewayEventHello) Opcode() GatewayOpcode + func (gatewayHelloEvent GatewayEventHello) Type() GatewayEventType + type GatewayEventIntegrationCreate struct + GuildID Snowflake + func (GatewayEventIntegrationCreate) Opcode() GatewayOpcode + func (GatewayEventIntegrationCreate) Type() GatewayEventType + type GatewayEventInvalidSession struct + func (GatewayEventInvalidSession) Opcode() GatewayOpcode + func (GatewayEventInvalidSession) Type() GatewayEventType + type GatewayEventInviteCreate struct + ChannelID Snowflake + CreatedAt time.Time + GuildID Snowflake + InviteCode string + Inviter User + IsTemporary bool + MaxAge int + MaxUses int + TargetApplication Application + TargetType InviteTargetType + TargetUser User + Uses int + func (g GatewayEventInviteCreate) Opcode() GatewayOpcode + func (g GatewayEventInviteCreate) Type() GatewayEventType + type GatewayEventInviteDelete struct + ChannelID Snowflake + GuildID Snowflake + InviteCode string + func (GatewayEventInviteDelete) Opcode() GatewayOpcode + func (GatewayEventInviteDelete) Type() GatewayEventType + type GatewayEventMessageCreate struct + func (GatewayEventMessageCreate) Opcode() GatewayOpcode + func (GatewayEventMessageCreate) Type() GatewayEventType + type GatewayEventMessageDelete struct + ChannelID Snowflake + GuildID Snowflake + ID Snowflake + func (GatewayEventMessageDelete) Opcode() GatewayOpcode + func (GatewayEventMessageDelete) Type() GatewayEventType + type GatewayEventMessageDeleteBulk struct + ChannelID Snowflake + GuildID Snowflake + IDs []Snowflake + func (GatewayEventMessageDeleteBulk) Opcode() GatewayOpcode + func (GatewayEventMessageDeleteBulk) Type() GatewayEventType + type GatewayEventMessageReactionAdd struct + ChannelID Snowflake + Emoji Emoji + GuildID Snowflake + Member GuildMember + MessageID Snowflake + UserID Snowflake + func (GatewayEventMessageReactionAdd) Opcode() GatewayOpcode + func (GatewayEventMessageReactionAdd) Type() GatewayEventType + type GatewayEventMessageReactionRemove struct + ChannelID Snowflake + Emoji Emoji + GuildID Snowflake + MessageID Snowflake + UserID Snowflake + func (GatewayEventMessageReactionRemove) Opcode() GatewayOpcode + func (GatewayEventMessageReactionRemove) Type() GatewayEventType + type GatewayEventMessageReactionRemoveAll struct + ChannelID Snowflake + GuildID Snowflake + MessageID Snowflake + func (GatewayEventMessageReactionRemoveAll) Opcode() GatewayOpcode + func (GatewayEventMessageReactionRemoveAll) Type() GatewayEventType + type GatewayEventMessageReactionRemoveEmoji struct + ChannelID Snowflake + Emoji Emoji + GuildID Snowflake + MessageID Snowflake + func (GatewayEventMessageReactionRemoveEmoji) Opcode() GatewayOpcode + func (GatewayEventMessageReactionRemoveEmoji) Type() GatewayEventType + type GatewayEventMessageUpdate struct + func (GatewayEventMessageUpdate) Opcode() GatewayOpcode + func (GatewayEventMessageUpdate) Type() GatewayEventType + type GatewayEventPresenceUpdate struct + Activities []Activity + ClientStatus ClientStatus + GuildID Snowflake + Status PresenceStatus + User User + func (GatewayEventPresenceUpdate) Opcode() GatewayOpcode + func (GatewayEventPresenceUpdate) Type() GatewayEventType + type GatewayEventReady struct + Application Application + SessionID string + ShardInformation ShardInformation + UnavailableGuilds []UnavailableGuild + User User + Version int + func (gatewayEventReady GatewayEventReady) Opcode() GatewayOpcode + func (gatewayEventReady GatewayEventReady) Type() GatewayEventType + type GatewayEventReconnect struct + func (GatewayEventReconnect) Opcode() GatewayOpcode + func (GatewayEventReconnect) Type() GatewayEventType + type GatewayEventResumed struct + Sequence int + SessionID string + Token string + func (GatewayEventResumed) Opcode() GatewayOpcode + func (GatewayEventResumed) Type() GatewayEventType + type GatewayEventStageInstanceCreate struct + func (GatewayEventStageInstanceCreate) Opcode() GatewayOpcode + func (GatewayEventStageInstanceCreate) Type() GatewayEventType + type GatewayEventStageInstanceDelete struct + func (GatewayEventStageInstanceDelete) Opcode() GatewayOpcode + func (GatewayEventStageInstanceDelete) Type() GatewayEventType + type GatewayEventStageInstanceUpdate struct + func (GatewayEventStageInstanceUpdate) Opcode() GatewayOpcode + func (GatewayEventStageInstanceUpdate) Type() GatewayEventType + type GatewayEventThreadCreate struct + func (GatewayEventThreadCreate) Opcode() GatewayOpcode + func (GatewayEventThreadCreate) Type() GatewayEventType + type GatewayEventThreadDelete struct + func (GatewayEventThreadDelete) Opcode() GatewayOpcode + func (GatewayEventThreadDelete) Type() GatewayEventType + type GatewayEventThreadListSync struct + ChannelIDs []Snowflake + GuildID Snowflake + Members []ThreadMember + Threads []Channel + func (GatewayEventThreadListSync) Opcode() GatewayOpcode + func (GatewayEventThreadListSync) Type() GatewayEventType + type GatewayEventThreadMemberUpdate struct + func (GatewayEventThreadMemberUpdate) Opcode() GatewayOpcode + func (GatewayEventThreadMemberUpdate) Type() GatewayEventType + type GatewayEventThreadMembersUpdate struct + AddedMembers []ThreadMember + GuildID Snowflake + ID Snowflake + MemberCount int + RemovedMembers []Snowflake + func (GatewayEventThreadMembersUpdate) Opcode() GatewayOpcode + func (GatewayEventThreadMembersUpdate) Type() GatewayEventType + type GatewayEventThreadUpdate struct + func (GatewayEventThreadUpdate) Opcode() GatewayOpcode + func (GatewayEventThreadUpdate) Type() GatewayEventType + type GatewayEventType string + const GatewayEventTypeChannelCreate + const GatewayEventTypeChannelDelete + const GatewayEventTypeChannelPinsUpdate + const GatewayEventTypeChannelUpdate + const GatewayEventTypeClientShutdown + const GatewayEventTypeGuildBanAdd + const GatewayEventTypeGuildBanRemove + const GatewayEventTypeGuildCreate + const GatewayEventTypeGuildDelete + const GatewayEventTypeGuildEmojisUpdate + const GatewayEventTypeGuildIntegrationCreate + const GatewayEventTypeGuildIntegrationDelete + const GatewayEventTypeGuildIntegrationUpdate + const GatewayEventTypeGuildIntegrationsUpdate + const GatewayEventTypeGuildInteractionCreate + const GatewayEventTypeGuildMemberAdd + const GatewayEventTypeGuildMemberRemove + const GatewayEventTypeGuildMemberUpdate + const GatewayEventTypeGuildMembersChunk + const GatewayEventTypeGuildRoleCreate + const GatewayEventTypeGuildRoleDelete + const GatewayEventTypeGuildRoleUpdate + const GatewayEventTypeGuildScheduledEventCreate + const GatewayEventTypeGuildScheduledEventDelete + const GatewayEventTypeGuildScheduledEventUpdate + const GatewayEventTypeGuildScheduledEventUserAdd + const GatewayEventTypeGuildScheduledEventUserRemove + const GatewayEventTypeGuildStickersUpdate + const GatewayEventTypeGuildUpdate + const GatewayEventTypeHeartbeatACK + const GatewayEventTypeHeartbeatRequest + const GatewayEventTypeHello + const GatewayEventTypeInvalidSession + const GatewayEventTypeInviteCreate + const GatewayEventTypeInviteDelete + const GatewayEventTypeMessageCreate + const GatewayEventTypeMessageDelete + const GatewayEventTypeMessageDeleteBulk + const GatewayEventTypeMessageReactionAdd + const GatewayEventTypeMessageReactionRemove + const GatewayEventTypeMessageReactionRemoveAll + const GatewayEventTypeMessageReactionRemoveEmoji + const GatewayEventTypeMessageUpdate + const GatewayEventTypePresenceUpdate + const GatewayEventTypeReady + const GatewayEventTypeReconnect + const GatewayEventTypeResumed + const GatewayEventTypeStageInstanceCreate + const GatewayEventTypeStageInstanceDelete + const GatewayEventTypeStageInstanceUpdate + const GatewayEventTypeThreadCreate + const GatewayEventTypeThreadDelete + const GatewayEventTypeThreadListSync + const GatewayEventTypeThreadMemberUpdate + const GatewayEventTypeThreadMembersUpdate + const GatewayEventTypeThreadUpdate + const GatewayEventTypeTypingStart + const GatewayEventTypeUserUpdate + const GatewayEventTypeVoiceServerUpdate + const GatewayEventTypeVoiceStateUpdate + const GatewayEventTypeWebhooksUpdate + type GatewayEventTypingStart struct + ChannelID Snowflake + GuildID Snowflake + Member GuildMember + Timestamp time.Time + UserID Snowflake + func (GatewayEventTypingStart) Opcode() GatewayOpcode + func (GatewayEventTypingStart) Type() GatewayEventType + type GatewayEventUserUpdate struct + func (GatewayEventUserUpdate) Opcode() GatewayOpcode + func (GatewayEventUserUpdate) Type() GatewayEventType + type GatewayEventVoiceServerUpdate struct + Endpoint string + GuildID Snowflake + Token string + func (GatewayEventVoiceServerUpdate) Opcode() GatewayOpcode + func (GatewayEventVoiceServerUpdate) Type() GatewayEventType + type GatewayEventVoiceStateUpdate struct + func (GatewayEventVoiceStateUpdate) Opcode() GatewayOpcode + func (GatewayEventVoiceStateUpdate) Type() GatewayEventType + type GatewayEventWebhooksUpdate struct + ChannelID Snowflake + GuildID Snowflake + func (GatewayEventWebhooksUpdate) Opcode() GatewayOpcode + func (GatewayEventWebhooksUpdate) Type() GatewayEventType + type GatewayIdentify struct + Data GatewayIdentifyData + Opcode GatewayOpcode + type GatewayIdentifyData struct + Intents GatewayIntent + Properties GatewayIdentifyProperties + Token string + type GatewayIdentifyProperties struct + Browser string + Device string + OS string + type GatewayIntent uint16 + const GatewayIntentAll + const GatewayIntentDirectMessageReactions + const GatewayIntentDirectMessageTyping + const GatewayIntentDirectMessages + const GatewayIntentGuildBans + const GatewayIntentGuildEmojisAndStickers + const GatewayIntentGuildIntegrations + const GatewayIntentGuildInvites + const GatewayIntentGuildMembers + const GatewayIntentGuildMessageReactions + const GatewayIntentGuildMessageTyping + const GatewayIntentGuildMessages + const GatewayIntentGuildPresences + const GatewayIntentGuildVoiceStates + const GatewayIntentGuildWebhooks + const GatewayIntentGuilds + const GatewayIntentNil + func (gatewayIntent GatewayIntent) Contains(intent GatewayIntent) bool + func (gatewayIntent GatewayIntent) IsValid() bool + type GatewayOpcode int + const GatewayOpcodeDispatch + const GatewayOpcodeHeartbeat + const GatewayOpcodeHeartbeatACK + const GatewayOpcodeHello + const GatewayOpcodeIdentify + const GatewayOpcodeNil + const GatewayOpcodePresenceUpdate + const GatewayOpcodeReconnect + const GatewayOpcodeRequestGuildMembers + const GatewayOpcodeRequestInvalidSession + const GatewayOpcodeResume + const GatewayOpcodeVoiceStateUpdate + type Guild struct + AFKChannelID Snowflake + AFKTimeout int + ApplicationID Snowflake + ApproximateMemberCount int + BannerHash ImageHash + BotJoinedAt time.Time + Channels []Channel + DefaultMessageNotificationsLevel MessageNotificationsLevel + Description string + DiscoverySplashHash ImageHash + Emojis []Emoji + EnabledFeatures []GuildFeature + ExplicitContentFilterLevel ExplicitContentFilterLevel + ID Snowflake + IconHash ImageHash + IconHashInTemplate ImageHash + IsBotOwner bool + IsLarge bool + IsUnavailable bool + MFALevel MFALevel + MaxMembers int + MaxPresences int + MaxVideoChannelUsers int + MemberCount int + Members []GuildMember + NSFWLevel NSFWLevel + Name string + OwnerID Snowflake + Permissions string + PreferredLocale string + PremiumSubscriptionCount int + PremiumTier PremiumTier + Presences []PresenceUpdate + PublicUpdatesChannelID Snowflake + Roles []Role + RulesChannelID Snowflake + ScheduledEvents []GuildScheduledEvent + SplashHash ImageHash + StageInstances []StageInstance + Stickers []Sticker + SystemChannelFlags SystemChannelFlag + SystemChannelID Snowflake + Threads []Channel + VanityUrlCode string + VerificationLevel VerificationLevel + VoiceRegionID string + VoiceStates []VoiceState + WelcomeScreen WelcomeScreen + WidgetChannelID Snowflake + WidgetEnabled bool + type GuildFeature string + type GuildMember struct + Avatar ImageHash + CommunicationsDisabledUntil time.Time + IsDeafened bool + IsMuted bool + IsPending bool + JoinedAt time.Time + Nickname string + Permissions PermissionFlag + PremiumSince time.Time + RoleIds []Snowflake + User User + type GuildScheduledEvent struct + ChannelID Snowflake + Creator User + CreatorID Snowflake + Description string + EntityID Snowflake + EntityMetadata GuildScheduledEventEntityMetadata + EntityType GuildScheduledEventEntityType + GuildID Snowflake + ID Snowflake + Name string + PrivacyLevel GuildScheduledEventPrivacyLevel + ScheduledEndTime time.Time + ScheduledStartTime time.Time + Status GuildScheduledEventStatus + UserCount int + type GuildScheduledEventEntityMetadata struct + Location string + type GuildScheduledEventEntityType int + const GuildScheduledEventEntityTypeExternal + const GuildScheduledEventEntityTypeNone + const GuildScheduledEventEntityTypeStageInstance + const GuildScheduledEventEntityTypeVoice + func (guildScheduledEventEntityType GuildScheduledEventEntityType) IsValid() bool + type GuildScheduledEventPrivacyLevel uint8 + const GuildScheduledEventPrivacyLevelGuildOnly + func (guildScheduledEventPrivacyLevel GuildScheduledEventPrivacyLevel) IsValid() bool + type GuildScheduledEventStatus uint8 + const GuildScheduledEventStatusActive + const GuildScheduledEventStatusCanceled + const GuildScheduledEventStatusCompleted + const GuildScheduledEventStatusNone + const GuildScheduledEventStatusScheduled + func (guildScheduledEventStatus GuildScheduledEventStatus) IsValid() bool + type ImageHash string + type ImageType string + type Invite struct + ApproximateMemberCount int + ApproximatePresenceCount int + Channel Channel + Code string + ExpiresAt time.Time + Guild Guild + GuildScheduledEvent GuildScheduledEvent + Inviter User + StageInstance InviteStageInstance + TargetApplication Application + TargetType InviteTargetType + TargetUser User + type InviteMetadata struct + CreatedAt time.Time + IsTemporary bool + MaxAge int + MaxUses int + Uses int + type InviteStageInstance struct + Members []GuildMember + ParticipantCount int + SpeakerCount int + Topic string + type InviteTargetType int + const InviteTargetTypeEmbeddedApplication + const InviteTargetTypeNil + const InviteTargetTypeStream + func (i InviteTargetType) IsValid() bool + type MFALevel uint8 + type Message struct + Activity MessageActivity + Application Application + ApplicationID Snowflake + Attachments []Attachment + Author User + ChannelID Snowflake + Content string + EditedTimestamp time.Time + Embeds []Embed + Flags MessageFlag + GuildID Snowflake + ID Snowflake + IsMentionEveryone bool + IsPinned bool + IsTextToSpeech bool + Member GuildMember + MentionChannels []ChannelMention + MentionRoles []Role + Mentions []User + MessageReference MessageReference + Nonce string + Reactions []Reaction + Timestamp time.Time + Type int + WebhookID Snowflake + type MessageActivity struct + PartyID string + Type MessageActivityType + type MessageActivityType int + const MessageActivityTypeJoin + const MessageActivityTypeJoinRequest + const MessageActivityTypeListen + const MessageActivityTypeNil + const MessageActivityTypeSpectate + func (m MessageActivityType) IsValid() bool + type MessageFlag uint16 + const MessageFlagCrossPosted + const MessageFlagEphemeral + const MessageFlagFailedToMentionSomeRolesInThread + const MessageFlagHasThread + const MessageFlagIsCrossPost + const MessageFlagLoading + const MessageFlagNil + const MessageFlagSourceMessageDeleted + const MessageFlagSuppressEmbeds + const MessageFlagUrgent + type MessageNotificationsLevel uint8 + type MessageReference struct + ChannelID Snowflake + FailIfNotExists bool + GuildID Snowflake + MessageID Snowflake + type MessageType uint8 + const MessageTypeCall + const MessageTypeChannelFollowAdd + const MessageTypeChannelIconChange + const MessageTypeChannelNameChange + const MessageTypeChannelPinnedMessage + const MessageTypeChatInputCommand + const MessageTypeContextMenuCommand + const MessageTypeDefault + const MessageTypeGuildDiscoveryGracePeriodFinalWarning + const MessageTypeGuildDiscoveryGracePeriodInitialWarning + const MessageTypeGuildInviteReminder + const MessageTypeGuildMemberJoin + const MessageTypeInvalid + const MessageTypeRecipientAdd + const MessageTypeRecipientRemove + const MessageTypeReply + const MessageTypeThreadCreated + const MessageTypeThreadStarterMessage + const MessageTypeUserPremiumGuildSubscription + const MessageTypeUserPremiumGuildSubscriptionTier1 + const MessageTypeUserPremiumGuildSubscriptionTier2 + const MessageTypeUserPremiumGuildSubscriptionTier3 + func (messageType MessageType) IsValid() bool + type NSFWLevel uint8 + type Overwrite struct + Allow PermissionFlag + Deny PermissionFlag + ID Snowflake + Type OverwriteIDType + type OverwriteIDType uint8 + const OverwriteIDTypeRole + const OverwriteIDTypeUser + func (overwriteIDType OverwriteIDType) IsValid() bool + type PermissionFlag uint64 + const PermissionFlagALL + const PermissionFlagAddReactions + const PermissionFlagAdministrator + const PermissionFlagAttachFiles + const PermissionFlagBanMembers + const PermissionFlagChangeNickname + const PermissionFlagConnect + const PermissionFlagCreateInstantInvite + const PermissionFlagCreatePrivateThreads + const PermissionFlagCreatePublicThreads + const PermissionFlagDeafenMembers + const PermissionFlagEmbedLinks + const PermissionFlagKickMembers + const PermissionFlagManageChannels + const PermissionFlagManageEmojisAndStickers + const PermissionFlagManageGuild + const PermissionFlagManageMessages + const PermissionFlagManageNicknames + const PermissionFlagManageRoles + const PermissionFlagManageThreads + const PermissionFlagManageWebhooks + const PermissionFlagMentionEveryone + const PermissionFlagMoveMembers + const PermissionFlagMuteMembers + const PermissionFlagNil + const PermissionFlagPrioritySpeaker + const PermissionFlagReadMessageHistory + const PermissionFlagRequestToSpeak + const PermissionFlagSendMessageInThreads + const PermissionFlagSendMessages + const PermissionFlagSendTTSMessage + const PermissionFlagSkippedNotReal + const PermissionFlagSpeak + const PermissionFlagStartEmbeddedActivities + const PermissionFlagStream + const PermissionFlagUseApplicationCommands + const PermissionFlagUseExternalEmojis + const PermissionFlagUseExternalStickers + const PermissionFlagUseVoiceActivityDetection + const PermissionFlagViewAuditLog + const PermissionFlagViewChannel + const PermissionFlagViewGuildInsights + const PermissionModerateMembers + func (permissionFlag PermissionFlag) Contains(flags PermissionFlag) bool + func (permissionFlag PermissionFlag) IsValid() bool + type PremiumTier uint8 + const PremiumTier0 + const PremiumTier1 + const PremiumTier2 + const PremiumTier3 + func (premiumTier PremiumTier) IsValid() bool + type PremiumType uint8 + const PremiumTypeNil + const PremiumTypeNitro + const PremiumTypeNitroClassic + func (premiumType PremiumType) IsValid() bool + type PresenceStatus string + const PresenceStatusDnd + const PresenceStatusIdle + const PresenceStatusNil + const PresenceStatusOffline + const PresenceStatusOnline + func (status PresenceStatus) IsValid() bool + type PresenceUpdate struct + Activities []Activity + ClientStatus ClientStatus + GuildID Snowflake + Status PresenceStatus + User User + type PrivacyLevel int8 + const PrivacyLevelGuildOnly + const PrivacyLevelNil + const PrivacyLevelPublic + func (privacyLevel PrivacyLevel) IsValid() bool + type Reaction struct + Count int + Emoji Emoji + IsMe bool + type Role struct + Color int + ID Snowflake + IconHash ImageHash + IsHoist bool + IsManaged bool + Mentionable bool + Name string + Permissions PermissionFlag + Position int + Tag RoleTag + UnicodeEmoji string + type RoleTag struct + BotID Snowflake + IntegrationID Snowflake + IsPremiumSubscriber bool + type ShardInformation []int + func (s ShardInformation) Count() int + func (s ShardInformation) ID() int + type Snowflake uint64 + func (snowflake *Snowflake) UnmarshalJSON(data []byte) error + func (snowflake Snowflake) Increment() uint16 + func (snowflake Snowflake) InternalProcessID() uint8 + func (snowflake Snowflake) InternalWorkerID() uint8 + func (snowflake Snowflake) IsValid() bool + func (snowflake Snowflake) Timestamp() time.Time + type StageInstance struct + ChannelID Snowflake + GuildID Snowflake + ID Snowflake + IsDiscoverableDisabled bool + PrivacyLevel PrivacyLevel + Topic string + type Sticker struct + Asset string + Description string + FormatType StickerFormatType + GuildID Snowflake + ID Snowflake + IsAvailable bool + Name string + PackID Snowflake + SortValue int + Tags string + Type StickerType + User User + type StickerFormatType uint8 + const StickerFormatTypeAPNG + const StickerFormatTypeLOTTIE + const StickerFormatTypeNil + const StickerFormatTypePNG + func (stickerFormatType StickerFormatType) IsValid() bool + type StickerType uint8 + const StickerTypeGuild + const StickerTypeNil + const StickerTypeStandard + func (stickerType StickerType) IsValid() bool + type SystemChannelFlag uint8 + const SystemChannelFlagALL + const SystemChannelFlagNil + const SystemChannelFlagPremiumSubscriptions + const SystemChannelFlagSuppressGuildReminderNotifications + const SystemChannelFlagSuppressJoinNotifications + func (systemChannelFlag SystemChannelFlag) Contains(flags SystemChannelFlag) bool + func (systemChannelFlag SystemChannelFlag) IsValid() bool + type Team struct + ID Snowflake + IconHash ImageHash + Members []TeamMember + Name string + OwnerID Snowflake + type TeamMember struct + MembershipState TeamMembershipState + Permissions []string + TeamID Snowflake + User User + type TeamMembershipState uint8 + const TeamMembershipStateAccepted + const TeamMembershipStateInvalid + const TeamMembershipStateInvited + func (teamMembershipState TeamMembershipState) IsValid() bool + type ThreadMember struct + Flags MessageType + ID Snowflake + JoinTimeStamp Snowflake + UserID Snowflake + type ThreadMetadata struct + ArchiveTimestamp time.Time + AutoArchiveDuration int + IsArchived bool + IsInvitable bool + IsLocked bool + type UnavailableGuild struct + ID Snowflake + IsUnavailable bool + type User struct + AvatarHash ImageHash + BannerAccentColor int + BannerHash ImageHash + Discriminator string + Email string + Flags UserFlag + ID Snowflake + IsBot bool + IsSystemUser bool + IsVerified bool + Locale string + MFAEnabled bool + PremiumType PremiumType + PublicFlags UserFlag + Username string + type UserFlag uint32 + const UserFlagAll + const UserFlagBugHunterLevel1 + const UserFlagBugHunterLevel2 + const UserFlagDiscordCertifiedModerator + const UserFlagDiscordEmployee + const UserFlagEarlySupporter + const UserFlagEarlyVerifiedBotDeveloper + const UserFlagHouseBalance + const UserFlagHouseBravery + const UserFlagHouseBrilliance + const UserFlagHypeSquadEvents + const UserFlagNil + const UserFlagPartneredServerOwner + const UserFlagTeamUser + const UserFlagVerifiedBot + func (userFlag UserFlag) Contains(flags UserFlag) bool + func (userFlag UserFlag) IsValid() bool + type VerificationLevel uint8 + type VoiceQualityMode uint8 + const VoiceQualityModeAuto + const VoiceQualityModeFull + const VoiceQualityModeInvalid + func (voiceQualityMode VoiceQualityMode) IsValid() bool + type VoiceRegion struct + ID string + IsCustom bool + IsDeprecated bool + IsOptimal bool + Name string + type VoiceState struct + ChannelID Snowflake + GuildID Snowflake + GuildMember GuildMember + IsDeafened bool + IsMuted bool + IsSelfDeafened bool + IsSelfMuted bool + IsSelfStreaming bool + IsSuppressed bool + RequestToSpeakTimestamp time.Time + SessionID string + UserID Snowflake + type WelcomeScreen struct