Rapptz
4a4e73ec14
Update thread typings and payloads to match documentation
4 years ago
Rapptz
c1ce3b949f
Implement remaining HTTP endpoints on threads
I'm not sure if I missed any -- but this is the entire documented set
so far.
4 years ago
Rapptz
68c7c538f5
First pass at preliminary thread support
This is missing a lot of functionality right now, such as two gateway
events and all the HTTP CRUD endpoints.
4 years ago
Nadir Chowdhury
94bbdc154c
update types subpackage with latest docs
4 years ago
MhmCats
0847085661
Add support for editing guild widgets
4 years ago
Nadir Chowdhury
9f98a9a87f
Implement StageInstance
4 years ago
Zomatree
b48f510e15
Add invite targets for voice channel invites
4 years ago
Rapptz
98570793e4
Add initial support for buttons and components
4 years ago
Rapptz
1bf7aadf94
Typehint emoji classes
4 years ago
Rapptz
c31946f29f
Type hint GuildChannel and don't make it a Protocol
This reverts GuildChannel back into a base class mixin.
4 years ago
Nadir Chowdhury
63974ec46d
Add discovery_splash and community field to Guild.edit
4 years ago
Nadir Chowdhury
e762f55847
Add fetch_invite with with_expiration
4 years ago
Joey van Langen
4fcbe75d3b
Fix guild application command endpoints
4 years ago
Nadir Chowdhury
b705173676
Add types for ApplicationCommandPermissions & co
4 years ago
z03h
304229071f
Add VoiceChannel.video_quality_mode
4 years ago
Nadir Chowdhury
57dbb37a52
Add `fetch_message` for webhooks
4 years ago
Rapptz
a30ec197c2
Some initial response typings
4 years ago
Rapptz
1f74b051a8
Fix rate limit handling with retry_after precision change
4 years ago
Rapptz
a6f7213c89
Rewrite webhooks to play better with typings and rate limits
This unfortunately required splitting the types into two. This led to
a lot of unfortunate code duplication that I didn't really enjoy
writing.
The new design allows users to pass an authentication token to make
webhook requests without the webhook token and allows to finally
edit the webhook channel.
The new design also uses a contextvar to store rate limiting
information so multiple instances or recreating instances no longer
clears the ratelimiting state since it's now essentially a "global"
object.
Closes #6525 , closes #6662 , closes #2509 , closes #1761
4 years ago
Rapptz
d85805ab6d
First pass at supporting v8 API
4 years ago
Rapptz
99fc950510
Use f-strings in more places that were missed.
4 years ago
Rapptz
1d5805ebcb
Revert "Remove unused group functionality"
This reverts commit d69b2f0af5
.
4 years ago
Steve C
3c9aed9102
Fix AttributeError on HTTPClient.send_file to be send_files
4 years ago
Nadir Chowdhury
7f0a398c1e
Use `format_map` instead of `format` for `Route.url`
4 years ago
Rapptz
d69b2f0af5
Remove unused group functionality
4 years ago
Rapptz
84e2ff0bc7
Reformat HTTPClient and add interaction endpoints
4 years ago
Rapptz
54288879e2
Remove userbot functionality
This has a lot of legacy and cruft so there may be some stuff I've
missed but this first pass is enough to get a clear separation.
4 years ago
Rapptz
9d39b135f4
Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
4 years ago
Nadir Chowdhury
1b2688518e
Implement StageChannel and related methods
4 years ago
Tarek
6524869ddd
Implement voice region changing for voice channels
4 years ago
Rapptz
1c8d1b0289
Recreate aiohttp.FormData objects during request retries
Fixes #6531
4 years ago
z03h
fbb7ac6be1
Add roles to guild.estimate_pruned_members
4 years ago
Nadir Chowdhury
7d345e8e4e
remove trailing whitespace
4 years ago
Nadir Chowdhury
fb773dc1dd
Add remaining template endpoints
4 years ago
Nihaal Sangha
69bdc3a184
Change copyright year to present
4 years ago
Rapptz
3a75816ba1
Support setting the preferred locale via Guild.edit
Fix #6267
4 years ago
PikalaxALT
d1cb30cccf
Implement discord.Message.reply
4 years ago
Harmon
351a1a1865
Raise DiscordServerError for 503 Service Unavailable errors
4 years ago
Rapptz
7126f5a78c
Use delete_message_days instead of delete-message-days
5 years ago
Rapptz
e8eb19b2b4
Use /invites/ instead of /invite/
5 years ago
Rapptz
450e71f086
Add a more concrete exception for 500 status codes.
Fixes #5797
5 years ago
jack1142
bd9821320e
Use a subclass rather than monkey-patching for the websocket
5 years ago
Rapptz
137ff34f3a
If we're out of retries just raise the OSError
5 years ago
Rapptz
e2f42597a5
Handle Connection Reset by Peer connection errors.
This should work both on Windows and on Linux.
Apparently these types of blips are considered normal for Discord. So
rather than letting the reconnect logic handler expect these to be
catastrophic, it should handle it specially so it doesn't waste an
IDENTIFY for what ultimately should just be a small networking blip.
This also makes it less noisy for the end-user as these complaints
happen from time to time.
5 years ago
Rapptz
058a1e608b
Fix voice websocket connections
5 years ago
Rapptz
b8154e365f
Rewrite gateway to use aiohttp instead of websockets
5 years ago
Tarek
a92e3e7b6b
Fix TypeError when not specifying roles.
5 years ago
Nadir Chowdhury
e971e2f16c
Allow more methods to set an audit log reason
5 years ago
Nadir Chowdhury
a64006ee9b
Add support for integrations
5 years ago
Nadir Chowdhury
2b3c6e0d47
Add support for Discord templates
5 years ago