UNPKG

@kamkam1_0/discord.js

Version:

Allows you to fully interact with discord's apis

8 lines (7 loc) 260 B
module.exports = async (bot, datas) => { const guild = bot.guilds.get(datas.guild_id) if(!datas.guild_id || !guild) return guild.threads._add(datas) bot.emit(name(), bot, guild.threads.get(datas.id)) } function name(){ return "THREAD_CREATE" }