-
-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support providing option channel types as list #1000
Support providing option channel types as list #1000
Conversation
I think we should force one type just like most of the other code. |
Ok, but then we should update the example. |
The example already uses a list, which I think is what we should use. |
So, we should update examples or change the library code because it accepts only tuples but lists were used in that example. |
What I've previously meant is that maybe we could check for |
Let's just use |
We should use typing.Union[] |
Union support has been added to #1251. |
Summary
Support providing option channel types as a list like
[discord.TextChannel, discord.VoiceChannel]
.Fixed #991.
Checklist
type: ignore
comments were used, a comment is also left explaining why