830 Commits

Author SHA1 Message Date
z03h
bd727d2b0c
Add edit and delete methods to AppCommand 2022-05-05 06:20:55 -04:00
Rapptz
9793fba338 [commands] Add support for discord.Attachment converters 2022-05-05 01:54:59 -04:00
xCirno
e9c7c09ebf
Add guild avatar to on_member_update docs 2022-05-03 09:44:12 -04:00
NextChai
300fb0411e
Replace trigger_typing with awaiting typing context manager 2022-05-02 04:36:18 -04:00
z03h
619bc50e5d
Add application command permissions to audit log 2022-05-01 18:59:57 -04:00
Rapptz
f4c5d37c8f [commands] Rework Cog + Group inheritance to requite GroupCog
This is an attempt to fix the MRO issues present in the current
implementation. The previous implementation of using both Cog and
app_commands.Group in the inheritance chain caused issues with things
such as walk_commands due to it potentially shadowing the app_commands
version of the call.

In this particular case it's better to use composition instead of
inheritance to avoid these bugs entirely. Especially as more things are
added that could conflict with each other.
2022-05-01 14:01:21 -04:00
Mikey
165e14063f
[commands] fix BucketType.default bypassing dynamic_cooldown 2022-04-30 18:46:37 -04:00
invalid-user
20a7961e19
Rename use_slash_commands to use_application_commands
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-04-30 06:53:29 -04:00
gx1285
141c31e50f
Update images used in discord.rst, etc 2022-04-30 06:13:14 -04:00
Rapptz
e53daaba35 Properly namespace MISSING in the documentation 2022-04-28 10:56:31 -04:00
Rapptz
204f941e96 Display permissions v2 decorators in the documentation 2022-04-28 10:50:00 -04:00
Rapptz
500bf77103 Document and export MISSING sentinel 2022-04-28 07:52:23 -04:00
Adwaith
b678effb76
Add intents parameter to basic example 2022-04-27 22:13:05 -04:00
Lilly Rose Berner
6e2cfff2ac
Add raw member remove event 2022-04-27 22:08:04 -04:00
Mikey
da9abca74d
Remove text about intents being optional 2022-04-27 00:47:44 -04:00
killakej
5c2431d543
Update api.rst documentation to add timeout to on_member_update
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-04-26 08:50:40 -04:00
Alex Nørgaard
6d95ed19b0
Add interited members to WebhookMessage docs 2022-04-25 02:02:07 -04:00
Lilly Rose Berner
277d35c9b2
Add raw typing event and fix typing event not working for DMs 2022-04-23 22:25:07 -04:00
Rapptz
5fcd4e411f [commands] Add support for typing.Annotated 2022-04-22 06:31:02 -04:00
Lilly Rose Berner
3e8fa5a661
Add raw thread delete event 2022-04-22 00:42:39 -04:00
Hafidh
222dd3cf5b
Add missing discord.EventStatus.ended from API docs 2022-04-21 23:27:00 -04:00
will
88b22611bc
Fix utils.oauth_url doc in slash commands FAQ 2022-04-18 19:15:45 -04:00
PythonCoderAS
c2391cf673
Add some slash commands FAQs
Co-authored-by: ChesterWOV <99033489+ChesterWOV-DPY@users.noreply.github.com>
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-04-18 17:41:24 -04:00
Cobalt
6e6d16093c
Update extensions primer in line with async breaking changes 2022-04-18 06:26:50 -04:00
Vaskel
89b9f1616c
Add self_deaf and self_mute params to voice connect methods 2022-04-14 19:06:22 -04:00
Rapptz
e9ff6b4be8 [commands] Fix broken documentation references 2022-04-13 18:49:39 -04:00
Rapptz
141d9f4c71 [commands] Add ForumChannelConverter converter 2022-04-13 17:44:03 -04:00
Rapptz
896932faf1 [commands] Add Range converter
This allows hybrid commands to also have a range annotation
2022-04-12 20:15:11 -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
Rapptz
23f6876492 Add initial support for forum channels
Closes #7652
2022-04-06 23:02:58 -04:00
Rapptz
76cc2c2272 Require passing intents to Client and its subclasses 2022-04-05 22:32:14 -04:00
Rapptz
dbcdf69eb1 [commands] Raise appropriate exception for no guild found 2022-04-04 21:49:11 -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
will
b1878224f2
Fix capitalizations and typo in migrating guide 2022-04-02 01:26:39 -04:00
Chrovo
26ac844a04
Fix typo in migrating guide for Client.on_error 2022-04-02 00:06:39 -04:00
Rapptz
f47568ee71 Document Guild.bans breaking change in the migrating guide 2022-04-01 11:47:27 -04:00
Rapptz
e79895d824 Add Message.interaction and MessageInteraction type
Fix #7819
2022-04-01 11:15:15 -04:00
Rapptz
24f8f8d4a7 Rename MaxCommandsReached to CommandLimitReached 2022-03-31 23:10:13 -04:00
Rapptz
34b2ff40b6 Change ValueError on max commands reached to a more specific exception 2022-03-31 09:34:48 -04:00
Josh
c11363f037
Rework File.spoiler to synchronise with the filename
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-03-31 09:18:36 -04:00
Jonah Lawrence
37bbfdce95
Add context_menu_command Message type 2022-03-30 19:13:00 -04:00
Rapptz
9f83eb6032 Add application command cooldown decorators
Fix #7790
2022-03-29 00:46:42 -04:00
Rapptz
74b5e0ceb1 Implement some built in checks for app_commands
A lot of these implementations are adapted from the equivalent
ext.commands checks. These only implement the common ones that could
not solely be done by Discord in the future.
2022-03-28 16:36:29 -04:00
Nadir Chowdhury
c6d0c82d66
Implement app_commands.rename decorator 2022-03-28 05:52:33 -04:00
Rapptz
def035bf9a Remove StoreChannel and any references to it 2022-03-28 00:09:19 -04:00
kittenswolf
daeb0afe61
Add missing space in task example 2022-03-27 22:27:10 -04:00
z03h
8993b7f5fe
Add cover_image to AuditLogDiff 2022-03-26 08:48:02 -04:00
Bryan Forbes
062f4d6f87
Change some methods to use positional-only marker
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-03-22 18:52:25 -04:00
Rapptz
7851084b63 Revert "Crowdin translations download"
This reverts commit 414759f3723a3fe632ecfc1343a4164a51cd2940.
2022-03-21 22:53:45 -04:00