1.0.9 • Published 4 years ago

@n0rmancodes/discord-user-actions v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

discord-user-actions

Discord actions done by users, now done programically. The only requirement is a Discord user token.

Documentation

Notice

This project is not affiliated with nor endorsed by Discord in any way. This project is independently run. I am not responsible if your account gets banned or deleted for any use of the package in previous, current, or future revisions.

Installation

npm i @n0rmancodes/discord-user-actions@latest

Sample code

This code creates a server, then deletes it 5 seconds after.

var dua = require("./index.js");
(async() => {
	dua.login(user,pass,function(body,err)	{
		if (body) {
			var tk = body.token;
			console.log(tk);
			dua.createServer(tk,"test","us-east",function(body,err) {
				if (!err) {
					console.log("server created!");
					console.log("deleting in 5 seconds...");
					setTimeout(async function() {
						await dua.deleteServer(tk, body.id);
						console.log("deleted!");
					},5000)
				} else {
					console.log(err);
				}
			})
		}
		
	})
})();
1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago