Versions in this module Expand all Collapse all v1 v1.0.0 Apr 1, 2022 Changes in this version + const EventNameMessageCreate + const EventNameMessageUpdate + const EventNameReady + const EventNameResumed + const OpcodeDispatch + const OpcodeHeartbeat + const OpcodeHeartbeatACK + const OpcodeHello + const OpcodeIdentify + const OpcodeInvalidSession + const OpcodePresenceUpdate + const OpcodeReconnect + const OpcodeRequestGuildMembers + const OpcodeResume + const OpcodeVoiceStateUpdate + const UserAgent + const Useragent + const XSuper + const XSuperProp + const XTrack + func Bypass(client *http.Client, serverid string, token string, invite string) error + func CommonHeaders(req *http.Request) *http.Request + func Contains(s []string, e string) bool + func DecodeBr(data []byte) ([]byte, error) + func EncodeImg(pathToImage string) (string, error) + func FindMessage(channel string, messageid string, token string) (string, error) + func GetFiles(dir string) ([]string, error) + func GetReactions(channel string, message string, token string, emoji string, after string) ([]string, error) + func HandleOutOfBounds() + func ProcessAvatar(av string, memberid string) error + func RandomResult() []string + func ReadBody(resp http.Response) ([]byte, error) + func ReadLines(filename string) ([]string, error) + func RegisterHeaders(req *http.Request) *http.Request + func RemoveDuplicateStr(strSlice []string) []string + func RemoveSubset(s []string, r []string) []string + func Ring(httpClient *http.Client, auth string, snowflake string) (int, error) + func Scrape(ws *Connection, Guild string, Channel string, index int) error + func ScrapeOffline(c *Connection, guild string, query string) error + func Snowflake() int64 + func TruncateLines(filename string, line []string) error + func ValidateBios(bios []string) []string + func WriteLines(filename string, line string) error + func XContextGen(guildID string, channelID string, ChannelType float64) (string, error) + type AvatarChange struct + Avatar string + type CallData struct + ChannelId string + GuildId interface{} + SelfDeaf bool + SelfMute bool + SelfVideo bool + type CallEvent struct + Data CallData + Op int + type ClientState struct + HighestLastMessageID string + ReadStateVersion int + UserGuildSettingsVersion int + type Config struct + Block bool + Call bool + CaptchaAPI string + ClientKey string + Close bool + Delay int + DisableKL bool + Friend bool + GatewayProxy bool + LongDelay int + MaxDMS int + MaxInvite int + Mutual bool + Offset int + Proxy string + ProxyForCaptcha bool + ProxyFromFile bool + ProxyProtocol string + Receive bool + Remove bool + RemoveM bool + ScrapeAvatars bool + ScrapeUsernames bool + Skip bool + SkipFailed bool + SleepSc int + Stop bool + Timeout int + Websocket bool + func GetConfig() (Config, error) + type Connection struct + AllMembers []string + Complete bool + Conn *websocket.Conn + Members []string + Messages chan []byte + OfflineScrape chan []byte + func (c *Connection) Close() error + func (c *Connection) Ping(interval time.Duration) + func (c *Connection) ReadHello() (int, error) + func (c *Connection) WriteJSONe(e *Event) error + func (c *Connection) WriteRaw(e interface{}) error + type Custom struct + GuildID interface{} + Limit int + Presence bool + Query string + type CustomEvent struct + Data Custom + Op int + type Data struct + Activities bool + ChannelID string + Channels map[string]interface{} + ClientState ClientState + GuildId interface{} + HeartbeatInterval int + Members []Member + Ops []Ops + Sequence int + SessionID string + ThreadMemberLists interface{} + Threads bool + Typing bool + type Embed struct + Author EmbedAuthor + Color int + Description string + Fields []EmbedField + Footer EmbedFooter + Image *MessageEmbedImage + Provider EmbedProvider + Thumbnail *MessageEmbedThumbnail + Title string + Type string + URL string + type EmbedAuthor struct + IconURL string + Name string + ProxyIconURL string + URL string + type EmbedField struct + Inline bool + Name string + Value string + type EmbedFooter struct + IconURL string + ProxyIconURL string + Text string + type EmbedProvider struct + Name string + URL string + type Emoji struct + Animated bool + ID string + Name string + type Event struct + Data Data + EventName string + Op int + Sequence int + type FormField struct + Description string + FieldType string + Label string + Required bool + Response bool + Values []string + type Guilds struct + ID string + type Identify struct + Capabilities int + Compress bool + Presence Presence + Properties Properties + Token string + type Instance struct + AllMembers []User + Client *http.Client + Config Config + Cookie string + Count int + Fingerprint string + GatewayProxy string + ID string + LastCount int + LastQuery string + Members []User + Messages []Message + Password string + Proxy string + Receiver bool + Rejoin int + ScrapeCount int + Token string + WG *sync.WaitGroup + Ws *Connection + func (in *Instance) AvatarChanger(avatar string) (http.Response, error) + func (in *Instance) BioChanger(bios []string) error + func (in *Instance) BlockUser(userid string) (int, error) + func (in *Instance) Call(snowflake string) error + func (in *Instance) CheckToken() int + func (in *Instance) CloseDMS(snowflake string) (int, error) + func (in *Instance) ContextProperties(invite, cookie, fingerprint string) (string, error) + func (in *Instance) Friend(Username string, Discrim int) (*http.Response, error) + func (in *Instance) GetCfBm(m, r, cookies string) (string, error) + func (in *Instance) GetCookieString() (string, error) + func (in *Instance) GetFingerprintString(cookie string) (string, error) + func (in *Instance) Invite(Code string) error + func (in *Instance) Inviter(invitationCode string, mode int, cookie string, fingerprint string) (int, string, string, error) + func (in *Instance) Leave(serverid string) int + func (in *Instance) NameChanger(name string) (http.Response, error) + func (in *Instance) NewConnection(fatalHandler func(err error)) (*Connection, error) + func (in *Instance) OpenChannel(recepientUID string) (string, error) + func (in *Instance) React(channelID string, MessageID string, Emoji string) error + func (in *Instance) SendMessage(channelSnowflake string, memberid string) (http.Response, error) + func (in *Instance) ServerCheck(serverid string) (int, error) + func (in *Instance) SolveCaptcha(sitekey string, cookie string, rqData string, rqToken string) (string, error) + func (in *Instance) SolveCaptcha2Captcha(sitekey string) (string, error) + func (in *Instance) SolveCaptchaCapmonster(sitekey string, cookies string, rqdata string) (string, error) + func (in *Instance) SolveCaptchaDeathByCaptcha(sitekey string) (string, error) + func (in *Instance) SolveCaptchaRucaptcha(sitekey string, rqData string, rqToken string) (string, error) + func (in *Instance) StartWS() error + func (in *Instance) UserInfo(userid string) (UserInf, error) + type Intent int + const IntentsAll + const IntentsAllWithoutPrivileged + const IntentsDirectMessageReactions + const IntentsDirectMessageTyping + const IntentsDirectMessages + const IntentsGuildBans + const IntentsGuildEmojis + const IntentsGuildIntegrations + const IntentsGuildInvites + const IntentsGuildMembers + const IntentsGuildMessageReactions + const IntentsGuildMessageTyping + const IntentsGuildMessages + const IntentsGuildPresences + const IntentsGuildVoiceStates + const IntentsGuildWebhooks + const IntentsGuilds + const IntentsNone + type Member struct + User User + type Message struct + Author User + Content string + Embeds []Embed + GuildID string + Reactions []Reaction + func GetMessage() ([]Message, error) + func GetRxn(channel string, messageid string, token string) (Message, error) + type MessageEmbedImage struct + Height int + ProxyURL string + URL string + Width int + type MessageEmbedThumbnail struct + Height int + ProxyURL string + URL string + Width int + type NameChange struct + Password string + Username string + type Ops struct + Items []Userinfo + Op string + Range interface{} + type Pload struct + ClientKey string + ErrorID int + Task Task + TaskID int + type Presence struct + AFK bool + Activities []string + Since int + Status string + type Properties struct + Browser string + BrowserUserAgent string + BrowserVersion string + ClientBuildNumber int + Device string + OS string + OSVersion string + Referrer string + ReferrerCurrent string + ReferringDomain string + ReferringDomainCurrent string + ReleaseChannel string + type Reaction struct + Count int + Emojis Emoji + type Reactionx struct + ID string + type Resp struct + ErrorCode string + ErrorDesc string + ErrorID int + Solution Sol + Status string + TaskID int + type RingData struct + Recipients interface{} + type Sol struct + Ans string + type Task struct + Cookies string + Data string + ProxyAddress string + ProxyLogin string + ProxyPassword string + ProxyPort int + ProxyType string + Type string + UserAgent string + WebsiteKey string + WebsiteURL string + type User struct + Avatar string + Discriminator string + ID string + Username string + type UserInf struct + Mutual []Guilds + User User + type Userinfo struct + Member Member + type XContext struct + Location string + LocationChannelID string + LocationChannelType float64 + LocationGuildID string