added placeholders back (forgot them lol)

This commit is contained in:
2024-03-08 19:26:42 +01:00
parent 1ea34f11b6
commit 044eeddb64

View File

@@ -16,6 +16,7 @@ type ModalJsonField struct {
IsParagraph bool `json:"is_paragraph"`
Value string `json:"value"`
Required bool `json:"required"`
Placeholder string `json:"placeholder"`
MinLength int `json:"min_length"`
MaxLength int `json:"max_length"`
}
@@ -40,6 +41,7 @@ func jsonStringShowModal(interaction *discordgo.Interaction, manageID string, fo
CustomID: fmt.Sprint(index),
Label: component.Label,
Style: style,
Placeholder: component.Placeholder,
Required: component.Required,
MaxLength: component.MaxLength,
MinLength: component.MinLength,