Versions in this module Expand all Collapse all v1 v1.0.1 Apr 11, 2023 Changes in this version type Config + Proxy string type Message + EditedTimestamp *time.Time + Embeds []*discordgo.MessageEmbed + MentionRoles []string + MessageReference *discordgo.MessageReference + Pinned bool + ReferencedMessage *Message + Timestamp time.Time + Type *discordgo.MessageType v1.0.0 Mar 30, 2023 Changes in this version + const InteractionCreateEvent + const InteractionSuccessEvent + const MessageCreateEvent + const MessageUpdateEvent + type ApplicationCommandSearch struct + Applications []*discordgo.Application + Commands []*discordgo.ApplicationCommand + type Client struct + Referer string + func New(ctx context.Context, cfg *Config) (*Client, error) + 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 struct + Components []*Component + CustomID string + Label string + Style int + Type int + type Config struct + Debug bool + Dialer func(ctx context.Context, network, addr string) (net.Conn, error) + HTTPClient *http.Client + Locale string + Referer string + SuperProperties string + Token string + UserAgent string + type InteractionCommand struct + ApplicationID string + ChannelID string + Data InteractionCommandData + GuildID string + Nonce string + SessionID string + Type int + type InteractionCommandData struct + ApplicationCommand *discordgo.ApplicationCommand + Attachments []*discordgo.MessageAttachment + ID string + Name string + Options []*discordgo.ApplicationCommandInteractionDataOption + Type int + Version string + type InteractionComponent struct + ApplicationID string + ChannelID string + Data InteractionComponentData + GuildID string + MessageID string + Nonce string + SessionID string + Type int + type InteractionComponentData struct + ComponentType int + CustomID string + type Message struct + Attachments []*discordgo.MessageAttachment + ChannelID string + Components []*Component + Content string + GuildID string + ID string + Nonce string + type SuperProperties struct + Browser string + BrowserUserAgent string + BrowserVersion string + ClientBuildNumber int + ClientEventSource interface{} + Device string + OS string + OSVersion string + Referrer string + ReferrerCurrent string + ReferringDomain string + ReferringDomainCurr string + ReleaseChannel string + SystemLocale string + func (s *SuperProperties) Marshal() error + func (s *SuperProperties) Unmarshal() error + type User struct + Application UserApplication + Profile UserProfile + type UserApplication struct + Flags int + ID string + Verified bool + type UserProfile struct + Bio string