323 Commits

Author SHA1 Message Date
Soheab
fa158a5eba
Add support for getting and editing integration_types_config application field 2025-02-17 20:21:19 -05:00
DA344
eb15aa8ca4
Add exclude_deleted parameter to Client.entitlements 2025-01-15 18:19:49 -05:00
Ginger
fcd9239b33
Add Client.fetch_guild_preview method 2025-01-15 18:01:47 -05:00
Michael H
9806aeb831
Add public method to get session start limits 2024-12-01 16:19:09 -05:00
Rapptz
e1b6310ef3 Remove / from being safe from URI encoding when constructing paths 2024-11-23 22:04:57 -05:00
Rapptz
a0b0a97e52 Support enforce_nonce and add random nonce for message creation 2024-10-27 14:49:41 -04:00
Sherlock
b11f19a397
Add proxy support for get_from_cdn 2024-10-11 15:31:47 -04:00
owocado
04b8f385b1
Remove leftover print statement 2024-10-10 18:32:58 -04:00
MCausc78
58b6929aa5
Add SKU subscriptions support 2024-10-09 18:04:14 -04:00
Lilly Rose Berner
91f300a28a
Add zstd gateway compression to speed profile 2024-10-09 17:30:03 -04:00
Andrin
a70217a719
Support for Soundboard and VC effects 2024-10-09 17:05:17 -04:00
Soheab
463b4bd570
Add support for application emojis
Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com>
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2024-08-28 17:15:15 -04:00
Andrin
62e52803a7
Add support Member.fetch_voice 2024-08-28 16:36:22 -04:00
Deep Jain
643a7f4e1d
Add DummyCookieJar to client owned ClientSession 2024-08-28 16:21:41 -04:00
Andrin
34bf026a02
Add support for get sticker pack 2024-08-28 16:15:26 -04:00
Oliver Ni
f9dbe60fc4
Revert "Set socket family of connector to AF_INET"
This change was made since Discord doesn't support IPv6, and there were
concerns about clients with DNS64 enabled without NAT64.

However, this breaks hosts who don't have v4 connectivity and are
_actually_ running NAT64.

