Skip to content

Commit

Permalink
im done now k
Browse files Browse the repository at this point in the history
  • Loading branch information
SunburntRock89 committed Mar 29, 2018
1 parent c47b3ad commit b47b615
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions events/messageUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ module.exports = async(client, oldMessage, newMessage) => {
let messageToEdit;
try {
messageToEdit = callDocument.messages.find(m => m.umessage === oldMessage.id);
console.log(messageToEdit)
if (!messageToEdit) throw new Error();
} catch (err) {
// Ignore
console.log(`[Shard ${client.shard.id}] Error occured in the messageUpdate event.\n ${err.stack}`);
// console.log(`[Shard ${client.shard.id}] Error occured in the messageUpdate event.\n ${err.stack}`);
}
let toSend;
if (perms.donator || oldMessage.author.id === `139836912335716352`) {
Expand Down

0 comments on commit b47b615

Please sign in to comment.