@aquarius-bot/discordjs-fixes

0.0.1 • Public • Published

@aquarius-bot/discordjs-fixes

A library of fixes for the discord.js library. I did not write these; the authors are given credit in the source code and below.

Fixing Reactions

Credit: Danktuary

When a discord.js client starts up it only subscribes to Reactions on messages sent while it has been online. Messages sent from before that timestamp don't trigger a reaction add/remove event. This method patches that functionality in, so that every reaction event triggers the event.

Usage

import { fixPartialReactionEvents } from '@aquarius-bot/discordjs-fixes';

const client = new Discord.Client();
fixPartialReactionEvents(client);

Package Sidebar

Install

npm i @aquarius-bot/discordjs-fixes

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

4.13 kB

Total Files

5

Last publish

Collaborators

  • ianmitchell