Rapptz
3c4b22b623
[commands] Fix transformers no longer working as annotation
2022-04-12 20:15:10 -04:00
Rapptz
9d05f55ddb
[commands] Fix Optional handling when the inner type is a converter
2022-04-12 20:15:10 -04:00
Rapptz
f072edfdfc
[commands] Properly support commands.param in hybrid commands
2022-04-12 20:15:10 -04:00
Rapptz
fa3a4c109b
[commands] Fix Context.reply not working for hybrid commands
2022-04-12 20:15:10 -04:00
Rapptz
d61561f2e8
[commands] Add support for autocomplete for hybrid commands
2022-04-12 20:15:10 -04:00
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.
2022-04-12 20:15:10 -04:00
Rapptz
1232a1d2fd
[commands] Properly call after_hooks in hybrid commands
2022-04-12 20:15:10 -04:00
Rapptz
c1892131a6
[commands] Fix Context docstring missing Interaction ref
2022-04-12 20:15:10 -04:00
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.
2022-04-12 20:15:10 -04:00
Steve C
151806ec94
Add ForumChannel to Thread.parent_id docstring
2022-04-12 20:14:20 -04:00
Jonah Lawrence
7bf1a7483a
Parse command descriptions from docstrings
...
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-04-12 16:31:17 -04:00
Omkaar
1e4908b403
Add ForumChannel to abc.GuildChannel docstring
2022-04-12 04:55:56 -04:00
Omkaar
348764583d
Add jump_url property to channels
2022-04-12 00:23:15 -04:00
I. Ahmad
6265723a35
Add support for archive duration in Guild.create_text_channel
2022-04-11 17:21:08 -04:00
NextChai
5892bbd8b4
Allow getting all commands from CommandTree.get_commands
...
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-04-10 23:00:18 -04:00
Vioshim
79bd18f98c
Add reason parameter to Thread.edit
2022-04-10 22:51:24 -04:00
Rapptz
29d4c26466
Upgrade WebhookMessage.channel to Thread if available
2022-04-10 18:15:02 -04:00
Rapptz
538ba0d076
Update Webhook.channel typing to include VoiceChannel as well
2022-04-10 18:11:44 -04:00
Rapptz
c284145f18
Add and remove some versionadded directives
2022-04-10 17:12:56 -04:00
Rapptz
6a49dfcc0f
Fix crash with WEBHOOKS_UPDATE channel_id being nullable
2022-04-10 03:47:03 -04:00
z03h
aee657bca5
[commands] Add converter kwarg to flag
2022-04-09 02:10:32 -04:00
Omkaar
1e914e8945
Document Modal parameter limits
2022-04-08 23:58:18 -04:00
Vioshim
4ce60b4cac
Documented Embed limits in docstrings
2022-04-08 21:53:08 -04:00
Narmy
723584ca19
Add Permissions.elevated()
2022-04-07 10:42:57 -04:00
Rapptz
30cc00c9a4
Explicitly specify public threads when creating them in forums
...
The endpoint seems to fail otherwise
2022-04-06 23:27:27 -04:00
Rapptz
a8b26b9257
Allow pinning a thread using Thread.edit
2022-04-06 23:21:17 -04:00
Rapptz
92eb9d7d8e
Fix documentation for ChannelFlags.pinned
2022-04-06 23:06:58 -04:00
Rapptz
67a58d10ae
Change Fetch -> Retrieve for last_message documentation
2022-04-06 23:02:58 -04:00
Rapptz
23f6876492
Add initial support for forum channels
...
Closes #7652
2022-04-06 23:02:58 -04:00
Willy
bc91e1667f
Fix typo in Member.timeout docs
2022-04-06 22:11:54 -04:00
Willy
b8ae05f59f
[commands] Fix missing ctx in example
2022-04-06 19:24:17 -04:00
Rapptz
f07885973f
Provide callback name where applicable in validation
...
Fix #7850
2022-04-06 08:57:04 -04:00
apple502j
ad478ff2da
[docs] Update PrivilegedIntentsRequired docs
2022-04-06 04:26:36 -04:00
apple502j
f77078278a
Update system_content for channel_follow_add message
2022-04-06 02:08:20 -04:00
Alex Nørgaard
0263774e13
Remove the use of ! in the Member.mention property
2022-04-06 01:05:37 -04:00
Rapptz
b32b78de45
[commands] Fix missing or inferred type hints in parameters.py
2022-04-05 22:47:21 -04:00
Rapptz
76cc2c2272
Require passing intents to Client and its subclasses
2022-04-05 22:32:14 -04:00
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.
2022-04-05 11:01:55 -04:00
Rapptz
c68ea67213
Properly handle inheritance overriding in View subclasses
2022-04-05 09:41:48 -04:00
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
2022-04-05 06:40:31 -04:00
Rapptz
f15f601779
[commands] Check if an application command starts with bot_ or cog_
2022-04-05 06:06:35 -04:00
Rapptz
b823a4bab1
[commands] Only update annotation if an explicit override is given
2022-04-05 06:02:28 -04:00
Rapptz
c582940401
Remove ancient IDENTIFY key that is no longer used
2022-04-05 05:22:00 -04:00
Rapptz
dbcdf69eb1
[commands] Raise appropriate exception for no guild found
2022-04-04 21:49:11 -04:00
Rapptz
8b50ac8a31
[commands] Don't set a converter for the defaults provided
2022-04-04 21:47:03 -04:00
Rapptz
66155faf00
[commands] Fix documentation not being properly formatted
2022-04-04 18:10:43 -04:00
James Hilton-Balfe
55c5be78cf
[commands] Implement commands.parameter
2022-04-04 18:01:21 -04:00
Josh
deb7958797
Add new on_thread_create event
2022-04-04 07:22:21 -04:00
Rapptz
b561024163
Fix WebhookState not handling reaction emoji
...
Fix #7842
2022-04-04 00:49:36 -04:00
Rapptz
907d5e0ee7
Document Forbidden exception in CommandTree.sync
2022-04-03 22:57:54 -04:00