forked from Supositware/Haha-Yes
Move location of messageID variable so it doesn't get reset on every reaction
This commit is contained in:
parent
aef0caae25
commit
23170a379b
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
const { Listener } = require('discord-akairo');
|
const { Listener } = require('discord-akairo');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
let messageID = []; // Where reaction.message.id that entered a board will be stocked so it doesn't enter again
|
||||||
|
|
||||||
|
|
||||||
class MessageReactionAddListener extends Listener {
|
class MessageReactionAddListener extends Listener {
|
||||||
|
@ -12,7 +13,6 @@ class MessageReactionAddListener extends Listener {
|
||||||
|
|
||||||
async exec(reaction, user) {
|
async exec(reaction, user) {
|
||||||
if (reaction.message.author == user) return;
|
if (reaction.message.author == user) return;
|
||||||
let messageID = []; // Where reaction.message.id that entered a board will be stocked so it doesn't enter again
|
|
||||||
let starboardChannel, shameboardChannel;
|
let starboardChannel, shameboardChannel;
|
||||||
|
|
||||||
if (messageID.includes(reaction.message.id)) return;
|
if (messageID.includes(reaction.message.id)) return;
|
||||||
|
|
Loading…
Reference in a new issue