super-cooper / memebot

A custom Discord bot For The Boys
GNU General Public License v3.0
8 stars 0 forks source link

Properly annotate role subcommand arguments #139

Closed nhawke closed 1 year ago

nhawke commented 1 year ago

Before this, it was not possible to annotate command arguments with with their type while also using an argument converter. Now in 2.0+, discord.py supports using typing.Annotated to annotate an arguments type and provide a custom converter.

https://discordpy.readthedocs.io/en/stable/ext/commands/commands.html#typing-annotated

Part of #119

super-cooper commented 1 year ago

Excellent :shipit: