0.0.1 • Published 4 years ago

@aquarius-bot/discordjs-fixes v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@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);