Browse Source

Fix message author object

pull/9/head
Abheek Dhawan 4 years ago
parent
commit
4290d4536f
  1. 6
      bot/awesomescibo.js

6
bot/awesomescibo.js

@ -344,9 +344,9 @@ async function generateRound(message) {
return; return;
} }
message.channel.messages.fetch(generatingMessage.id) message.channel.messages.fetch(generatingMessage.id)
.then(message => { .then(generatingMessage => {
const msg = message.first(); const msg = generatingMessage.first();
msg.edit(`${msg.author}, here's your round: https://api.adawesome.tech/round/${round._id.toString()}`); msg.edit(`${message.author}, here's your round: https://api.adawesome.tech/round/${round._id.toString()}`);
}); });
}); });
} }

Loading…
Cancel
Save