dolfies
2e5bd8f31a
Improve captcha handling errors, remove unnecessary HTTP request
3 years ago
dolfies
29c2036bc8
Rebase to latest upstream
3 years ago
dolfies
7de78cfcba
Implement captcha handling
3 years ago
dolfies
3395417844
Improve typing across the board, remove old browser references
3 years ago
dolfies
7067d1f4de
More documentation fixes
3 years ago
dolfies
388863e521
Implement joining guilds from id & lurking, bug fixes, doc fixes
3 years ago
dolfies
5edcd7d64b
Implement Emoji/Sticker.fetch_guild (and run black)
3 years ago
dolfies
957a484306
Run black
3 years ago
Rapptz
77ec49782a
Add http_trace option in Client to trace the library's HTTP requests
3 years ago
z03h
8d86ee3fe3
Fix mention_author suppressing all mentions
3 years ago
Josh
e01d4a31eb
Replace invariant container types with wider types where applicable
3 years ago
Stocker
5aa696ccfa
Fix typing issues and improve typing completeness across the library
Co-authored-by: Danny <[email protected] >
Co-authored-by: Josh <[email protected] >
3 years ago
Rapptz
9c61e10a55
Move all async object creation to a proper initialisation point
This should make it so no object is created with another loop
3 years ago
Rapptz
8d4f08a5e7
Fix AutoShardedClient to work with the new asyncio loop machinery
Fix #7675
3 years ago
Han Seung Min - 한승민
93af158b0c
Refactor loop code to allow usage of asyncio.run
3 years ago
dolfies
bfec72eb58
Add application-related methods, fix a couple typos
3 years ago
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.
3 years ago
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.
3 years ago
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
3 years ago
dolfies
571a50cda5
Implement guild member support (and fix a couple other bugs) ( #224 )
* Initial guild member support
* Add back is_guild_evicted() check, fix some documentation/typing, actually use count
* Better error handling
* Fix predicate and chunking on small guilds
* Silence asyncio.CancelledErrors when bot is stopped
* Properly filter events, assert that assert_guild_presence_count() works
* Working events!!!!! (also a fix for sometimes crashing when joining a guild)
* Uniform timeouts
3 years ago
I. Ahmad
8360e4af8d
Add premium_progress_bar_enabled attribute on Guild
3 years ago
Rapptz
fa901afa3a
Add replied_user key when no allowed_mentions is passed in
3 years ago
JDJG Inc. Official
e69428a841
Add with_counts support for Client.fetch_guild
Co-authored-by: Stocker <[email protected] >
Co-authored-by: Danny <[email protected] >
3 years ago
Josh
147948af9b
Use typing.Self throughout library
3 years ago
Nadir Chowdhury
3c6279b947
Implement Guild Scheduled Events
3 years ago
Josh
2b69b5d545
Remove discord.InvalidArgument
This uses TypeError and ValueError instead.
3 years ago
Rapptz
e13997f35e
Remove region parameters from HTTPClient
3 years ago
Josh
285069de08
Fix types in guild.py
3 years ago
Josh
c8064ba6f2
Type-hint gateway
3 years ago
Rapptz
30e7a2e937
Fix a few more type errors
3 years ago
Rapptz
c7c6d74d8d
Fix type errors in the abc module
3 years ago
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.
3 years ago
Josh
dede5539ee
Add support for editing message attachments
3 years ago
Rapptz
e14153ddcb
Fix nonce being sent even when not specified
3 years ago
Josh
37f96e3473
Add message_content intent and move to api v10
3 years ago
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.
3 years ago
Josh
08bee0eeb6
Add support for file/attachment descriptions
3 years ago
Josh
e05c80b963
[types] Refactor and add Application Command types
3 years ago
Nadir Chowdhury
3c0c0f76d7
Add guild scheduled events HTTP methods
3 years ago
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
3 years ago
jack1142
9a6b2fa402
Add Thread.fetch_member
See: discord/discord-api-docs#3998
3 years ago
Nadir Chowdhury
d034264973
Type up Guild Scheduled Events
3 years ago
dolfies
16ad1a176c
Remove embeds :(
3 years ago
dolfies
f96282298e
type ignore aiohttp monkeypatch
3 years ago
dolfies
6420dfdc0f
fix client presences/sessions; add timeout capability; remove GuildIterator; add proper team/application support
3 years ago
dolfies
3db2cf1d1e
One more header
3 years ago
dolfies
89aec14869
Remove headers filled in by aiohttp
3 years ago
dolfies
56226fbbab
Support brotli if brotli is installed
3 years ago
dolfies
887e83de90
Small forgotten things
3 years ago
dolfies
942efe7fe2
Also add the http endpoint
3 years ago