3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00
This commit is contained in:
Dragory 2020-10-16 02:13:54 +03:00
parent 3aada93a80
commit 76f7658763
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
7 changed files with 13 additions and 13 deletions

View file

@ -199,10 +199,10 @@ export const MutesCmd = mutesCmd({
const paginationReactionListener = pluginData.events.on(
"messageReactionAdd",
({ args: { message: rMsg, emoji, userID } }) => {
({ args: { message: rMsg, emoji, member } }) => {
if (!isFullMessage(rMsg)) return;
if (rMsg.id !== listMessage.id) return;
if (userID !== msg.author.id) return;
if (member.id !== msg.author.id) return;
if (!["⬅", "➡"].includes(emoji.name)) return;
if (emoji.name === "⬅" && currentPage > 1) {
@ -211,7 +211,7 @@ export const MutesCmd = mutesCmd({
drawListPage(currentPage + 1);
}
rMsg.removeReaction(emoji.name, userID).catch(noop);
rMsg.removeReaction(emoji.name, member.id).catch(noop);
},
);