0
0
Fork 0

Use the quote text instead of an [object Object]

This commit is contained in:
Oliver-Akins 2021-08-30 16:54:21 -06:00
parent bd98d87475
commit 62285d4492

View file

@ -19,7 +19,10 @@ export default {
let bracket = db[gID].bracket;
// Construct the primary body of the message
let content = `The bracket currently has a tie between:\n> ${data.winners.join('\n~~------------------------------------~~\n> ')}`;
let content = `The bracket currently has a tie between:\n> `;
content += data.winners
.map((q:quote) => q.text)
.join('\n~~------------------------------------~~\n> ');
// Alert users if all will be eliminated or not
if (data.eliminate_all) {