How To Use The Enum Arg?

Hello, I'm trying to use the enum arg in order to accept only one of two strings. How does one pass in the acceptable options for the enum? Could someone provide me with an example?
Solution:
args.<method>('enum', { enum: ['one', 'two'] })
Jump to solution
2 Replies
Solution
Favna
Favna2y ago
args.<method>('enum', { enum: ['one', 'two'] })
Favna
Favna2y ago
If i remember correctly
Want results from more Discord servers?
Add your server