#Problem with self roles with buttons

1 messages · Page 1 of 1 (latest)

steel minnow
#

Hi! I have a problem with the roles with buttons on a bot on discord.js. This is the error in the string: const hasRole = interaction.member.roles.cache.has(role.id); throw er; // Unhandled 'error' event
^

TypeError: Cannot read properties of undefined (reading 'id')

dapper drum
#

role is undefined

vivid magnet
#

don’t open multiple thread

steel minnow
vivid magnet
#

and I answered you

steel minnow
grim turtle
#

Again

steel minnow
grim turtle
#

If you would know basics of js you could do it easily by yourself but okay send the file where you send the buttons

steel minnow
dapper drum
grim turtle
#

Thats all of your code?

steel minnow
#

now

steel minnow
grim turtle
#

Oh now i see

#

Remove the space in your customId

steel minnow
grim turtle
#

You customId

steel minnow
grim turtle
#

The string in your customId

#

Your customId is a steing

steel minnow
#

write me the number of the string @grim turtle

grim turtle
#

Stop fucking pinging me have patience

#

Be happy that i even want to help you

#

Cause you only want to be funcking spoonfeeded

#

But oke

steel minnow
#

but I don't uderstanding...

grim turtle
#

Cause you dont want to learn basic js before you use discordjs

steel minnow
grim turtle
#

Yes but not js

steel minnow
#

for example this number of string is 104

#

I intend this

grim turtle
#

You mean the line 🤦‍♂️

steel minnow
grim turtle
#

But if you’d know discord.js basics you’d know where you set the customId of the button right?

steel minnow
grim turtle
#

I dont remember the line?

#

Well write your code better

#

Or use the search function

vivid magnet
#

copy pasted ig

#

he didn’t write it

steel minnow
grim turtle
#

But if you’d know your own code you could resolve it by yourself

steel minnow
grim turtle
#

So let me tell the same thing for the fourth time and if you wont listen this time ill just get fucking pissed of and wont help you and btw nobody will in this server cause you dont know any of the basics

grim turtle
#

Oh wow you just got to level 2

#

😮

#

Complete level 2 by logging hello world into your console