4097 Commits

Author SHA1 Message Date
Rapptz
50e66d4072 Add delete_after to Interaction.edit_message
Closes #9415
2022-12-29 06:56:15 -05:00
Zephyrkul
7cf3cd51a5
Revert "Infer select type from callback annotation 2022-12-18 05:17:41 -05:00
Zephyrkul
b671958e11
Infer select type from callback annotation 2022-12-14 21:59:16 -05:00
Rapptz
bdeccaf106 Add Locale.indonesian 2022-12-14 19:22:49 -05:00
Soheab_
a72fc7416c
Allow empty strings to be in Embed.to_dict 2022-12-14 19:11:12 -05:00
rdrescher909
9b6753f3b4
Add VocalGuildChannel.slowmode_delay 2022-12-14 19:08:30 -05:00
rdrescher909
cc3b987229
Fix AutoModTrigger ignoring allow_list with type keyword 2022-12-14 19:07:32 -05:00
rdrescher909
039d588447
Add ForumChannel.get_thread 2022-12-14 19:06:37 -05:00
rdrescher909
c0dfdf1bef
Add autocomplete warning about user input 2022-12-02 06:10:03 -05:00
Rapptz
da317ad84b [commands] Respect ignore_extra for FlagConverter kw-only parameters 2022-11-29 18:09:53 -05:00
Rapptz
a098867a4d Fix certain parameters not being respected in Guild.create_forum 2022-11-27 23:51:52 -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
Guddi
66d85007b7
Uppercase color codes in the docs 2022-11-21 01:16:01 -05:00
Alex Nørgaard
50078087e5
[commands] Fix variance issues in Bot.add_cog with List[Snowflake] 2022-11-21 01:15:18 -05:00
cibere
f61f7411df
Add setter method for ChannelSelect.channel_types 2022-11-17 05:46:09 -05:00
Varun J
029ed6c46d
Version bump for development 2022-11-16 11:28:38 -05:00
Rapptz
24bdb44d54 Version bump for development 2022-11-12 14:48:26 -05:00
Rapptz
24b61a71c1 Version bump to v2.1.0 2022-11-12 14:47:24 -05:00
Rapptz
dad666651f Add ApplicationFlags.active 2022-11-10 23:46:43 -05:00
Rapptz
3d39f70d30 Add active developer flag 2022-11-10 13:58:31 -05:00
Rapptz
cd6fd13a8f Add AutoModTrigger.__repr__ 2022-11-06 07:21:41 -05:00
Rapptz
84767ef840 Add AutoModTrigger.regex_patterns support 2022-11-06 07:17:38 -05:00
Tom
e92a626662
Add Pycharm support to coloured logging 2022-10-27 10:06:29 -04:00
Trevor
5009c83bc9
Implement New Select Types
Co-authored-by: Soheab_ <33902984+Soheab@users.noreply.github.com>
Co-authored-by: rdrescher909 <51489753+rdrescher909@users.noreply.github.com>
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2022-10-27 10:03:45 -04:00
Steve C
4c8ba635db
Add delete_after into InteractionResponse.send_message 2022-10-26 04:30:57 -04:00
Steve C
7365dd1bd2
[commands] Allow delete_after in Context.send on ephemeral messages 2022-10-26 04:29:25 -04:00
Jonah Lawrence
d7b6a2ad12
Fix usage of single backticks to links and code-blocks 2022-10-26 04:26:56 -04:00
z03h
44c09c17b4
Remove leftover guild from scheduled_event_delete dispatch 2022-10-26 04:26:11 -04:00
rdrescher909
01915fbc09
[tasks] Clarify Loop.stop interaction with before_loop 2022-10-19 21:36:05 -04:00
RioghanDer2te
efd28fc1e0
Remove redundant VocalGuildChannel in GuildChannel Union 2022-10-18 22:05:36 -04:00
Julien Mauroy
d0625154ed
[commands] Add Cog.has_app_command_error_handler 2022-10-10 16:37:48 -04:00
Willy
ba2ad58017
Add default value to Guild.ban docs 2022-10-08 02:11:01 -04:00
crayyy_zee
8f19cfe729
[commands] Add missing description parameter to docs 2022-10-05 17:59:42 -04:00
Jakub Kuczys
d2c6a32543
Type hint support for slices and __index__ in SequenceProxy 2022-10-03 07:27:38 -04:00
Jakub Kuczys
c6decedf7b
Add ForumChannel to Webhook's documentation 2022-10-03 07:27:09 -04:00
ster
95b6bd8782
Add coro tag to docstrings that were missing it 2022-10-02 17:52:18 -04:00
Jakub Kuczys
dc34a8f1dc
Add repr to the SequenceProxy 2022-10-02 17:51:19 -04:00
Omkaar
c30a2f3ca0
Refactor certain f-strings and literals 2022-10-02 17:50:56 -04:00
Rayzeq
e3b5fbd9e6
Update Transformer.choices docs to mention limit
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2022-10-01 03:18:26 -04:00
Jakub Kuczys
7c218b3833
Fix migration guide docs for abc.PrivateChannel and cooldown()
* Move PrivateChannel ABC change to proper subsection in migration guide
* Add change to the accepted callables in cooldown() to migration guide
2022-10-01 03:16:01 -04:00
Jakub Kuczys
6725f329b2
Set thread related perms in private channels to False 2022-10-01 03:14:03 -04:00
Rapptz
217662ca44 Fix detection of overridden binding error handler
Closes #8963
2022-09-27 23:50:06 -04:00
Sebastian Law
7b595fb052
Fix docstring for create_invite 2022-09-26 02:14:31 -04:00
Mega-JC
a705546f0c
Update Thread.message_count documentation
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
2022-09-26 02:12:41 -04:00
Rapptz
cd04f6ca41 Revert Group.on_error copy due to failing tests 2022-09-24 01:43:28 -04:00
Rapptz
6e5392c6e2 Fix Tree.on_error still being called when a bound error handler is set
Closes #8455
2022-09-24 01:22:03 -04:00
Rapptz
6bec7e9d97 Fix detection of overriden Group.on_error and ensure they're copied 2022-09-24 01:18:52 -04:00
ow0x
03d7a9a719
Fix typo in app_commands.ContextMenu docstring 2022-09-23 05:01:02 -04:00
Rapptz
c35ff4cfc6 [commands] Allow Greedy to potentially maintain state between calls 2022-09-20 23:53:48 -04:00
z03h
686071814b
Add Forum.archived_threads 2022-09-18 19:22:21 -04:00