Documentation ¶
Index ¶
Constants ¶
View Source
const API_BASE = "/api/v9"
View Source
const DOMAIN = "discord.com"
Variables ¶
View Source
var Err404 = errors.New("404")
View Source
var ErrBadAuth = errors.New("error 401: unauthorized! this means the token is bad")
View Source
var ErrMsgNotFound = errors.New("msg not found")
Functions ¶
func DownloadMedia ¶
Types ¶
type ConfigType ¶
func (ConfigType) FetchMain ¶
func (conf ConfigType) FetchMain()
func (ConfigType) FetchMsgId ¶
func (ConfigType) GetCookie ¶
func (conf ConfigType) GetCookie()
type JSONMetaAttachment ¶
type JSONMetaAttachment struct { discord.Attachment AuthorID string }
type JSONMetaData ¶
type JSONMetaData struct { MsgList []discord.Message `json:"messages"` MsgIDToIndex map[string]int `json:"msgIdToIndex"` MsgByAuthor map[string][]string `json:"msgByAuthor"` AttachList []JSONMetaAttachment `json:"attachments"` AttachIDToIndex map[string]int `json:"attachmentIdToIndex"` AttachByAuthor map[string][]string `json:"attachmentByAuthor"` }
type NewDMChannelResp ¶
type NewDMChannelResp struct {
Id string `json:"id"`
}
Click to show internal directories.
Click to hide internal directories.