0.7.7 • Published 3 years ago

discord.js-zed v0.7.7

Weekly downloads
930
License
ISC
Repository
github
Last release
3 years ago

MAKE SURE YOU KNOW JS AND THE DISCORD.JS PACKAGE!

Support server: https://discord.gg/dc99VGUrrw

Example:

const DjsClient = require('discord.js').Client,
	TestClient = new DjsClient(),
	ZedDjsClient = require('../../index.js').Client,
	ZedDjs = new ZedDjsClient({ Log: true }); //Optional! Log is a Part and Settings that logs a Object about the Package, rather only true or false

ZedDjs.connect(
	TestClient,
	'Nzg5MjY2Mzg0OTYxOTI5MjY4.X9vjmg.j7idWfNHDv0Wc-grLQ8ZQ7zC2wo'
); //Your Bot's Client, Your bot's token
function ReadyforZedDjs() {
	console.log('Bot is ready!')
}
ZedDjs.ready(TestClient, 'With discord.js-zed!', 'PLAYING', ReadyforZedDjs)//Your bots' client, the bot's status, the bot's status type Rather 'PLAYING, STREAMING, or LISTENING', ANY FUNCTION!

TestClient.on('message', async msg => {
	switch (msg.author.bot) {
		case true:
			return;
			break;
	}
	switch (msg.content) {
		case 'Ping':
			ZedDjs.messageSend('Pong', msg); //Your message, Your bot's message event
			break;
		case 'Pong':
			ZedDjs.messageSend('Ping', msg);
			break;
		case 'Send':
			ZedDjs.messageSend('Sent!', msg, '774492952247402506', TestClient)
			break;
		case 'Destroy':
			await ZedDjs.disconnect(TestClient).then(disconnected => {
			console.log('Destroyed!')	
			}) //Your bot's client
			break;
		case 'Dm':
			ZedDjs.messageDm('Ive dm\'ed You!', msg); //Dm the author of the message, your message, Your bot's message event
			break;
		case 'DmAUser':
			ZedDjs.messageDm('Ive dm\'ed A user!', msg, '704697854207459419', Client); //your message, your bots message event, User id you wanna Get DM'ED, Your bot's client
			break;
		case 'React':
			await ZedDjs.react(msg, '🌙'); //NOTE ONLY LOCAL REACT, NO EVENT LISTENERS AND ONLY YOUR MESSAGE CAN BE REACTED NOT THE BOT'S MESSAGE!
		case 'Guilds':
			let Guilds = await ZedDjs.fetchGuildSize(TestClient);
			ZedDjs.messageSend(Guilds + ' Server(s)!', msg);
			break;
		case 'Users':
			let Users = await ZedDjs.fetchUsersSize(TestClient);
			ZedDjs.messageSend(Users + ' User(s)!', msg);
			break;
		case 'Emojis':
			let Emojis = await ZedDjs.fetchEmojisSize(TestClient);
			ZedDjs.messageSend(Emojis + ' Emoji(s)!', msg);
			break;
		case 'Roles':
			let Roles = await ZedDjs.fetchRolesSize(TestClient);
			ZedDjs.messageSend(Roles + ' Role(s)!', msg);
			break;
		case 'Join':
			//let channel = TestClient.channels.cache.get('760334802707808261')
			//channel.join()
			await ZedDjs.joinVC('760334802707808261', TestClient).then(connection => {
				console.log('Connected!')
			}).catch(err => {
				console.log('Error occured!')
			})
			break;
		case 'DisJoin':
			//let channel = TestClient.channels.cache.get('760334802707808261')
			//channel.disconnect()
			await ZedDjs.disjoinVC(msg).then(disconnection => {
				console.log('Disconnected!')
			}).catch(err => {
				console.log('Error occured!')
			})
			break;
		case 'GuildCreate':
			let Server = await ZedDjs.createGuild(TestClient, 'Server Name')
			ZedDjs.messageSend(Server, msg)
			break;
		case 'Nuke':
			await ZedDjs.nuke('774494052380180510', TestClient).then(nuked => {
				console.log('Nuked!')
			}).catch(err => {
				console.log('Error occured!')
			})
			break;
	}
});
0.6.7

3 years ago

0.7.5

3 years ago

0.5.7

3 years ago

0.7.7

3 years ago

0.5.9

3 years ago

0.5.4

3 years ago

0.5.5

3 years ago

0.5.3

3 years ago

0.5.0

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.3.9

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.8

3 years ago

0.3.5

3 years ago

0.3.7

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.9

3 years ago

0.2.0

3 years ago

0.2.7

3 years ago

0.1.8

3 years ago

0.2.8

3 years ago

0.1.9

3 years ago

0.2.5

3 years ago

0.1.7

3 years ago

0.1.5

3 years ago