#Is it possible to require 1 or the other for slash commands?

8 messages · Page 1 of 1 (latest)

sand ploverBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

copper valley
#

can you explain more

shy path
#

i think a user option can take both an id and mentionable

copper valley
#

okay

shy path
#

then just make 2 options and dont make them required

copper valley
#

you can make it accept both

shy path
#

other than that, there is no way to accept both in 1 option

#

yes, then just check whether that both options are null in your interactionCreate