Rapptz
65418414ea
[commands] Refactor parameter replacement to be less brittle
If a parameter works as-is as a transformer or a built-in then it
will always be taken rather. This way, the custom behaviour is done
as a fallback in case it doesn't work natively with app commands.
This also allows things that are hybrid transformers and converters
to work transparently.
3 years ago
Rapptz
896932faf1
[commands] Add Range converter
This allows hybrid commands to also have a range annotation
3 years ago
Rapptz
3c4b22b623
[commands] Fix transformers no longer working as annotation
3 years ago
Rapptz
9d05f55ddb
[commands] Fix Optional handling when the inner type is a converter
3 years ago
Rapptz
f072edfdfc
[commands] Properly support commands.param in hybrid commands
3 years ago
Rapptz
fa3a4c109b
[commands] Fix Context.reply not working for hybrid commands
3 years ago
Rapptz
d61561f2e8
[commands] Add support for autocomplete for hybrid commands
3 years ago
Rapptz
52fcaed79b
[commands] Reassign app_command attribute on copy
Prior to this change it would re-create the HybridAppCommand on copy
which had the consequence of clearing parameter related changes.
3 years ago
Rapptz
1232a1d2fd
[commands] Properly call after_hooks in hybrid commands
3 years ago
Rapptz
c1892131a6
[commands] Fix Context docstring missing Interaction ref
3 years ago
Rapptz
840eb577d4
[commands] Add initial implementation of hybrid commands
Hybrid commands allow a regular command to also double as a slash
command, assuming it meets the subset required to function.
3 years ago
Steve C
151806ec94
Add ForumChannel to Thread.parent_id docstring
3 years ago
Jonah Lawrence
526ed46d7a
Add tests for command descriptions
3 years ago
Jonah Lawrence
7bf1a7483a
Parse command descriptions from docstrings
Co-authored-by: Danny <[email protected] >
3 years ago
Omkaar
1e4908b403
Add ForumChannel to abc.GuildChannel docstring
3 years ago
Omkaar
348764583d
Add jump_url property to channels
3 years ago
I. Ahmad
6265723a35
Add support for archive duration in Guild.create_text_channel
3 years ago
NextChai
5892bbd8b4
Allow getting all commands from CommandTree.get_commands
Co-authored-by: Danny <[email protected] >
3 years ago
Vioshim
79bd18f98c
Add reason parameter to Thread.edit
3 years ago
Rapptz
c568ed8cdc
Pin Pyright to 1.1.235
3 years ago
Rapptz
29d4c26466
Upgrade WebhookMessage.channel to Thread if available
3 years ago
Rapptz
538ba0d076
Update Webhook.channel typing to include VoiceChannel as well
3 years ago
Rapptz
c284145f18
Add and remove some versionadded directives
3 years ago
Rapptz
6a49dfcc0f
Fix crash with WEBHOOKS_UPDATE channel_id being nullable
3 years ago
Devon R
95deb55332
Translation-related actions fixes
3 years ago
z03h
aee657bca5
[commands] Add converter kwarg to flag
3 years ago
Omkaar
1e914e8945
Document Modal parameter limits
3 years ago
Vioshim
4ce60b4cac
Documented Embed limits in docstrings
3 years ago
Narmy
723584ca19
Add Permissions.elevated()
3 years ago
Rapptz
30cc00c9a4
Explicitly specify public threads when creating them in forums
The endpoint seems to fail otherwise
3 years ago
Rapptz
a8b26b9257
Allow pinning a thread using Thread.edit
3 years ago
Rapptz
92eb9d7d8e
Fix documentation for ChannelFlags.pinned
3 years ago
Rapptz
67a58d10ae
Change Fetch -> Retrieve for last_message documentation
3 years ago
Rapptz
23f6876492
Add initial support for forum channels
Closes #7652
3 years ago
Willy
bc91e1667f
Fix typo in Member.timeout docs
3 years ago
Willy
b8ae05f59f
[commands] Fix missing ctx in example
3 years ago
Rapptz
f07885973f
Provide callback name where applicable in validation
Fix #7850
3 years ago
apple502j
ad478ff2da
[docs] Update PrivilegedIntentsRequired docs
3 years ago
apple502j
f77078278a
Update system_content for channel_follow_add message
3 years ago
Alex Nørgaard
0263774e13
Remove the use of ! in the Member.mention property
3 years ago
Rapptz
abeea73734
Fix remaining things not explicitly passing the intents kwarg
3 years ago
Rapptz
b32b78de45
[commands] Fix missing or inferred type hints in parameters.py
3 years ago
Rapptz
76cc2c2272
Require passing intents to Client and its subclasses
3 years ago
Vish M
7770972041
A small grammar fix app_commands.context_menu
This just makes it so it adheres with the rule that `an` goes
before a word that begins with a vowel.
3 years ago
Rapptz
c68ea67213
Properly handle inheritance overriding in View subclasses
3 years ago
Rapptz
629f36e7d7
[commands] Add fallback behaviour to the default parameter instances
This allows users to explicitly override the default annotation for
CurrentAuthor and CurrentChannel since they're wider than what most
users would expect
3 years ago
Rapptz
f15f601779
[commands] Check if an application command starts with bot_ or cog_
3 years ago
Rapptz
b823a4bab1
[commands] Only update annotation if an explicit override is given
3 years ago
Rapptz
c582940401
Remove ancient IDENTIFY key that is no longer used
3 years ago
Rapptz
dbcdf69eb1
[commands] Raise appropriate exception for no guild found
3 years ago