1.0.2 • Published 2 years ago

disway v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

disway

Installation

npm i disway

Examples

const Discord = require('discord.js');
const { prefix, token } = require('./config.json');
const disway = require(`disway`)
const client = new Discord.Client();

client.once('ready', () => {
	console.log('Ready!');
});

client.on('message', message => {
	if (!message.content.startsWith(prefix) || message.author.bot) return;

	const args = message.content.slice(prefix.length).trim().split(/ +/);
	const command = args.shift().toLowerCase();

	if (command === 'customembed') {
	const author = `${message.author.username}`
	const title = `Hey! :wave:`
	const description = `This is a test`
	const footer = `Requested by ${message.author.id}`
		message.channel.send(disway.customdiscordembed(author, title, description, footer));
	} 
	// ...
});

client.login(token);
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago