addIntegerOption
how does addIntegerOption work? since i can't find it online
.addIntegerOption(option =>
option.setName('duration')
.setDescription('The length of the timeout')
.setRequired(true)
.addChoices(
{ name: '60 seconds', value: '60_000' },
{ name: '5 minutes', value: '300_000' },
{ name: '30 minutes', value: '1800_000' },
{ name: '1 hour', value: '3600_000' },
{ name: '12 hours', value: '43200_000' },
{ name: '1 day', value: '86400_000' },
{ name: '2 days', value: '172800_000' },
{ name: '1 week', value: '604800_000' },
))
1 Reply
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!