A wrapper to help users to use functions of discord.js@13 in discord.js@12
Installation
npmialpha-discord
Create new Client
constAlpha=require('alpha-discord');constclient=newAlpha.Client({token: 'your discord bot client token',prefix: 'the default prefix',/* you client options (intents, partials)*/})//The Alpha Client already have partials ["USER", "CHANNEL", "MESSAGE", "GUILD_MEMBER", "REACTION"], you need to put the intents and the client will login automatic
Create new thread
newAlpha.Thread({message: 'message of the thread will be created, no the id because function createThread will be pick the <message>.id and the channel',name: 'Cool thread',duration: 'The time for the thread to be archived, dafault as 1 day'})