()
| 73 | } |
| 74 | |
| 75 | get component() { |
| 76 | const row = new MessageActionRow() |
| 77 | |
| 78 | const buttons = this.answers.map((answer, index) => { |
| 79 | return new MessageButton() |
| 80 | .setEmoji(emojis[index]) |
| 81 | .setLabel(answer) |
| 82 | .setStyle('PRIMARY') |
| 83 | .setCustomId(index.toString()) |
| 84 | }) |
| 85 | |
| 86 | row.addComponents(buttons) |
| 87 | |
| 88 | return row |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | module.exports = Akinator |
nothing calls this directly
no outgoing calls
no test coverage detected