Add default case component definition

This commit is contained in:
2023-12-17 06:11:38 -06:00
parent 71032b22fe
commit 69581c6ddd

View File

@@ -54,6 +54,14 @@ func FormToComponents(form GetFormResult) []discordgo.MessageComponent {
}
default:
log.Warnf("unexpected field handled for \"%s\" (%v, %s)", form.propertyName, field.id, field.text)
component = discordgo.TextInput{
CustomID: field.id,
Label: field.text,
Style: discordgo.TextInputShort,
Required: true,
MinLength: 1,
MaxLength: 100,
}
}
// Each field is contained within its own row.