Compare commits
3 commits
1eb2180ce7
...
2fefe31242
Author | SHA1 | Date | |
---|---|---|---|
2fefe31242 | |||
caf1c98037 | |||
3269fbf7fb |
3 changed files with 8 additions and 9 deletions
|
@ -10,13 +10,6 @@ class messageDeleteListener extends Listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(message) {
|
async exec(message) {
|
||||||
if (message.partial) {
|
|
||||||
await message.fetch()
|
|
||||||
.catch(err => {
|
|
||||||
return console.error(err);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!message.guild) return;
|
if (!message.guild) return;
|
||||||
|
|
||||||
if (!message.author) return;
|
if (!message.author) return;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const { Listener } = require('discord-akairo');
|
const { Listener } = require('discord-akairo');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
let messageID = require('../../json/messageID.json'); // Save messages that ented starboard so we can edit/remove the embed
|
let messageID = require('../../json/messageID.json'); // Save messages that entered starboard so we can edit/remove the embed
|
||||||
|
|
||||||
|
|
||||||
class MessageReactionAddListener extends Listener {
|
class MessageReactionAddListener extends Listener {
|
||||||
|
@ -12,6 +12,13 @@ class MessageReactionAddListener extends Listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
async exec(reaction) {
|
async exec(reaction) {
|
||||||
|
if (reaction.partial) {
|
||||||
|
await reaction.fetch()
|
||||||
|
.catch(err => {
|
||||||
|
return console.error(err);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (reaction.message.partial) {
|
if (reaction.message.partial) {
|
||||||
await reaction.message.fetch()
|
await reaction.message.fetch()
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
|
1
index.js
1
index.js
|
@ -19,7 +19,6 @@ class hahaYesClient extends AkairoClient {
|
||||||
}, {
|
}, {
|
||||||
partials: ['MESSAGE', 'REACTION'],
|
partials: ['MESSAGE', 'REACTION'],
|
||||||
disableMentions: 'everyone',
|
disableMentions: 'everyone',
|
||||||
fetchAllMembers: true,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.commandHandler = new CommandHandler(this, {
|
this.commandHandler = new CommandHandler(this, {
|
||||||
|
|
Loading…
Reference in a new issue