aboutsummaryrefslogtreecommitdiff
path: root/discord
Commit message (Collapse)AuthorAgeFilesLines
* Fix all_channel permissions James Gayfer2021-08-271-1/+1
| | | | | | 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.
* Rearrange player cleanup codeImayhaveborkedit2021-08-271-18/+21
| | | | | 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.
* [tasks] Improve typing parityNadir Chowdhury2021-08-271-61/+67
|
* [commands] Fix a small typo in Context.invoke docsShashankKumarSaxena2021-08-271-1/+1
|
* Fix a typo in docstrings of Client classAbhinav Singh2021-08-271-1/+1
|
* Change avatar_url type hint to Any instead of strRapptz2021-08-272-11/+13
|
* Change a few parameters to be positional onlyChrovo2021-08-261-9/+9
| | | | | 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.
* Fix Webhook return typesSteve C2021-08-262-12/+12
| | | Also add positional only arguments where applicable
* Add default value for invitable in HTTPClientDanny2021-08-261-1/+1
|
* Update thread permissionsJames Gayfer2021-08-264-28/+29
| | | | | | | 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
* Add support for invitable thread optionJosh2021-08-263-0/+15
|
* Add Client.status attributepyxiis2021-08-261-0/+20
|
* Make arguments positional only in 2 get methodsIzhar Ahmad2021-08-252-2/+2
| | | | - Member.get_role - Guild.get_member
* Use a thread values view when constructing TextChannel.threadsRapptz2021-08-251-1/+1
| | | | Avoids an accidental O(n^2) situation.
* Use MISSING instead of None for HelpCommand.contextRapptz2021-08-251-1/+1
| | | | It's basically just late-init
* Update documentation on select limitsRapptz2021-08-252-4/+4
|
* Bring back ParamSpec in utilsRapptz2021-08-251-0/+4
|
* Fix copy_doc typing to not error due to overloaded ParamSpecRapptz2021-08-251-6/+2
|
* Change User.avatar to be Optional[Asset] instead of AssetRapptz2021-08-252-21/+18
| | | | | | | | | | | This change was needed to allow users to more easily check if an uploaded avatar was set using `if user.avatar:` rather than the admittedly clunky `if user.avatar != user.default_avatar. The old behaviour with a fallback is still useful for actual display purposes, so it has been moved over to the new `User.display_avatar` attribute. This also has symmetry with the newly added `Member.display_avatar` attribute.
* Change on_socket_raw_receive to dispatch right before JSON conversionRapptz2021-08-251-2/+2
|
* Add Colour.brand_green and Colour.brand_redRyan2021-08-241-0/+16
|
* Typehint Colour.__init__ parameterRapptz2021-08-241-1/+1
|
* Fix Embed.from_dict typing being too strict for a public functionRapptz2021-08-241-2/+2
| | | | | The Embed TypedDict is not publicly accessible so would always lead to type errors upon usage.
* Allow enums to be comparedSebastian Law2021-08-241-8/+12
|
* Clarify connect() requires Intents.voice_statesImayhaveborkedit2021-08-242-0/+6
|
* Fix typing error in sticker editRapptz2021-08-231-2/+3
|
* Fix some typings in HTTPClient to not take strict payload typesRapptz2021-08-231-4/+4
|
* Add type hint for suppress parameterRapptz2021-08-231-1/+1
|
* Remove in-place edits and return fresh instances insteadRapptz2021-08-2315-82/+251
| | | | Fixes #4098
* Fix typing of move role position payload parameterRapptz2021-08-231-1/+2
|
* Fix typings for member HTTP methodsRapptz2021-08-234-48/+91
|
* Add type hints to AsyncWebhookAdapter methodsRapptz2021-08-231-14/+18
|
* Use getattr for default_auto_archive_duration in Message.create_threadRapptz2021-08-231-1/+2
| | | | | Some channel types do not have this attribute so a fallback is necessary to prevent the attribute access from erroring.
* Fix message.py typehintsStocker2021-08-231-12/+19
|
* Fix FFmpeg based audiosource input pipingImayhaveborkedit2021-08-231-8/+34
| | | | | | | Due to an oversight that has existed since the very beginning, the pipe argument has been broken since there was nothing to actually write the data to the process's stdin. Now there is. Also josh made me add typings blegh
* Add missing type: ignore and missing typehint to channel.pyStocker2021-08-231-1/+3
|
* Make getters in Client positional onlyMrKomodoDragon2021-08-231-4/+4
|
* Fix type hints for decorators in utilsJames Hilton-Balfe2021-08-231-5/+10
|
* Add missing return type to utils.oauth_urlMrKomodoDragon2021-08-231-1/+1
|
* Fix type for content param in HTTPClient.send_messageStocker2021-08-231-1/+1
|
* Added type: ignores where needed to activity.pyStocker2021-08-231-2/+4
|
* Fix permissions.py typingapple502j2021-08-231-1/+4
|
* Fix user.py typings and reformat fileRapptz2021-08-221-6/+16
|
* Fix typing for private channel by user lookupRapptz2021-08-221-2/+2
|
* Add missing typehint for PermissionOverwrite.pairRapptz2021-08-221-1/+1
| | | | Technically inferred but better to be explicit
* Fix Member.guild_avatar docstringRapptz2021-08-221-2/+2
|
* [types] Add avatar to Member typingsRapptz2021-08-221-1/+2
|
* Fix Member._avatar not updating in member update eventsRapptz2021-08-221-1/+3
|
* Add per-guild member avatar supportJustAnyone2021-08-223-0/+49
| | | Fix #7054
* Typehint opus.pyapple502j2021-08-221-39/+58
|