@kamkam1_0/discord.js
Version:
Allows you to fully interact with discord's apis
11 lines (8 loc) • 316 B
JavaScript
const webhook = require("./results/webhookupdate")
module.exports = async (bot, datas) => {
const guild = bot.guilds.get(datas.guild_id)
datas.token = bot.token
if(!datas.guild_id|| !guild) return
bot.emit(name(), bot, new webhook(datas, bot))
}
function name(){ return "WEBHOOKS_UPDATE" }