Skip to content

Commit

Permalink
fix(ApplicationCommand): stringType isn't supposed to be sent to the …
Browse files Browse the repository at this point in the history
…API (#5916)
  • Loading branch information
monbrey committed Jun 24, 2021
1 parent 7346621 commit ca2a36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/ApplicationCommand.js
Expand Up @@ -212,7 +212,7 @@ class ApplicationCommand extends Base {
static transformOption(option, received) {
const stringType = typeof option.type === 'string' ? option.type : ApplicationCommandOptionTypes[option.type];
return {
type: typeof option.type === 'number' && !received ? option.type : stringType,
type: typeof option.type === 'number' && !received ? option.type : ApplicationCommandOptionTypes[option.type],
name: option.name,
description: option.description,
required:
Expand Down

0 comments on commit ca2a36b

Please sign in to comment.