#How to close my menu?

5 messages · Page 1 of 1 (latest)

minor hull
#

I am unclear on how to make my code close this menu. I have a button, and it needs to remove a class on another object. I also have another button which needs to add that class. I get an error of Object unable to change parameter of a child or smtn like that.

How would i do that?
Code is here:
https://pastebin.com/pQ6GLgN5

I need the div wrapping the x in line 20 to be the button, and it needs to change the classes of the div in line 43, and I have no idea how to do that.

void islandBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

balmy fiber
#

To change classes it really just dom manipulation

#

You just need the id or the ref object

#

And append the tailwind class name