I. Ahmad
6265723a35
Add support for archive duration in Guild.create_text_channel
2022-04-11 17:21:08 -04:00
Rapptz
a8b26b9257
Allow pinning a thread using Thread.edit
2022-04-06 23:21:17 -04:00
Rapptz
23f6876492
Add initial support for forum channels
...
Closes #7652
2022-04-06 23:02:58 -04:00
Josh
d600436378
[types] Use PEP-655 style Required/NotRequired types
2022-04-02 01:46:10 -04:00
Rapptz
9acf1db076
Support ban endpoint pagination
2022-04-01 00:09:02 -04:00
Kellen
4fd2d5fdfd
Remove redundant imports and variables
2022-03-29 02:50:34 -04:00
Rapptz
77ec49782a
Add http_trace option in Client to trace the library's HTTP requests
2022-03-18 08:02:53 -04:00
z03h
8d86ee3fe3
Fix mention_author suppressing all mentions
2022-03-18 01:52:11 -04:00
Josh
e01d4a31eb
Replace invariant container types with wider types where applicable
2022-03-17 07:26:01 -04:00
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
...
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
Co-authored-by: Josh <josh.ja.butt@gmail.com>
2022-03-13 23:52:10 -04:00
Rapptz
9c61e10a55
Move all async object creation to a proper initialisation point
...
This should make it so no object is created with another loop
2022-03-13 08:33:25 -04:00
Rapptz
8d4f08a5e7
Fix AutoShardedClient to work with the new asyncio loop machinery
...
Fix #7675
2022-03-13 08:05:44 -04:00
Han Seung Min - 한승민
93af158b0c
Refactor loop code to allow usage of asyncio.run
2022-03-13 04:54:14 -04:00
Rapptz
ba2763a4a1
Add private hook for changing the API version
...
This is mainly a temporary, undocumented, stop gap for bots that are
screwed over from waiting for Discord to grant them the message content
intent.
2022-03-07 18:23:12 -05:00
Rapptz
0330282c5f
Create a default TCPConnector with no limit
...
The default implementation only allows for 100 concurrent connections
and during heavy sharding (>=100 shards) this can end up freezing
shards.
2022-03-07 01:19:37 -05:00
Stocker
e15415413b
Add missing parameters to certain methods
...
- slowmode_delay and reason in Message.create_thread
- slowmode_delay in TextChannel.create_thread
- reason in Guild.edit_widget
2022-03-06 23:00:50 -05:00
I. Ahmad
8360e4af8d
Add premium_progress_bar_enabled attribute on Guild
2022-03-06 03:17:28 -05:00
Rapptz
fa901afa3a
Add replied_user key when no allowed_mentions is passed in
2022-03-05 23:39:06 -05:00
JDJG Inc. Official
e69428a841
Add with_counts support for Client.fetch_guild
...
Co-authored-by: Stocker <44980366+StockerMC@users.noreply.github.com>
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-03-05 22:09:19 -05:00
Josh
147948af9b
Use typing.Self throughout library
2022-03-01 07:53:24 -05:00
Nadir Chowdhury
3c6279b947
Implement Guild Scheduled Events
2022-03-01 01:00:04 -05:00
Josh
2b69b5d545
Remove discord.InvalidArgument
...
This uses TypeError and ValueError instead.
2022-02-26 01:44:49 -05:00
Rapptz
e13997f35e
Remove region parameters from HTTPClient
2022-02-25 10:44:37 -05:00
Josh
285069de08
Fix types in guild.py
2022-02-22 04:00:46 -05:00
Josh
c8064ba6f2
Type-hint gateway
2022-02-22 03:59:58 -05:00
Rapptz
30e7a2e937
Fix a few more type errors
2022-02-21 23:31:18 -05:00
Rapptz
c7c6d74d8d
Fix type errors in the abc module
2022-02-21 22:38:36 -05:00
Rapptz
88b520b5ab
Reformat code using black
...
Segments where readability was hampered were fixed by appropriate
format skipping directives. New code should hopefully be black
compatible. The moment they remove the -S option is probably the moment
I stop using black though.
2022-02-20 08:04:58 -05:00
Josh
dede5539ee
Add support for editing message attachments
2022-02-19 22:02:53 -05:00
Rapptz
e14153ddcb
Fix nonce being sent even when not specified
2022-02-18 23:15:46 -05:00
Josh
37f96e3473
Add message_content intent and move to api v10
2022-02-18 08:44:46 -05:00
Rapptz
9c066a8cf6
Refactor internal message sending and editing parameter passing
...
This reduces some repetition in many functions and is ripped out of
the webhook code. This also removes the unused HTTP functions for
interaction responses since those belong in the webhook code rather
than the HTTPClient.
2022-02-18 07:47:59 -05:00
Josh
08bee0eeb6
Add support for file/attachment descriptions
2022-02-18 05:23:02 -05:00
Josh
e05c80b963
[types] Refactor and add Application Command types
2022-02-18 03:22:40 -05:00
Nadir Chowdhury
3c0c0f76d7
Add guild scheduled events HTTP methods
2022-02-17 22:16:51 -05:00
jack1142
783513726f
Add support for role icons
...
* Document ROLE_ICONS guild feature
https://github.com/discord/discord-api-docs/pull/3847
* Add support for role icons
https://github.com/discord/discord-api-docs/pull/3847
* Add support for role icon/emoji changes in audit log
https://github.com/discord/discord-api-docs/pull/3847
2022-02-17 11:28:03 -05:00
jack1142
9a6b2fa402
Add Thread.fetch_member
...
See: discord/discord-api-docs#3998
2022-02-17 11:26:41 -05:00
Nadir Chowdhury
d034264973
Type up Guild Scheduled Events
2022-02-17 11:25:18 -05:00
Danny
e7821be4aa
Add default value for invitable in HTTPClient
2021-08-26 17:51:49 -04:00
Josh
d2ea33e5e9
Add support for invitable thread option
2021-08-26 15:52:07 -04:00
Rapptz
c82739a3be
Fix some typings in HTTPClient to not take strict payload types
2021-08-23 23:52:16 -04:00
Rapptz
cff9ca0288
Fix typings for member HTTP methods
2021-08-23 23:44:20 -04:00
Stocker
400936df69
Fix type for content param in HTTPClient.send_message
2021-08-23 05:24:43 -04:00
Rapptz
4a72201617
Make json conversion functions private
2021-08-22 02:35:58 -04:00
Rapptz
ea2d972666
Make global log variable in modules private
2021-08-22 02:33:51 -04:00
Rapptz
b73f02b9c3
Remove deprecated TextChannel.active_threads for Guild version
...
This also fills in the ThreadMember data from the endpoint
2021-08-18 01:52:24 -04:00
Rapptz
08a4db3961
Revert "Refactor Client.run to use asyncio.run"
...
This reverts commit 6e6c8a7b2810747222a938c7fe3e466c2994b23f.
2021-08-11 02:16:22 -04:00
Rapptz
6e6c8a7b28
Refactor Client.run to use asyncio.run
...
This also adds asynchronous context manager support to allow for
idiomatic asyncio usage for the lower-level counterpart. At first
I wanted to remove Client.run but I figured that a lot of beginners
would have been confused or not enjoyed the verbosity of the newer
approach of using async-with.
2021-08-10 23:00:24 -04:00
Rapptz
1c40d43fd1
Remove unused log lines in HTTPClient
2021-08-10 09:28:54 -04:00
Rapptz
58ca9e9932
Add TextChannel.default_auto_archive_duration
2021-08-02 04:36:02 -04:00