96 Commits

Author SHA1 Message Date
Gnome!
3260ec6643
Add improved docs for slash commands (#77)
* Fix command checks actually working

* Current progress on slash command docs

* Improve docs for slash commands further
2021-09-27 01:14:07 -07:00
Gnome!
1957fa6011
Implement a least breaking approach to slash commands (#39)
* Most slash command support completed, needs some debugging (and reindent)

* Implement a ctx.send helper for slash commands

* Add group command support

* Add Option converter, fix default optional, fix help command

* Add client.setup and move readying commands to that

* Implement _FakeSlashMessage.from_interaction

* Rename normmal_command to message_command

* Add docs for added params

* Add slash_command_guilds to bot and decos

* Fix merge conflict

* Remove name from commands.Option, wasn't used

* Move slash command processing to BotBase.process_slash_commands

* Create slash_only.py

Basic example for slash commands

* Create slash_and_message.py

Basic example for mixed commands

* Fix slash_command and normal_command bools

* Add some basic error handling for registration

* Fixed converter upload errors

* Fix some logic and make an actual example

* Thanks Safety Jim

* docstrings, *args, and error changes

* Add proper literal support

* Add basic documentation on slash commands

* Fix non-slash command interactions

* Fix ctx.reply in slash command context

* Fix typing on Context.reply

* Fix multiple optional argument sorting

* Update ctx.message docs to mention error instead of warning

* Move slash command creation to BotBase

* Fix code style issues with Black

* Rearrange some stuff and add flag support

* Change some errors and fix interaction.channel fixing

* Fix slash command quoting for *args

Co-authored-by: iDutchy <42503862+iDutchy@users.noreply.github.com>
Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
2021-09-19 01:28:11 +02: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
Josh
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
Rapptz
212d308835 [commands] Some minor clean up of the flag converter documentation
Fix #6761
2021-04-19 22:52:29 -04:00
Rapptz
18bf3d3a7d [commands] Actually expose the FlagError base error 2021-04-19 10:27:24 -04:00
Rapptz
ddb71e2aed [commands] Initial support for FlagConverter
The name is currently pending and there's no command.signature hook
for it yet since this requires bikeshedding.
2021-04-19 10:25:08 -04:00
Rapptz
c54e43360b [commands] Add run_converters helper to call converters 2021-04-19 04:46:02 -04:00
Nadir Chowdhury
5dec62f4c0
[commands] Add a converter for discord.Object 2021-04-16 08:18:57 -04:00
Nadir Chowdhury
8f9819eb4c
[docs] Fix various unresolved references 2021-04-15 22:41:41 -04:00
Rapptz
42c3ee6eed Bring back discord module in discord.ext.commands documentation 2021-04-10 15:49:39 -04:00
Rapptz
296bd069c1 Remove current module reference in commands API docs 2021-04-10 14:59:26 -04:00
Nadir Chowdhury
b20e92efd8
[docs] Fix references to Greedy 2021-04-10 14:59:09 -04:00
James
bcd3a00eaf
[commands] Make commands.Greedy a typing.Generic 2021-04-10 07:27:32 -04:00
Sigmath Bits
68aef92b37
[commands]Add typing.Literal converter 2021-04-10 02:50:59 -04:00
Sebastian Law
05c123f3ab
Use f-strings in more places that were missed 2021-04-08 09:31:06 -04:00
Rapptz
e895a53713 [commands] Add StageChannelConverter to documentation 2021-04-08 00:44:47 -04:00
Sebastian Law
ece7064e64
[docs] add label to basic converters section 2021-04-07 07:12:52 -04:00
Shun Tannai
bda3afcad7 [commands] Update Converter list in ext.commands introduction 2021-04-07 03:20:35 -04:00
Rapptz
f6df66a971 Add missing documentation for StoreChannelConverter 2021-04-04 00:21:15 -04:00
Nadir Chowdhury
8d66ced02c
[docs] Conveter -> Converter 2021-03-24 08:18:11 -04:00
Sebastian Law
ceab8ff638
[tasks] make __call__ actually appear in the docs 2021-02-21 07:19:10 -05:00
Alex Nørgaard
68eb844d48
[commands] Add discord.Guild converter and GuildNotFound error
* Add discord.Guild converter and GuildNotFound error

* note for lack of disambiguation in Guilds with duplicate names, and removed the possibility of returning None

* edited converter to use `utils.get` over `utils.find` and docs edited with Converter and Exception.
2021-02-07 05:32:33 -05:00
Sebastian Law
e0e60a2f62
[commands] document PartialMessageConverter 2021-01-24 05:16:32 -05:00
Sebastian Law
16195a7d2f
fix method reference in documentation 2021-01-05 23:53:17 -05:00
Sebastian Law
116fdbddb9
[commands] Fix exception hierarchy documentation 2020-12-22 04:23:37 -05:00
Rapptz
9013e1d1a2 [tasks] Add missing attributetable to tasks 2020-12-19 00:51:59 -05:00
Rapptz
17b49c5a46 [commands] Make documentation use new attributetable 2020-12-18 21:35:27 -05:00
Nadir Chowdhury
367c4b5fd2
[docs] remove unresolved doc refs, fix attribute ref 2020-09-07 22:25:11 -04:00
Rapptz
0a7e2f7c2f [commands] BadBooleanArgument -> BadBoolArgument 2020-09-04 08:47:07 -04:00
Simon Beal
6ebd2e13a1
[commands] Add subclasses of BadArgument for converters 2020-09-04 08:45:29 -04:00
Sebastian Law
7a07644de3
[commands] Raise TypeError when Optional is used with Greedy converter 2020-06-28 03:54:34 -04:00
jack1142
84098ed824
[commands] Add a new exception class for command registration errors 2020-06-28 03:48:07 -04:00
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation (#5067) 2020-06-28 03:45:58 -04:00
NCPlayz
1b0e806245 [commands] Implement commands.before/after_invoke 2020-04-04 02:57:20 -04:00
Rapptz
2ba28bbfe2 One last superfluous .0 in versionadded 2020-01-22 21:12:02 -05:00
Rapptz
d9cd4a3561 [commands] Implement Command.__call__ 2020-01-21 04:27:20 -05:00
Rapptz
4de314d2c3 [commands] Export max_concurrency and MaxConcurrencyReached in docs 2020-01-21 03:35:43 -05:00
Rapptz
a2b241446e [commands] Document BucketType separately 2020-01-18 20:04:00 -05:00
Rapptz
82797b0e60 [commands] Add missing CheckAnyFailure documentation 2020-01-14 19:54:10 -05:00
Rapptz
92a3c1b583 [commands] Document guild permission checks 2020-01-07 04:50:52 -05:00
Rapptz
ae3dac0d59 [commands] Add check_any check to OR together various checks 2020-01-06 22:03:56 -05:00