2.2.2 • Published 3 years ago

alpha-discord v2.2.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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
2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago