Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while generating random number #68

Open
Gaute945 opened this issue Sep 13, 2024 · 0 comments
Open

Error while generating random number #68

Gaute945 opened this issue Sep 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Gaute945
Copy link
Owner

Steps to Reproduce

Run /random-nummber

Expected Behavior

a random nummber

Actual Behavior

Error while generating random number

error with random-number command TypeError [CommandInteractionOptionType]: Option "min" is of type: 3; expected 4.
    at CommandInteractionOptionResolver._getTypedOption (/root/Overmounting/node_modules/discord.js/src/structures/CommandInteractionOptionResolver.js:99:13)
    at CommandInteractionOptionResolver.getInteger (/root/Overmounting/node_modules/discord.js/src/structures/CommandInteractionOptionResolver.js:183:25)
    at Object.execute (/root/Overmounting/commands/utility/random-number.js:22:48)
    at Client.<anonymous> (/root/Overmounting/index.js:44:19)
    at Client.emit (node:events:519:28)
    at InteractionCreateAction.handle (/root/Overmounting/node_modules/discord.js/src/client/actions/InteractionCreate.js:97:12)
    at module.exports [as INTERACTION_CREATE] (/root/Overmounting/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (/root/Overmounting/node_modules/discord.js/src/client/websocket/WebSocketManager.js:355:31)
    at WebSocketManager.<anonymous> (/root/Overmounting/node_modules/discord.js/src/client/websocket/WebSocketManager.js:239:12)
    at WebSocketManager.emit (/root/Overmounting/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:282:31) {
  code: 'CommandInteractionOptionType'
}

Reproducibility

happens everytime and does not reach valid range check

Environment

it's in production

  • Operating System:
  • Node.js Version:
  • Package Version/Commit:
  • Additional Information:

Additional Information


Note:

  • If you are planning to work on fixing this bug, please comment on this issue to express your interest.
  • Follow the Reporting Issues guidelines in the contributing documentation before submitting your bug report.
@Gaute945 Gaute945 added the bug Something isn't working label Sep 13, 2024
@Gaute945 Gaute945 changed the title Bug report Error while generating random number Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant