3948 Commits

Author SHA1 Message Date
Rapptz
84c38f1f22 Ignore errors if it's already handled in app commands 2022-03-21 04:07:05 -04:00
Rapptz
f7c664e3e2 Add error handler support for context menus 2022-03-21 03:56:28 -04:00
jack1142
97fe07edb2
Update migration guide with change to Message.channel_mentions type 2022-03-21 01:12:34 -04:00
jack1142
5202956f97
Update migration guide with loop-related changes to Client's constructor 2022-03-21 01:12:20 -04:00
Rapptz
cf2707b2fb Propagate thread_id in webhook message methods
This also adds the remaining thread parameters where they were missing
2022-03-20 19:43:51 -04:00
jack1142
6dc314628e
Make guild and guilds args in Bot.remove_cog() keyword-only 2022-03-20 19:01:37 -04:00
Stocker
5fa32540a4
Change Message to subclass PartialMessage 2022-03-20 15:18:24 -04:00
chromacoat dreamkey
515d17405a
Fix typos in some View methods' docstrings 2022-03-20 12:59:23 -04:00
I. Ahmad
4dc24a005a
Fix typo in PartialMessageable docstring 2022-03-20 04:11:35 -04:00
thetimtoy
58c1e8fabf
Remove unnecessary exported variables 2022-03-20 02:58:48 -04:00
jack1142
d55f8d38ad
Add PartialMessageable.__repr__ 2022-03-20 02:58:29 -04:00
BeatButton
7389707847
Only send allowed_mentions if content changed 2022-03-20 02:55:48 -04:00
Rapptz
2876622f84 Fix typo in app command check documentation 2022-03-19 15:48:00 -04:00
Josh
1b70fad5ec
[commands] Fix exceptions in HelpCommand 2022-03-19 13:14:17 -04:00
Josh
fafc5b13f6
[commands] Rework help command to avoid a deepcopy on invoke 2022-03-19 06:34:19 -04:00
Pat
94f4da9248
Change View child mutators to be fluent-style methods 2022-03-19 04:48:50 -04:00
z03h
5d6905a1bc
Update clean_content/channel_mentions for threads 2022-03-19 04:46:55 -04:00
Rapptz
195c923bec Fallback to Object if the type is not resolved in namespace 2022-03-19 01:38:16 -04:00
Rapptz
bea6b815e2 Add support for app command checks
This does not include any built-in checks due to design considerations.
2022-03-19 01:24:53 -04:00
Rapptz
5f7c5abe0a Change ban type hints to use int instead of Literal 2022-03-18 21:45:15 -04:00
will
13d19dc5ce
Fix typo in http_trace parameter documentation 2022-03-18 10:49:24 -04:00
Rapptz
77ec49782a Add http_trace option in Client to trace the library's HTTP requests 2022-03-18 08:02:53 -04:00
Rapptz
4a76464ac9 Fix return value of Guild.chunk 2022-03-18 07:37:28 -04:00
z03h
8d86ee3fe3
Fix mention_author suppressing all mentions 2022-03-18 01:52:11 -04:00
Rapptz
02b79eb219 [commands] Change BotT to be covariant 2022-03-18 01:13:50 -04:00
Rapptz
98a31cf285 Change autocomplete callbacks to only take two parameters
The old namespace parameter can be retrieved using the
Interaction.namespace property instead, which leads to somewhat cleaner
code.
2022-03-17 10:13:09 -04:00
Rapptz
d2f6b05c43 Fix missing List -> Sequence typehint in interaction message edit 2022-03-17 10:00:03 -04:00
Rapptz
f5341a1cfa Document cases where setup_hook can deadlock rather than raising 2022-03-17 09:56:25 -04:00
Rapptz
202b993da3 Add Interaction.command and Interaction.namespace attributes 2022-03-17 09:45:21 -04:00
Rapptz
3c6daff473 Change default ellipsis descriptions to use U+2026 2022-03-17 07:37:33 -04:00
Omkaar
70470753cd
Update images in bot creation guide 2022-03-17 07:27:56 -04:00
Stocker
caf2000fe8
Add missing annotation for ThreadMember.id 2022-03-17 07:27:13 -04:00
Josh
e01d4a31eb
Replace invariant container types with wider types where applicable 2022-03-17 07:26:01 -04:00
apple502j
3e77a7b29e
Forbid wait_until_ready inside setup_hook 2022-03-17 07:25:10 -04:00
Rapptz
c77bbc4dcf Move with_counts parameter documentation where it belongs 2022-03-16 07:43:31 -04:00
Rapptz
5b8bcaff73 Validate and bind parent in Group.add_command 2022-03-16 07:32:01 -04:00
Rapptz
7c0a9e901d Fully initialise asyncio state in __aenter__ 2022-03-16 05:51:25 -04:00
Rapptz
575eacb1bf Change loop sentinel error to not use a tuple
This was an unintentional error
2022-03-16 05:50:28 -04:00
Rapptz
1fba54ce97 Reword DeletedMessageReference docstring to be clearer 2022-03-16 05:12:26 -04:00
Rapptz
1192d842e1 Fix some type checker errors and remove some type ignores
Caught from an upgraded Pyright
2022-03-16 01:46:58 -04:00
Rapptz
6d75d2e937 Fix unnecessary type ignores in gateway 2022-03-16 01:19:45 -04:00
Rapptz
d2b69ce19a Downgrade unnecessary type ignore into a warning instead of error 2022-03-16 01:01:18 -04:00
Rapptz
380e9118d5 Temporarily change Crowdin upload to be a manual workflow dispatch 2022-03-16 00:42:06 -04:00
Rapptz
61577677cd Fix Guild.fetch_members limit parameter typing to be Optional 2022-03-16 00:39:05 -04:00
Rapptz
caf1c6eae4 Fix overload in StoreChannel 2022-03-16 00:13:39 -04:00
Rapptz
446c502995 Change lowercase detection to work with CJK languages
str.islower() does not properly work with characters in the Lo category
so CJK languages fail the check.

Fix #7698
2022-03-15 23:37:54 -04:00
Stocker
fd5dea4e34
Update Permissions.stage_moderator 2022-03-15 23:33:11 -04:00
Devon R
2d28d7b765
Add Crowdin actions 2022-03-15 21:28:29 -04:00
Rapptz
26457b6d50 Remove automatic defer behaviour from View and Modal
This doesn't make as much sense anymore now that
InteractionResponse.edit_message exists.
2022-03-15 10:30:19 -04:00
z03h
e5461c73b6
[commands] Check if any base in a Cog is a subclass of Group 2022-03-15 09:50:49 -04:00