Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async sendMessage () {
- let embed = new Discord.RichEmbed().setColor(0x00AE86)
- let desc = '**Time until next payout**:'
- for (let i in this.mates) {
- let fieldName = `${this.mates[i].time}`
- let fieldText = ""
- for (let j in this.mates[i].mates) {
- const mate = this.mates[i].mates[j]
- // check to see if we've already added names
- if (fieldText.length > 0) {fieldText += "\n";}
- fieldText += `${mate.flag} [${mate.name}](${mate.swgoh})`
- }
- embed.addField(fieldName,fieldText,true)
- }
- embed.setDescription(desc)
- await this.message.edit({embed})
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement