webhook-finder-discord

1.1.0 • Public • Published

WebhookFinder

example:

const webhookFinder = require('webhook-finder-discord')
 
const Discord = require('discord.js');
const client = new Discord.Client();
 
client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`);
});
 
client.on('message', message => {
  if(message.content.startsWith('!find')) {
      webhookFinder.find("pepe", message)
  }
  if(message.content.startsWith('!send')) {
    webhookFinder.send("pepe", "hello", message)
}
if(message.content.startsWith('!delete')) {
  webhookFinder.delete("pepe", "test", message)
}
if(message.content.startsWith('!create')) {
  webhookFinder.create("pepe", message)
}
});
 
client.login('token'); 

Dependents (0)

Package Sidebar

Install

npm i webhook-finder-discord

Weekly Downloads

7

Version

1.1.0

License

ISC

Unpacked Size

4.74 kB

Total Files

4

Last publish

Collaborators

  • tovade