#...

1 messages · Page 1 of 1 (latest)

slate plover
open marlin
#

.

slate plover
#

.

open marlin
#

oookay?

#

send ur code ig

slate plover
#

@open marlin

open marlin
#

wait

#

client.on collect?

#

what?

slate plover
#

? ;-;

open marlin
#

its client.on('interactionCreate')

slate plover
#

then what is this

open marlin
#

not sure

#

just use client.on('interactionCreate')

#

no need to use a collector

slate plover
#

ok one sec ill try

open marlin
#

okay.

slate plover
#

still no reply

#

@open marlin

slate plover
#

Ok..

open marlin
#

change the button to interaction and add this line of code
if (!interaction.isButton()) return;

#

before the if statement

slate plover
#

like that..?

open marlin
#

and try interaction.channel.send('test');

open marlin
#

but change the button

#

to interaction

slate plover
#

doesn't matter

open marlin
#

client.on('interactionCreate', async interaction =>)

open marlin
#

cuz button is a thing so it will be confusing to do button.isButton

slate plover
open marlin
#

yes

#

try that

slate plover
#

finally

open marlin
#

did it work?

slate plover
#

yep

open marlin
#

🥲

#

cool

slate plover
#

but

open marlin
#

?

slate plover
#

why when i restart the bot it doesn't work

open marlin
#

uh

#

noot sure abt that

#

thats the same code i use and they work after restart for me

#

I'll leave this thread now.