I'm trying to build a modal that has a string select menu. On discords developer website it shows select as being compatible in modals, and on discord.py's website it shows that select in modals was added in version 2.6.0, and I'm on 2.6.3. However, when I try to add a select in my modal and then test it, I get an error saying "Invalid Form Body
In data.components.1.components.0: Value of field "type" must be one of (4,).". What's wrong? Is my syntax just incorrect?
This is my modal function right now
class modalTest(discord.ui.Modal, title = "poopy stinky"):
testfield = discord.ui.TextInput(label = "input poopy", style = discord.TextStyle.short, placeholder = "not poopy enough", required = True, max_length=2)
select = discord.ui.Select(
placeholder = "Select something",
min_values = 1,
max_values = 1,
disabled = True,
options = [discord.SelectOption(label = "option 1", value=0)]
)