Discover Packages
github.com/austinvalle/dgp
pkg
discord
package
Version:
v0.0.0-...-58dbf55
Opens a new window with list of versions in this module.
Published: Sep 1, 2022
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type DceAttachment struct {
ID string `json:"id"`
URL string `json:"url"`
FileName string `json:"fileName"`
FileSizeBytes int `json:"fileSizeBytes"`
}
type DceAuthor struct {
ID string `json:"id"`
Name string `json:"name"`
Discriminator string `json:"discriminator"`
Nickname string `json:"nickname"`
Color string `json:"color"`
IsBot bool `json:"isBot"`
AvatarURL string `json:"avatarUrl"`
}
type DceChannel struct {
ID string `json:"id"`
Type string `json:"type"`
CategoryID string `json:"categoryId"`
Category string `json:"category"`
Name string `json:"name"`
}
type DceEmbed struct {
Title string `json:"title"`
URL string `json:"url"`
Timestamp *time .Time `json:"timestamp,omitempty"`
Description string `json:"description"`
Thumbnail DceThumbnail `json:"thumbnail"`
Fields []DceField `json:"fields"`
}
type DceEmoji struct {
ID string `json:"id"`
Name string `json:"name"`
IsAnimated bool `json:"isAnimated"`
ImageURL string `json:"imageUrl"`
}
type DceField struct {
Name string `json:"name"`
Value string `json:"value"`
IsInline bool `json:"isInline"`
}
type DceGuild struct {
ID string `json:"id"`
Name string `json:"name"`
IconURL string `json:"iconUrl"`
}
type DceMention struct {
ID string `json:"id"`
Name string `json:"name"`
Discriminator string `json:"discriminator"`
Nickname string `json:"nickname"`
IsBot bool `json:"isBot"`
}
type DceMessage struct {
ID string `json:"id"`
Type string `json:"type"`
Timestamp *time .Time `json:"timestamp,omitempty"`
TimestampEdited *time .Time `json:"timestampEdited,omitempty"`
CallEndedTimestamp *time .Time `json:"callEndedTimestamp,omitempty"`
IsPinned bool `json:"isPinned"`
Content string `json:"content"`
Author DceAuthor `json:"author"`
Attachments []DceAttachment `json:"attachments"`
Embeds []DceEmbed `json:"embeds"`
Reactions []DceReaction `json:"reactions"`
Mentions []DceMention `json:"mentions"`
Reference DceReference `json:"reference,omitempty"`
}
type DceReaction struct {
Emoji DceEmoji `json:"emoji"`
Count int `json:"count"`
}
type DceReference struct {
MessageID string `json:"messageId"`
ChannelID string `json:"channelId"`
GuildID string `json:"guildId"`
}
type DceThumbnail struct {
URL string `json:"url"`
Width int `json:"width"`
Height int `json:"height"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.