MCPcopy Create free account
hub / github.com/Siris2314/NecroAtomicBot / component

Method component

classes/akinatorclass.js:75–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
92module.exports = Akinator

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected