Documentation ¶
Index ¶
- Constants
- type ApplicationCommandSearch
- type Client
- func (c *Client) DM(userID string) string
- func (c *Client) Do(ctx context.Context, method string, path string, body interface{}) ([]byte, error)
- func (c *Client) Download(ctx context.Context, u string, output string) error
- func (c *Client) OnEvent(callback func(*discordgo.Event))
- func (c *Client) Session() string
- func (c *Client) Start(ctx context.Context) error
- func (c *Client) Stop() error
- type Component
- type Config
- type InteractionCommand
- type InteractionCommandData
- type InteractionComponent
- type InteractionComponentData
- type Message
- type SuperProperties
- type User
- type UserApplication
- type UserProfile
Constants ¶
View Source
const ( InteractionCreateEvent = "INTERACTION_CREATE" InteractionSuccessEvent = "INTERACTION_SUCCESS" MessageCreateEvent = "MESSAGE_CREATE" MessageUpdateEvent = "MESSAGE_UPDATE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationCommandSearch ¶
type ApplicationCommandSearch struct { Applications []*discordgo.Application `json:"applications"` Commands []*discordgo.ApplicationCommand `json:"application_commands"` }
type Client ¶
type Client struct { Referer string // contains filtered or unexported fields }
type InteractionCommand ¶
type InteractionCommandData ¶
type InteractionCommandData struct { Version string `json:"version"` ID string `json:"id"` Name string `json:"name"` Type int `json:"type"` Options []*discordgo.ApplicationCommandInteractionDataOption `json:"options"` ApplicationCommand *discordgo.ApplicationCommand `json:"application_command"` Attachments []*discordgo.MessageAttachment `json:"attachments"` }
type InteractionComponent ¶
type InteractionComponent struct { Type int `json:"type"` ApplicationID string `json:"application_id"` ChannelID string `json:"channel_id"` GuildID string `json:"guild_id,omitempty"` SessionID string `json:"session_id"` Data InteractionComponentData `json:"data"` Nonce string `json:"nonce,omitempty"` MessageID string `json:"message_id"` }
type Message ¶
type Message struct { //discordgo.Message // The ID of the message. ID string `json:"id"` // The ID of the channel in which the message was sent. ChannelID string `json:"channel_id"` // The ID of the guild in which the message was sent. GuildID string `json:"guild_id,omitempty"` // The content of the message. Content string `json:"content"` // Nonce used for validating a message was sent. Nonce string `json:"nonce"` // A list of attachments present in the message. Attachments []*discordgo.MessageAttachment `json:"attachments"` // A list of components attached to the message. Components []*Component `json:"components"` // A list of embeds present in the message. Embeds []*discordgo.MessageEmbed `json:"embeds"` }
type SuperProperties ¶
type SuperProperties struct { OS string `json:"os"` Browser string `json:"browser"` Device string `json:"device"` SystemLocale string `json:"system_locale"` BrowserUserAgent string `json:"browser_user_agent"` BrowserVersion string `json:"browser_version"` OSVersion string `json:"os_version"` Referrer string `json:"referrer"` ReferringDomain string `json:"referring_domain"` ReferrerCurrent string `json:"referrer_current"` ReferringDomainCurr string `json:"referring_domain_current"` ReleaseChannel string `json:"release_channel"` ClientBuildNumber int `json:"client_build_number"` ClientEventSource interface{} `json:"client_event_source"` // contains filtered or unexported fields }
func (*SuperProperties) Marshal ¶
func (s *SuperProperties) Marshal() error
func (*SuperProperties) Unmarshal ¶
func (s *SuperProperties) Unmarshal() error
type User ¶
type User struct { discordgo.User Profile UserProfile `json:"user_profile"` Application UserApplication `json:"application"` }
type UserApplication ¶
type UserProfile ¶
type UserProfile struct {
Bio string `json:"bio"`
}
Click to show internal directories.
Click to hide internal directories.