quick-image

1.0.15 • Public • Published

Hello there have you ever looked for a package with images well here it can be found!

Example:

const Discord = require('discord.js');
const ptp = require('phantom-test-package');

const client = new Discord.Client();

client.on('ready', () => {
	console.log('online');
})


client.on('message', (message) => {
	if(message.content == '.image') {
		let link = ptp.link();
		message.channel.send(link);
	}
});

client.login('')

Welcome Example: First You Need To GuildMemberAdd Event.

client.on('guildMemberAdd', (member) => {
ptp.image(member.user.tag, member.user.displayAvatarURL({format:'png'})).then((img) => {
  let attachment = new Discord.MessageAttachment(img, 'img.png');
  client.channels.cache.get("channel ID").send(attachment)
})

})

Readme

Keywords

none

Package Sidebar

Install

npm i quick-image

Weekly Downloads

1

Version

1.0.15

License

ISC

Unpacked Size

426 kB

Total Files

7

Last publish

Collaborators

  • phantom69