Skip to content

Commit bf19dbd

Browse files
committed
Refactor input styles in modal to use numeric values for TextInputStyle
1 parent 3377721 commit bf19dbd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

buttons/info_.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { ModalBuilder, TextInputBuilder, TextInputStyle, ActionRowBuilder } = require('@discordjs/builders');
1+
const { ModalBuilder, TextInputBuilder, ActionRowBuilder } = require('@discordjs/builders');
22

33
module.exports = {
44
button: {
@@ -38,28 +38,28 @@ module.exports = {
3838
.setCustomId('3d_view')
3939
.setLabel('3D-View benutzt')
4040
.setPlaceholder('Ja/Nein')
41-
.setStyle(TextInputStyle.Short);
41+
.setStyle(1);
4242

4343
//boolean input "Street-View benutzt"
4444
const input2 = new TextInputBuilder()
4545
.setCustomId('street_view')
4646
.setLabel('Street-View benutzt')
4747
.setPlaceholder('Ja/Nein')
48-
.setStyle(TextInputStyle.Short);
48+
.setStyle(1);
4949

5050
//text input "Link zu Street-View"
5151
const input3 = new TextInputBuilder()
5252
.setCustomId('street_view_link')
5353
.setLabel('Link zu Street-View')
5454
.setPlaceholder('Link')
55-
.setStyle(TextInputStyle.Short);
55+
.setStyle(1);
5656

5757
//text input "Sonstige Informationen"
5858
const input4 = new TextInputBuilder()
5959
.setCustomId('other_info')
6060
.setLabel('Sonstige Informationen')
6161
.setPlaceholder('Informationen')
62-
.setStyle(TextInputStyle.Paragraph);
62+
.setStyle(2);
6363

6464

6565
// Add inputs to the modal

0 commit comments

Comments
 (0)