Skip to content

Latest commit

 

History

History

discordjs-fixes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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