Make the count votes button display the actual quote and not the object
This commit is contained in:
parent
7ee7496ce7
commit
4475273d88
1 changed files with 3 additions and 3 deletions
|
|
@ -5,9 +5,9 @@ export async function countVotes(data: any): Promise<object> {
|
|||
let gID = data.guild_id;
|
||||
|
||||
let response = `Quote Votes:`;
|
||||
for (var i in db[gID].bracket.quotes) {
|
||||
response += `\n${db[gID].bracket.quotes[i].votes} votes for \`${db[gID].bracket.quotes[i]}\``;
|
||||
};
|
||||
for (var q of db[gID].bracket.quotes) {
|
||||
response += `\n${q.votes} vote${q.votes !== 1 ? 's' : ''} for ${q.text}`;
|
||||
}
|
||||
return {
|
||||
type: 4,
|
||||
data: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue