#i see so i would have to get User Option

1 messages · Page 1 of 1 (latest)

rotund fulcrum
#

looking at the message history of what you are asking is pretty hard to follow

#

for whatever button you are watching and catching events on

vocal mural
#

are you familar with the dank memer fight command?

rotund fulcrum
#

check if the event for click was created by one of the two people you want to be able to use the button

vocal mural
#

it's a turn based attack mini-game

vocal mural
#

is it interaction.user?

#

and how would i check for the id of the person who clicked the button then?

rotund fulcrum
#

the collector collects the user

#

have you created the collector?

vocal mural
#

im just wondering how would i get the id of the user who clicks the button

#

and the id of the user who inititated the slash command

rotund fulcrum
#

so change "i" to clickEvent

#

wait

vocal mural
rotund fulcrum
#

you arent collecting

#

from a button

vocal mural
#

i have a button above it

rotund fulcrum
#

you should send source files

vocal mural
#

source files?

rotund fulcrum
#

like the .js files

#

instead of screenshots

#

or paste the whole file inside tags like

vocal mural
rotund fulcrum
#

ok

#

you can change it back to i if you want, i dont know why the docs show it being i but it will be easier to follow if it matches docs

vocal mural
#

ok

rotund fulcrum
#

what you are catching with

collector.on('collect', async (i) =>{
                if(i.customId === 'button'){
                    
                }
            })
#

is

#

that will show you all the properties on the object that is being assigned to "i" in your function

#

that object has a user property

#

so

#

in your case

#
  i.user
vocal mural
#

so i can use i.user.id to get the user id of the person clicking the button?

rotund fulcrum
#

that user has an id

#

yes

#

exactly

vocal mural
rotund fulcrum
#

should be

#

i didnt dive deep enough to say yes or no, but it sounds right

vocal mural
#

tysm