Having DNS64 without NAT64 is really an issue on the client's end. It
would break far more than just discord.py, so I don't think we should be
concerned about those cases.
2024-08-28 16:05:39 -04:00
Andrin
9ab938a9ea
Add Guild.fetch_role 2024-08-28 15:54:34 -04:00
Andrin
f77ba711ba
Add reaction type to raw events and users iterator 2024-05-18 14:33:26 -04:00
DA344
e43bd8692c
Add support for Polls
Co-authored-by: owocado <24418520+owocado@users.noreply.github.com>
Co-authored-by: Josh <8677174+bijij@users.noreply.github.com>
Co-authored-by: Trevor Flahardy <75498301+trevorflahardy@users.noreply.github.com>
2024-05-10 06:14:12 -04:00
Lucas Hardt
2892401992
Add support for one-time purchases 2024-05-04 23:24:34 -04:00
Rapptz
ded9c5d87b Add support for bulk banning members 2024-03-15 18:05:35 -04:00
Soheab_
851c857a36
Add support for guild incidents
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2024-01-26 20:02:11 -05:00
Andrin
9ce733321b
Add support for setting voice channel status 2023-12-26 05:32:21 -05:00
Andrin
50190e088e
Add applied_tags param to Webhook.send 2023-12-12 17:13:55 -05:00
Andrin
56c67d3967
Implement editing application info 2023-11-20 04:33:56 -05:00
Mikey
a9936c2da5
Fix typo in HTTPClient create_entitlement 2023-11-19 19:08:20 -05:00
Andrin S
ef0944047e
Fix SKU return type and documentation 2023-10-21 09:32:47 -04:00
Lucas Hardt
99618c823a
Add support for premium app integrations
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
Co-authored-by: Lucas Hardt <lucas.hardt@fu-berlin.de>
Co-authored-by: Andrin S. <65789180+Puncher1@users.noreply.github.com>
2023-10-19 07:27:29 -04:00
Soheab_
ebe2661f7d
Add missing scheduled_event field to StageChannel.create_instance 2023-10-01 13:41:07 -04:00
Josh
630b2a1e55
Update pyright version 2023-07-01 18:26:27 -04:00
Michael H
e6d2d82803
Set socket family of connector to AF_INET
- discord doesn't support ipv6
- prevents issues with hosts with DNS64 enabled
- resolves #9442
2023-06-04 18:11:16 -04:00
Andrin S
66689e16e8
Add with_counts param to fetch_guilds 2023-05-19 20:47:16 -04:00
Andrin S
bee2db805d
Add and change Guild attributes and Guild.edit params 2023-04-18 08:58:50 -04:00
Puncher
2ca1a3a9a4
Add mfa_level parameter to Guild.edit 2023-03-16 07:15:12 -04:00
Puncher
7db197ef25
Add default_reaction_emoji and default_forum_layout to create_forum 2023-03-12 22:17:48 -04:00
Puncher
dc9fb1fd84
Add missing param send_start_notification to create_instance 2023-03-06 20:15:22 -05:00
Puncher
a1295868a6
Add support for default_sort_order in ForumChannel 2023-03-05 17:30:23 -05:00
Josh
6af6f82411
Fix audit log pagination logic 2023-02-27 06:15:28 -05:00
Rapptz
cbc46e0973 Add support for ForumChannel.default_layout 2023-01-10 16:43:18 -05:00
Rapptz
a098867a4d Fix certain parameters not being respected in Guild.create_forum 2022-11-27 23:51:52 -05:00
Ionite
6981eb69c4
Normalize type formatting in TypeError
Normalize most mixed usages of `__class__`, `__class__!r`, 
`__class__.__name__!r` to the standard form of 
`__class__.__name__`
2022-09-12 15:25:55 -04:00
Rapptz
ab265dcb7c Add support for newest ForumChannel changes
This adds the following:

- Forum tag support
- Default reaction support
- Default slowmode for newly created threads
2022-08-31 11:09:56 -04:00
Josh
e57617e157
Add support for delete_message_seconds ban argument 2022-08-28 02:06:57 -04:00
Rapptz
8dd186cf1e Fix cache eviction for ratelimit objects 2022-08-17 08:39:39 -04:00
Rapptz
f1ec0919f6 Remove stack info from ratelimit logs 2022-08-10 22:55:27 -04:00
Rapptz
87c9c95bb8 Use persistent dictionary for ratelimit information
This should prevent ratelimit information from being cleared too early.
In order to prevent the dictionary from growing to large expired keys
are deleted once they've been deleted.

At present I'm unsure if this change would cause too much CPU pressure.
2022-08-05 23:19:16 -04:00
Rapptz
a01dad283f Add extraneous debug logging to sub ratelimits being detected 2022-07-19 01:36:18 -04:00
Rapptz
76402b00f9 Allow configuring the maximum ratelimit timeout before erroring
This is useful for cases where a rate limit is known to be
extraordinarily high, but you still want to handle the error.
This is common with routes such as emoji creation.
2022-07-19 01:36:18 -04:00
Rapptz
85ea418776 Special case message deletion sub rate limits 2022-07-19 00:07:28 -04:00
Rapptz
c17eb31328 Rewrite rate limit handling to use X-Ratelimit-Bucket and a semaphore
This should increase throughput of the number of requests that can be
made at once, while simultaneously following the new standard practice
of using the rate limit bucket header.

This is an accumulation of a lot of months of work between a few people
and it has been tested extensively. From the testing it seems to work
fine, but I'm not sure if it's the best way to do it.

This changeset does not currently take into consideration sub
rate limits yet, but the foundation is there via Route.metadata. In the
future, this metadata will be filled in with the known sub rate limit
implementation to allow them to have separate keys in the rate limit
mapping.

Co-authored-by: Josh <josh.ja.butt@gmail.com>
2022-07-19 00:07:28 -04:00