1.1.0 • Published 4 years ago

webhook-finder-discord v1.1.0

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

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'); 
1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago