fix(TextInputBuilder): parse custom_id, label, and style (#8216)

This commit is contained in:
Almeida
2022-07-03 14:35:19 +01:00
committed by GitHub
parent ab238a9046
commit 2d9dfa3c6e
2 changed files with 26 additions and 5 deletions

View File

@@ -82,6 +82,12 @@ describe('Text Input Components', () => {
.setStyle(TextInputStyle.Paragraph)
.toJSON();
}).not.toThrowError();
expect(() => {
// Issue #8107
// @ts-expect-error: shapeshift maps the enum key to the value when parsing
textInputComponent().setCustomId('Custom').setLabel('Guess').setStyle('Short').toJSON();
}).not.toThrowError();
});
});