djs-user
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Discord.js User

By: TBHGodPro



Getting Started

To get started, run npm i djs-user in the console, then setup your main file as so:

Make sure to replace TOKEN with your USER Token

const Discord = require("djs-user");

const client = new Discord.Client({
	// Enable built in debug logging
	debug: false,
	// Log heartbeats (ONLY WORKS WITH debug ENABLED)
	logHeartbeats: false
});

client.on("ready", () => {
	// Code Here
});

client.login(
	"TOKEN",
	{
		client_state: {
			guild_hashes: {},
			highest_last_message_id: "0",
			read_state_version: 0,
			user_guild_settings_version: -1,
			user_settings_version: -1
		},
		properties: {
			os: "Windows",
			browser: "Discord Desktop",
			release_channel: "stable",
			system_locale: "en-US"
		},
		presence: {
			activities: [],
			afk: false,
			since: null,
			status: "online"
		}
	},
	{}
);

And now you're set!

Extra Packages

Discord.js User has extra packages you can use, as shown below:

  • @djs-user/collection Contains the Collection class, which is similar to an array but is much more optimized and contains async versions of many methods to improve the developer experience

Readme

Keywords

none

Package Sidebar

Install

npm i djs-user

Weekly Downloads

3

Version

1.0.0

License

ISC

Unpacked Size

53 MB

Total Files

97

Last publish

Collaborators

  • derpdevs