Commit Graph
134 Commits
Author SHA1 Message Date
Soheab_ a5a93a85bc [commands] Document GroupCog.interaction_check 2023-02-28 02:20:00 -05:00
Willy ef4240dcd7 [commands] Add missing command decorator to example 2023-02-27 06:19:17 -05:00
sgtlaggy de2349e707 Add missing cancel() in tasks example 2023-01-14 18:56:38 -05:00
sgtlaggy 5d39f96c85 Update tasks example to start in setup_hook 2023-01-14 18:56:38 -05:00
Marble ec9089cf0a Add intents to example 2022-12-02 19:43:26 -05:00
rdrescher909 324dfe0163 Add tasks.loop examples using time parameter 2022-11-26 14:10:32 -05:00
Puncher 64744a4938 [commands] Add missing attributetable to classes 2022-08-30 00:50:59 -04:00
Josh e57617e157 Add support for delete_message_seconds ban argument 2022-08-28 02:06:57 -04:00
Puncher 6a6e261523 [tasks] Add missing decorator sign 2022-08-21 18:26:16 -04:00
Puncher 45f32a0ff3 [commands] Add missing decorator signs 2022-08-21 18:25:59 -04:00
I. Ahmad 183ec1ab28 Fix typo in hybrid commands documentation 2022-08-15 08:18:32 -04:00
Rapptz 57efb5a5a0 Fix failing tests to use new get_parameter function 2022-08-09 08:02:41 -04:00
I. Ahmad a5410e6135 Add documentation for hybrid commands 2022-07-25 21:19:42 -04:00
Rapptz 544bb1e237 Fix typo in FlagConverter example 2022-05-16 17:05:21 -04:00
z03h 9450a8e972 [commands] Change FlagConverter to always raise BadFlagArgument 2022-05-16 15:31:18 -04:00
Rapptz 63e50bc369 Don't hotlink typing.List, typing.Dict, or typing.Tuple 2022-05-11 03:54:25 -04:00
Rapptz cc3e714338 Fix typo in documentation and mention name kwarg interaction 2022-05-11 03:20:57 -04:00
Rapptz 15ceca1e63 [commands] Add support for FlagConverter in hybrid commands
This works by unpacking and repacking the flag arguments in a flag.
If an unsupported type annotation is found then it will error at
definition time.
2022-05-11 03:15:57 -04:00
Rapptz d319539edb [commands] Fix broken examples in commands.param documentation 2022-05-09 18:15:31 -04:00
Rapptz 9793fba338 [commands] Add support for discord.Attachment converters 2022-05-05 01:54:59 -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
Rapptz 5fcd4e411f [commands] Add support for typing.Annotated 2022-04-22 06:31:02 -04:00
Cobalt 6e6d16093c Update extensions primer in line with async breaking changes 2022-04-18 06:26:50 -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 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
Rapptz 9f83eb6032 Add application command cooldown decorators
Fix #7790
2022-03-29 00:46:42 -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
Cryptex 6cf7c4a7d7 Add message content to doc examples
This also changes the wording of Context's attributes 
for consistency.
2022-03-14 21:01:48 -04:00
Josh a1c618215e [commads] Change cog/extension load/unload methods to be async 2022-03-13 21:03:45 -04:00
Vish MandDanny 049df7c586 Add a note to users that they must have the message content intent
Co-authored-by: Danny <Rapptz@users.noreply.github.com>
2022-03-13 07:48:41 -04:00
Devon R 432de92e8a Update translations, add Crowdin CLI config 2022-03-09 20:07:48 -05:00
z03h 93fba264ad [commands] add ScheduledEvent converter 2022-03-09 17:56:50 -05:00
Rapptz aa74238053 Reorganise documentation for interactions 2022-03-04 21:17:27 -05:00
Nadir Chowdhury 6979e56088 Remove manual :async-for: markers 2022-02-23 08:05:23 -05:00
Josh 1c63816cc0 [commands] Document / type-hint cooldown 2021-08-10 08:35:15 -04:00
Aaron Hennessey ec32b71ff9 [commands] Document GuildNotFound 2021-08-10 08:34:11 -04:00
z03h c628224403 [commands] Add GuildStickerConverter 2021-08-10 08:31:20 -04:00
Willy 3ad95f3746 [commands] Document dynamic_cooldown 2021-07-30 21:29:40 -04:00
AXVin 980d6abbea Fix typo in commands documentation 2021-07-21 02:52:33 -04:00
ToxicKidz 3cb539d91b [commands] Document the thread converter 2021-07-07 20:15:18 -04:00
Devon R b2c9c26841 Show decorator usage instead of signature in docs 2021-06-27 23:40:39 -04:00
sudosnok 2a6d79078e [commands] Add GuildChannelConverter 2021-05-07 07:37:42 -04:00
JoshandRiley Shaw 3864fb37a0 Fix various reference issues in documentation
Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
2021-05-06 07:51:07 -04:00
Alex Nørgaard e09f64b7c9 Fix typo in FlagConverter docs 2021-04-22 21:12:19 -04:00