Unable to create a pronoun bot that allows for ONLY predefined OR custom pronouns.

I'm trying to create a pronoun bot that allows for already defined pronouns, and if there are non that the user requests, allow for custom ones. Once the message is sent and it is custom it would just create the role and add it to the predefined ones. However my problem lies in that both "options" can be used simultaneously, which I don't want. How should I go about doing this? Also, if possible see where I can improve my usage of the builder; I'm pretty new to djs. Here's my code:
11 Replies
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
math.rad
math.radOP•2y ago
I think I'm using v14
MrMythical
MrMythical•2y ago
Maybe use subcommands
d.js docs
d.js docs•2y ago
guide Slash Commands: Subcommands read more
math.rad
math.radOP•2y ago
Well here's the thing it's not limited to pronouns it also would do role colors and other things that the owner of the server could set I have the format as /attribute -(subcommand group) pronouns(subcommand) existing(option) pronouns I wanted them to be able to have a selection so I have the existing option available
math.rad
math.radOP•2y ago
math.rad
math.radOP•2y ago
as you can see keep in mind that the "dash" is the subcommand group
MrMythical
MrMythical•2y ago
but why? Why not just use attribute pronoun custom and attribute pronoun existing
math.rad
math.radOP•2y ago
:o I forgot about that thank you 😭
monbrey
monbrey•2y ago
Or just use autocomplete One option with choices they aren't locked to using
Want results from more Discord servers?
Add your server