Skip to content

Undetected Discord api wrapper made by human, for bots.

License

Notifications You must be signed in to change notification settings

Implex-ltd/UcDiscord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Undetected Discord wrapper

Undetected Discord api wrapper made by human, for bots.

Install

go get -u github.com/Implex-ltd/ucdiscord/ucdiscord

Issues

$env:GOPRIVATE="github.com/Implex-ltd/"
$env:GOSUMDB="off"
set GOPRIVATE=github.com/Implex-ltd/ucdiscord/ucdiscord
go get -u github.com/Implex-ltd/ucdiscord/ucdiscord@version

Quick start

package main

import (
	"log"

	"github.com/Implex-ltd/cleanhttp/cleanhttp"
	"github.com/Implex-ltd/fingerprint-client/fpclient"
	u "github.com/Implex-ltd/ucdiscord/ucdiscord"
)

func main() {
	// Load fingerprint
	fp, err := fpclient.LoadFingerprint(&fpclient.LoadingConfig{
		FilePath: "./chrome.json",
	})
	if err != nil {
		panic(err)
	}

	// Load HTTP client
	http, err := cleanhttp.NewCleanHttpClient(&cleanhttp.Config{
		BrowserFp: fp,
		Proxy:     "http://0.0.0.0:8080",
	})
	if err != nil {
		return
	}

	// Create discord session
	client, err := u.NewClient(&u.ClientConfig{
		Token:       "FOOBAR123",
		GetCookies:  true,
		BuildNumber: 00000,
		Client:      http,
	})

	if err != nil {
		panic(err)
	}
    
    // Join a server
	resp, err := client.JoinGuild(&u.JoinConfig{
		InviteCode: "supercode",
		GuildID:    "00000000000000",
		ChannelID:  "00000000000000",
	})

	if err != nil {
		panic(err)
	}
    
	log.Printf("Joined %s (%s)\n", resp.Guild.Name, resp.Guild.ID)
}

About

Undetected Discord api wrapper made by human, for bots.

Resources

License

Stars

Watchers

Forks

Languages