1.1.0 • Published 4 years ago
webhook-finder-discord v1.1.0
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');