Skip to content

Commit

Permalink
fix: correctly construct a builder (#8727)
Browse files Browse the repository at this point in the history
  • Loading branch information
monbrey committed Oct 8, 2022
1 parent 6fd331d commit e548e6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/discord.js/src/util/Components.js
Expand Up @@ -109,7 +109,7 @@ function createComponentBuilder(data) {
case ComponentType.SelectMenu:
return new SelectMenuBuilder(data);
case ComponentType.TextInput:
return new TextInputComponent(data);
return new TextInputBuilder(data);
default:
return new ComponentBuilder(data);
}
Expand All @@ -124,6 +124,7 @@ const ButtonComponent = require('../structures/ButtonComponent');
const Component = require('../structures/Component');
const SelectMenuBuilder = require('../structures/SelectMenuBuilder');
const SelectMenuComponent = require('../structures/SelectMenuComponent');
const TextInputBuilder = require('../structures/TextInputBuilder');
const TextInputComponent = require('../structures/TextInputComponent');

/**
Expand Down

0 comments on commit e548e6a

Please sign in to comment.