dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
688 stars 160 forks source link

flagconverter boolean flags #563

Closed TheKidThatCodes closed 1 year ago

TheKidThatCodes commented 1 year ago

Summary

flagconverter boolean flags should be true if the flag is present and false if it is not

What is the feature request for?

discord.ext.commands

The Problem

flagconverter bool flags require .foo --bar true/.foo --bar false instead of .foo --bar/.foo

The Ideal Solution

possibly another flagconverter class that implements this as to not break existing code

The Current Solution

dont have one, considering making custom flagconverter class

Additional Context

maybe this should be in the discordpy gh instead of this fork

dolfies commented 1 year ago

Thanks for the feature request, but I'm trying to keep the commands handler as close to upstream as possible. If this is ever implemented upstream, it will eventually make its way here.