alpha-discord
v2.2.2
Published
A wrapper to help users to use functions of discord.js@13 in discord.js@12
Downloads
4
Readme
Alpha-discord
A wrapper to help users to use functions of discord.js@13 in discord.js@12
Installation
npm i alpha-discord
Create new Client
const Alpha = require('alpha-discord');
const client = new Alpha.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
new Alpha.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'})
React with array of emojis
message.react('emoji')// true
message.react(['emoji', 'different emoji'])// true
message.react(['emoji', 'same emoji'])//false
Collect emojis from a message
message.emojis// Returns a collection Map of custom or unicode emojis