Versions in this module Expand all Collapse all v1 v1.0.1 Mar 1, 2022 Changes in this version + const AudioStatusPause + const AudioStatusResume + const AudioStatusStart + const AudioStatusStop + const ChannelTypeApplication + const ChannelTypeCategory + const ChannelTypeForum + const ChannelTypeLive + const ChannelTypeText + const ChannelTypeVoice + const DefaultColor + const ReactionTargetTypeComment + const ReactionTargetTypeFeed + const ReactionTargetTypeMsg + const ReactionTargetTypeReply + func OPMeans(op OPCode) string + type APIPermission struct + AuthStatus int + Desc string + Method string + Path string + type APIPermissionDemand struct + APIIdentify *APIPermissionDemandIdentify + ChannelID string + Desc string + GuildID string + Title string + type APIPermissionDemandIdentify struct + Method string + Path string + type APIPermissionDemandToCreate struct + APIIdentify *APIPermissionDemandIdentify + ChannelID string + Desc string + type APIPermissions struct + APIList []*APIPermission + type ActionType uint32 + const ActionTypeSendARK + type Announces struct + ChannelID string + GuildID string + MessageID string + type Ark struct + KV []*ArkKV + TemplateID int + type ArkKV struct + Key string + Obj []*ArkObj + Value string + type ArkObj struct + ObjKV []*ArkObjKV + type ArkObjKV struct + Key string + Value string + type AudioAction struct + ChannelID string + GuildID string + Text string + URL string + type AudioControl struct + Status AudioStatus + Text string + URL string + type AudioStatus uint32 + type Channel struct + GuildID string + ID string + type ChannelAnnouncesToCreate struct + MessageID string + type ChannelPermissions struct + ChannelID string + Permissions string + UserID string + type ChannelPrivateType int + const ChannelPrivateTypeAdminAndMember + const ChannelPrivateTypeOnlyAdmin + const ChannelPrivateTypePublic + type ChannelRolesPermissions struct + ChannelID string + Permissions string + RoleID string + type ChannelSubType int + const ChannelSubTypeChat + const ChannelSubTypeGuide + const ChannelSubTypeNotice + const ChannelSubTypeTeamGame + type ChannelType int + type ChannelValueObject struct + ApplicationID string + Name string + OwnerID string + ParentID string + Position int64 + PrivateType ChannelPrivateType + PrivateUserIDs []string + SpeakPermission SpeakPermissionType + SubType ChannelSubType + Type ChannelType + type DirectMessage struct + ChannelID string + CreateTime string + GuildID string + type DirectMessageToCreate struct + RecipientID string + SourceGuildID string + type Duration time.Duration + func (d *Duration) UnmarshalJSON(bytes []byte) error + type Embed struct + Description string + Fields []*EmbedField + Prompt string + Thumbnail MessageEmbedThumbnail + Title string + type EmbedField struct + Name string + Value string + type Emoji struct + ID string + Type int + type EventType string + const EventAtMessageCreate + const EventAudioFinish + const EventAudioOffMic + const EventAudioOnMic + const EventAudioStart + const EventChannelCreate + const EventChannelDelete + const EventChannelUpdate + const EventDirectMessageCreate + const EventGuildCreate + const EventGuildDelete + const EventGuildMemberAdd + const EventGuildMemberRemove + const EventGuildMemberUpdate + const EventGuildUpdate + const EventMessageAuditPass + const EventMessageAuditReject + const EventMessageCreate + const EventMessageReactionAdd + const EventMessageReactionRemove + type Guild struct + Channels []*Channel + Desc string + ID string + Icon string + IsOwner bool + JoinedAt Timestamp + MaxMembers int64 + MemberCount int + Name string + OwnerID string + UnionOrgID string + UnionWorldID string + type GuildAnnouncesToCreate struct + ChannelID string + MessageID string + type GuildMembersPager struct + After string + Limit string + func (g *GuildMembersPager) QueryParams() map[string]string + type GuildPager struct + After string + Before string + Limit string + func (g *GuildPager) QueryParams() map[string]string + type GuildRoles struct + GuildID string + NumLimit string + Roles []*Role + type Intent int + const IntentAudio + const IntentAudit + const IntentDirectMessageReactions + const IntentDirectMessageTyping + const IntentDirectMessages + const IntentGuildAtMessage + const IntentGuildBans + const IntentGuildEmojis + const IntentGuildIntegrations + const IntentGuildInvites + const IntentGuildMembers + const IntentGuildMessageReactions + const IntentGuildMessageTyping + const IntentGuildMessages + const IntentGuildPresences + const IntentGuildVoiceStates + const IntentGuildWebhooks + const IntentGuilds + const IntentNone + func EventToIntent(events ...EventType) Intent + type Interaction struct + ApplicationID uint64 + Data *InteractionData + Type InteractionType + Version uint32 + type InteractionData struct + Name string + Resolved interface{} + Type InteractionDataType + type InteractionDataType uint32 + const InteractionDataTypeChatSearch + type InteractionType uint32 + const InteractionTypeCommand + const InteractionTypePing + type Keyboard struct + ID string + type LayoutType uint32 + const LayoutTypeImageText + type Markdown struct + Params []*MarkdownParams + TemplateID int + type MarkdownParams struct + Key string + Values []string + type Member struct + GuildID string + JoinedAt Timestamp + Nick string + Roles []string + User *User + type MemberAddRoleBody struct + Channel *Channel + type MemberDeleteOption func(*MemberDeleteOpts) + func WithAddBlackList(b bool) MemberDeleteOption + type MemberDeleteOpts struct + AddBlackList bool + type Message struct + Ark *Ark + Attachments []*MessageAttachment + Author *User + ChannelID string + Content string + DirectMessage bool + EditedTimestamp Timestamp + Embeds []*Embed + GuildID string + ID string + Member *Member + MentionEveryone bool + Mentions []*User + MessageReference *MessageReference + SeqInChannel string + Timestamp Timestamp + type MessageArk struct + Ark *Ark + type MessageAttachment struct + URL string + type MessageAudit struct + AuditID string + AuditTime string + ChannelID string + CreateTime string + GuildID string + MessageID string + SeqInChannel string + type MessageEmbedThumbnail struct + URL string + type MessagePagerType string + const MPTAfter + const MPTAround + const MPTBefore + type MessageReaction struct + ChannelID string + Emoji Emoji + GuildID string + Target ReactionTarget + UserID string + type MessageReference struct + IgnoreGetMessageError bool + MessageID string + type MessageToCreate struct + Ark *Ark + Content string + Embed *Embed + Image string + Keyboard string + Markdown *Markdown + MessageReference *MessageReference + MsgID string + type MessagesPager struct + ID string + Limit string + Type MessagePagerType + func (m *MessagesPager) QueryParams() map[string]string + type OPCode int + const WSDispatchEvent + const WSHeartbeat + const WSHeartbeatAck + const WSHello + const WSIdentity + const WSInvalidSession + const WSReconnect + const WSResume + type Pager interface + QueryParams func() map[string]string + type ReactionTarget struct + ID string + Type ReactionTargetType + type ReactionTargetType = int32 + type Role struct + Color uint32 + Hoist uint32 + ID RoleID + MemberCount uint32 + MemberLimit uint32 + Name string + type RoleID string + type Schedule struct + Creator *Member + Description string + EndTimestamp string + ID string + JumpChannelID string + Name string + RemindType string + StartTimestamp string + type ScheduleWrapper struct + Schedule *Schedule + type SearchInputResolved struct + Keyword string + type SearchLayout struct + ActionType ActionType + LayoutType LayoutType + Records []SearchRecord + Title string + type SearchRecord struct + Cover string + Tips string + Title string + URL string + type SearchRsp struct + Layouts []SearchLayout + type Session struct + ID string + Intent Intent + LastSeq uint32 + Shards ShardConfig + Token token.Token + URL string + func (s *Session) String() string + type SessionStartLimit struct + MaxConcurrency uint32 + Remaining uint32 + ResetAfter uint32 + Total uint32 + type ShardConfig struct + ShardCount uint32 + ShardID uint32 + type SpeakPermissionType int + const SpeakPermissionTypeAdminAndMember + const SpeakPermissionTypePublic + type Timestamp string + func (t Timestamp) Time() (time.Time, error) + type UpdateChannelPermissions struct + Add string + Remove string + type UpdateGuildMute struct + MuteEndTimestamp string + MuteSeconds string + type UpdateResult struct + GuildID string + Role *Role + type UpdateRole struct + Filter *UpdateRoleFilter + GuildID string + Update *Role + type UpdateRoleFilter struct + Color uint32 + Hoist uint32 + Name uint32 + type UpdateRoleInfo struct + Color uint32 + Hoist uint32 + Name string + type User struct + Avatar string + Bot bool + ID string + UnionOpenID string + UnionUserAccount string + Username string + type WSATMessageData Message + type WSAudioData AudioAction + type WSChannelData Channel + type WSDirectMessageData Message + type WSGuildData Guild + type WSGuildMemberData Member + type WSHelloData struct + HeartbeatInterval int + type WSIdentityData struct + Intents Intent + Properties struct{ ... } + Shard []uint32 + Token string + type WSMessageAuditData MessageAudit + type WSMessageData Message + type WSMessageReactionData MessageReaction + type WSPayload struct + Data interface{} + RawMessage []byte + type WSPayloadBase struct + OPCode OPCode + Seq uint32 + Type EventType + type WSReadyData struct + SessionID string + Shard []uint32 + User struct{ ... } + Version int + type WSResumeData struct + Seq uint32 + SessionID string + Token string + type WSUser struct + Bot bool + ID string + Username string + type WebsocketAP struct + SessionStartLimit SessionStartLimit + Shards uint32 + URL string