#TypeError Cannot read properties of undefined (reading 0)
1 messages · Page 1 of 1 (latest)
If you read your error, you can see there's something wrong about that 0
That is where you have to look at
it's that the dropdown menu works fine, the buttons don't, and I don't know what to do
values isn't a property on button interactions? Unless I'm mistaken
Definitely doesn't appear as such
hmu
so is:
coletor.on('collect', async (collected) => {
if (collected.user.id !== interaction.user.id) return
let menu = collected.customId[0]
collected.deferUpdate()
if (menu === "galinha") {
I'll log
nothing is logged
coletor.on('collect', async (collected) => {
if (collected.user.id !== interaction.user.id) return
let menu = collected.custumId[0]
console.log(collected)
collected.deferUpdate()
if (menu === "galinha") {```