Browse Source

Fix message fetching and editing

pull/9/head
Abheek Dhawan 4 years ago
parent
commit
55218cf545
  1. 3
      bot/awesomescibo.js

3
bot/awesomescibo.js

@ -345,7 +345,8 @@ async function generateRound(message) {
}
message.channel.messages.fetch(generatingMessage.id)
.then(message => {
message.edit(`https://api.adawesome.tech/round/${round._id.toString()}`);
const msg = msg.first();
msg.edit(`https://api.adawesome.tech/round/${round._id.toString()}`);
});
});
}

Loading…
Cancel
Save