Releases: thrzl/discord-ext-forms
Version 2.7.2
2.7.2
Added ReactConfirm, a form that will let you turn this:
embed=discord.Embed(title=f"{self.bot.emoji} Is this correct?",description=f"**Panel Channel:** {form.channel.mention}\n**Panel Emoji:** {form.emoji}\n**Panel Message:** {form.message}")
msg = await ctx.send(embed=embed)
confirm = ReactionForm(msg,self.bot,ctx.author)
confirm.add_reaction('✅', True)
confirm.add_reaction('❌', False)
ans = await confirm.start()
to this:
embed=discord.Embed(title=f"{self.bot.emoji} Is this correct?",description=f"**Panel Channel:** {form.channel.mention}\n**Panel Emoji:** {form.emoji}\n**Panel Message:** {form.message}")
msg = await ctx.send(embed=embed)
confirm = ReactionConfirm(msg,self.bot,ctx.author)
ans = await confirm.start()
We also now have a category
validation for text forms.
Version 2.6.12
2.6.12
Bugfix to fixing the errors that would happen when using input validation.
Form field name is now required, and the returned item is FormResponse
.
Example:
form.add_field("E","first")
form.add_field("EE","second")
await form.start()
>> form.first
"This is what i said for the first question"
>> form.second
"This is what i said for the second question"
Version 2.6.10
Fake release to fix pip
Version 2.6.9
I removed unnecessary prints.
Version 2.6.8
Long story short, I fixed the test forms-
Patch
Version 2.6.0
Changelog v2.6.0
Text Forms
- The return type of a text form is now a single dictionary, and the
add_question
method now allows you to set a preferred dictionary key for the question. - Input validation is now stable!
Docs
The documentation is now available, and it is located here.
Contribute
Again: please remember that I welcome contributions!
Version 2.3.5b
Changelog v2.3.5b
Text Forms
- The return type of a text form is now a single dictionary, and the
add_question
method now allows you to set a preferred dictionary key for the question. - Input validation is also in beta now!
Docs
The documentation is now available, and it is located here.
Contribute
Again: please remember that I welcome contributions!
Stable v2.0.4
Changelog v2.0.4
Reactions
The reaction extension has been changed a lot and is officially out of beta. Some of the new features are:
- Menus
- Reaction Forms
- Increased Stability
Text Forms
Input validation is coming soon! With input validation, the bot will be able to either ignore or alert the user if their response is somehow wrong.
Contribute
Remember, contributions are always welcome! Just fork the project and make a pull request! Don't be scared of messing things up, if I see a mistake I'll help you out!
First Release
Release 1.0.0
Currently only has embed forms, reaction forms are coming soon!