for ColourConverter
Technically, this never was a documented feature in d.py, but
ColourConverter used to work without a #
Is this worth a versionchanged? I'll let other contributors decide
* Typehint gateway.py
* Add relevant typehints to gateway.py to voice_client.py
* Change EventListener to subclass NamedTuple
* Add return type for DiscordWebSocket.wait_for
* Correct deque typehint
* Remove unnecessary typehints for literals
* Use type aliases
* Merge branch '2.0' into pr7422
* Add try_user to get a user from cache or from the gateway.
* Extract populate_owners into a new coroutine.
* Add a try_owners coroutine to get a list of owners of the bot.
* Fix coding-style.
* Fix a bug where None would be returned in try_owners if the cache was…
* Fix docstring
* Add spacing in the code
* Add try_member to guild.
This also fix an omission in the fetch_member docs. fetch_member raises NotFound if the given user isn't in the guild.
* Optimize imports.
* add back the silent kwarg to message.delete
* forgot about versionadded
* shorten the if statement
* simplify raising a bit ig?
* should be versionchanged instead
Co-authored-by: Arthur <site-github@api-d.com>
* remove `Optional` from parameter and doc string
Co-authored-by: Arthur <site-github@api-d.com>
When the new permission for send_messages_in_threads was added, we added
the wrong bit. Instead of adding the bit as the most significant (37),
we added it as the last significant, which invalidated most of the
permissions defined by this method.
Since apparently closing stdin and later calling communicate() is no bueno,
we're just going to rearrange the process finalization code so both cleanup()
and the pipe loop exit conditions point to it.
This makes parameters positional only in the methods
fetch_sticker, fetch_webhook, fetch_channel, fetch_user, fetch_widget,
fetch_stage_instance, fetch_guild, get_sticker, and get_channel.
Discord has renamed / repurposed "Use Public Threads" and "Use Private
Threads", as well as added a new permission "Send Messages in Threads".
For more information, see:
https://github.com/discord/discord-api-docs/pull/3672