368 Commits

Author SHA1 Message Date
Rapptz
dc4ed438a5 Fix plain username lookup for Guild.get_member_named
Fix #9451
2023-06-12 19:39:46 -04:00
Rapptz
a8675ccde8 Fix afk_channel docstring error 2023-06-11 12:52:47 -04:00
Rapptz
abfb3a11b0 Refactor Guild.afk_channel to use a property 2023-06-11 12:49:17 -04:00
Rapptz
c5da0fe7c1 Remove and address stale TODO comments 2023-06-11 12:41:04 -04:00
Rapptz
e870bb1335 Add constant for the default file size limit 2023-05-19 21:21:37 -04:00
Rapptz
48cca30ca1 Revert removal of discriminator lookup 2023-05-19 20:59:19 -04:00
Rapptz
df01db3490 Initial support for pomelo migration 2023-05-19 20:59:19 -04:00
Andrin S
66689e16e8
Add with_counts param to fetch_guilds 2023-05-19 20:47:16 -04:00
Joab
be861e5eac
Fix indentation in create_text_channel docs 2023-05-13 14:15:45 -04:00
Andrin S
bee2db805d
Add and change Guild attributes and Guild.edit params 2023-04-18 08:58:50 -04:00
Vioshim
7f578fde22
Update base file size limit 2023-04-18 00:53:43 -04:00
z03h
2247ffd9b5
Convert Webhook targets in AuditlogEntry 2023-04-18 00:36:53 -04:00
Rapptz
064cbd1125 Clean up Guild.edit documentation 2023-03-17 18:02:02 -04:00
Puncher
2ca1a3a9a4
Add mfa_level parameter to Guild.edit 2023-03-16 07:15:12 -04:00
Puncher
7af70ac988
Add widget_channel and widget_enabled parameters in Guild.edit 2023-03-15 22:53:31 -04:00
Rapptz
08d668f21b Fix improper usages of Optional MISSING in create_forum 2023-03-12 22:22:42 -04:00
Puncher
7db197ef25
Add default_reaction_emoji and default_forum_layout to create_forum 2023-03-12 22:17:48 -04:00
rdrescher909
198425707e
Add Guild.get_emoji helper 2023-03-12 22:13:08 -04:00
Puncher
103d75540c
Fix MISSING error for enabled param in create_automod_rule 2023-03-05 17:32:20 -05:00
Puncher
79c508311f
Add support for default_thread_slowmode_delay in TextChannel 2023-03-05 17:31:14 -05:00
Puncher
a1295868a6
Add support for default_sort_order in ForumChannel 2023-03-05 17:30:23 -05:00
Puncher
60094b17a9
Fix create_scheduled_event param handling 2023-03-05 17:28:50 -05:00
Puncher
1e9d04bbca
Add missing and fix wrong docstrings 2023-02-28 02:18:59 -05:00
Josh
6af6f82411
Fix audit log pagination logic 2023-02-27 06:15:28 -05:00
Jonte
2cde1133f9
Update create_stage_channel to support more parameters 2023-02-18 22:34:03 -05:00
Rapptz
26beabb740 Document default_auto_archive_duration accepted values 2023-01-21 00:12:21 -05:00
Rapptz
e802a87916 Synchronise Guild.features type hints with newest entries 2023-01-10 17:01:20 -05:00
Lia Marie
dc194409c4
Update Guild.query_members docstring 2023-01-10 16:22:51 -05:00
Eta
4122bef8ee
Fix async iterators requesting past their bounds
This affects Messageable.history, ScheduledEvent.users, 
Client.fetch_guilds, and Guild.audit_logs.

To illustrate the problem, Messageable.history counted returned
messages to tell when to stop iteration, but did so before filtering
away those past the before or after boundaries. When both 
oldest_first=False and an after boundary were provided, this led to the
history iterator continuing to retrieve messages older than the after
boundary, which would then all be filtered away, continuing until the
message limit or the beginning of the entire channel was reached. 

A similar situation would also occur with oldest_first=True and a
before boundary provided.

This commit changes the logic in these methods to count items after
filtering, so they stop requesting more as soon as the in-bounds items
are exhausted.
2022-11-27 01:43:24 -05:00
Jonah Lawrence
d7b6a2ad12
Fix usage of single backticks to links and code-blocks 2022-10-26 04:26:56 -04:00
Willy
ba2ad58017
Add default value to Guild.ban docs 2022-10-08 02:11:01 -04:00
Omkaar
c30a2f3ca0
Refactor certain f-strings and literals 2022-10-02 17:50:56 -04:00
Steve C
ce06beeb6c
Fix permissions-based docstrings to be more consistent 2022-09-17 14:07:39 -04: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
1c163b66cd Fix stage_instances and guild_schedule_events clearing on GUILD_UPDATE 2022-09-06 17:45:01 -04:00
Josh
df21c26195
Add support for toggling discoverable and invites_disabled features 2022-09-03 11:51:21 -04:00
Rapptz
aa0acf1d56 Add more options to Guild.create_forum 2022-09-01 05:10:41 -04:00
Puncher
896513b3ac
Clarify some documentation in Guild features
Add afk_timeout unit and changed VIP_REGIONS feature description
2022-08-30 00:50:17 -04:00
Josh
e57617e157
Add support for delete_message_seconds ban argument 2022-08-28 02:06:57 -04:00
mirnovov
5039b967a0
Document get_thread not fetching archived threads 2022-08-16 16:59:20 -04:00
Bryan Forbes
d707019348
Bump Pyright to 1.1.265, fix type errors, and remove unnecessary ignores 2022-08-04 22:46:02 -04:00
Soheab
dc8cbc073e
Fix small typo in Guild.edit docstring 2022-07-27 22:28:54 -04:00
z03h
9f1c511b47
Fix Guild.afk_channel and VoiceState.channel being None at startup 2022-07-26 09:38:36 -04:00
Rapptz
d52bc5d225 Cache voice members on start up if MemberCacheFlags.voice is enabled
Fix #8209
2022-07-20 23:12:36 -04:00
Rapptz
87bc79e6e3 Change certain sequences to use a special proxy type instead of list
This is to speed up cases where someone is just querying the length
of the underlying sequence. If anything else is done to the sequence
then it is copied from the original iterator.

This change should be mostly transparent.
2022-07-19 01:58:58 -04:00
z03h
04aeff660b
Add automod types to audit log 2022-07-07 19:30:03 -04:00
apple502j
b95db674c0
Fix some typos 2022-06-27 22:34:45 -04:00
Alex Nørgaard
5426d19dc7
Implement AutoMod 2022-06-27 00:47:52 -04:00
Sarthak Upadhyay
1ba290d8c6
Update sticker limit in _PREMIUM_GUILD_LIMITS 2022-06-14 00:37:58 -04:00
Alex Nørgaard
6a58cabf5c
Add Guild.create_forum and CategoryChannel.create_forum 2022-06-09 00:56:31 -04:00