Documentation
¶
Index ¶
- func NewRestRequest() *request
- type Attachment
- type Bucket
- type ChannelMention
- type Embed
- type EmbedAuthor
- type EmbedField
- type EmbedFooter
- type EmbedImage
- type EmbedProvider
- type EmbedThumbnail
- type EmbedVideo
- type Emoji
- type GatewayConnection
- type GatewayPayload
- type GetGatewayResponse
- type HelloPayload
- type IdentityConnectionProperties
- type IdentityPayload
- type Message
- type MessageActivity
- type MessageApplication
- type MessageReference
- type Reaction
- type ResumePayload
- type SessionStartLimit
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRestRequest ¶
func NewRestRequest() *request
Types ¶
type Attachment ¶
type ChannelMention ¶
type Embed ¶
type Embed struct { Title string `json:"title"` Type string `json:"type"` Description string `json:"description"` Url string `json:"url"` Timestamp string `json:"timestamp"` Color int `json:"color"` Image EmbedImage `json:"image"` Thumbnail EmbedThumbnail `json:"thumbnail"` Video EmbedVideo `json:"video"` Provider EmbedProvider `json:"provider"` Author EmbedAuthor `json:"author"` Fields []EmbedField `json:"fields"` }
type EmbedAuthor ¶
type EmbedField ¶
type EmbedFooter ¶
type EmbedFooter struct {}
type EmbedImage ¶
type EmbedProvider ¶
type EmbedThumbnail ¶
type EmbedVideo ¶
type GatewayConnection ¶
type GatewayConnection struct {
// contains filtered or unexported fields
}
func ConnectToGateway ¶
func ConnectToGateway(token string, intents int, handler func(eventName string, eventData json.RawMessage)) (GatewayConnection, error)
type GatewayPayload ¶
type GatewayPayload struct { Op int `json:"op"` D json.RawMessage `json:"d,omitempty"` S int `json:"s,omitempty"` T string `json:"t,omitempty"` }
type GetGatewayResponse ¶
type GetGatewayResponse struct { Url string `json:"url"` Shards int `json:"shards"` SessionStartLimit SessionStartLimit `json:"session_start_limit"` }
type HelloPayload ¶
type IdentityPayload ¶
type IdentityPayload struct { Token string `json:"token"` Properties IdentityConnectionProperties `json:"properties"` Intents int `json:"intents"` }
type Message ¶
type Message struct { Id string `json:"id,omitempty"` ChannelID string `json:"channel_id,omitempty"` GuildID string `json:"guild_id,omitempty"` Author *User `json:"author,omitempty"` Content string `json:"content,omitempty"` EditedTimestamp time.Time `json:"edited_timestamp,omitempty"` Tts bool `json:"tts,omitempty"` MentionsEveryone bool `json:"mention_everyone,omitempty"` UserMentions []*User `json:"mentions,omitempty"` RoleMentions []string `json:"mention_roles,omitempty"` ChannelMentions []*ChannelMention `json:"mention_channels,omitempty"` Attachments []*Attachment `json:"attachments,omitempty"` Embeds []*Embed `json:"embeds,omitempty"` Reactions []*Reaction `json:"reactions,omitempty"` Pinned bool `json:"pinned,omitempty"` WebhookID string `json:"webhook_id,omitempty"` Type int `json:"type,omitempty"` Activity *MessageActivity `json:"activity,omitempty"` Application *MessageApplication `json:"application,omitempty"` MessageReference *MessageReference `json:"message_reference,omitempty"` Flags int `json:"flags,omitempty"` ReferencedMessage *Message `json:"referenced_message,omitempty"` }
type MessageActivity ¶
type MessageApplication ¶
type MessageReference ¶
type ResumePayload ¶
type SessionStartLimit ¶
type User ¶
type User struct { Id string `json:"id,omitempty"` Username string `json:"username,omitempty"` Discriminator string `json:"discriminator,omitempty"` Avatar string `json:"avatar,omitempty"` Bot bool `json:"bot,omitempty"` System bool `json:"system,omitempty"` MfaEnabled bool `json:"mfa_enabled,omitempty"` Locale string `json:"locale,omitempty"` Verified string `json:"verified,omitempty"` Email string `json:"email,omitempty"` Flags int `json:"flags,omitempty"` PremiumType int `json:"premium_type,omitempty"` PublicFlags int `json:"public_flags,omitempty"` }
Click to show internal directories.
Click to hide internal directories.