Browse Source

Fix message fetching and editing

pull/9/head
Abheek Dhawan 4 years ago
parent
commit
37471d5068
  1. 5
      bot/awesomescibo.js

5
bot/awesomescibo.js

@ -343,7 +343,10 @@ async function generateRound(message) {
console.log(err);
return;
}
message.channel.fetch(generatingMessage.id).edit(`https://api.adawesome.tech/round/${round._id.toString()}`);
message.channel.messages.fetch(generatingMessage.id)
.then(message => {
message.edit(`https://api.adawesome.tech/round/${round._id.toString()}`);
});
});
}
});

Loading…
Cancel
Save