74 Commits

Author SHA1 Message Date
Gnome
bc2725dacc Try merge black changes 2021-09-06 11:39:46 +01:00
Lint Action
7513c2138f Fix code style issues with Black 2021-09-05 21:34:20 +00:00
Gnome!
2424491ca3
Merge branch 'iDevision:2.0' into 2.0 2021-09-05 18:38:49 +01:00
Gnome!
53a6b2cb45
Revert "Merge pull request #12" (#56)
This reverts commit 42c0a8d8a5840c00185e367933e61e2565bf7305.
2021-09-05 10:37:51 -07:00
Gnome!
6af5399936
Merge branch 'iDevision:2.0' into 2.0 2021-09-05 15:57:14 +01:00
Gnome
575a92cd3a Fix multiple optional argument sorting 2021-09-05 12:39:53 +01:00
Gnome
e9b95eaff7 Fix typing on Context.reply 2021-09-04 21:26:52 +01:00
Gnome
2a1dc8a069 Fix ctx.reply in slash command context 2021-09-04 20:57:29 +01:00
chillymosh
42c0a8d8a5
Merge pull request #12
* Clean up python

* Clean up bot python

* revert lists

* revert commands.bot completely

* extract raise_expected_coro further

* add new lines

* removed erroneous import

* remove hashed line
2021-09-02 12:32:46 -07:00
Arthur
5d10384576
Merge pull request #27
* Add author_permissions to the Context object as a shortcut to return …
2021-09-02 12:18:26 -07:00
Gnome
614c6bca67 Implement a ctx.send helper for slash commands 2021-08-31 12:12:21 +01:00
Gnome
a19e43675f Most slash command support completed, needs some debugging (and reindent) 2021-08-30 16:14:44 +01:00
ShashankKumarSaxena
b2ac327bd8
[commands] Fix a small typo in Context.invoke docs 2021-08-27 16:02:10 -04:00
Josh
f3cb197429
[commands][types] Type hint commands-ext 2021-08-19 19:51:26 -04:00
Nadir Chowdhury
757cfad38f
Type up **kwargs of various methods 2021-05-10 20:24:48 -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
Rapptz
09f3f2111c [commands] Add Context.current_parameter 2021-04-19 04:41:32 -04:00
Nadir Chowdhury
5ea5f32479
[commands] Fix missing re import in Context 2021-04-15 08:04:24 -04:00
MrKomodoDragon
ed3c141f5e
[commands] Add clean_prefix attribute to commands.Context 2021-04-14 22:09:40 -04:00
Nadir Chowdhury
89456022cf
Add __all__ to remaining modules 2021-04-07 02:30:32 -04:00
Rapptz
adaf7c6192 [commands] Use positional only parameter for Context.invoke 2021-04-04 07:04:01 -04:00
Rapptz
9d39b135f4 Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
2021-04-04 07:03:53 -04:00
Sebastian Law
d6501159e7
[docs] copy signature from overridden and inherited methods 2021-03-29 23:52:14 -04:00
Sebastian Law
a30a694e36
[commands] fix Context.channel property documented type 2021-03-13 01:46:31 -05:00
Nadir Chowdhury
63ec23bac2
Code optimisations and refactoring via Sourcery 2021-02-24 21:26:51 -05:00
Nadir Chowdhury
e090ee4308
Fix NameError with invoked_parents 2021-02-24 21:15:10 -05:00
Sebastian Law
48b748e340 [commands] properly assign ctx.invoked_with with ctx.
resolves #6461
2021-02-23 03:39:08 -05:00
Sebastian Law
1afc127458 [commands] Add Context.invoked_parents 2021-02-23 03:39:08 -05:00
Jonas Bohmann
0d8ac41551 [commands] Fix documented type of Context.cog 2021-01-24 05:17:47 -05:00
Nihaal Sangha
69bdc3a184
Change copyright year to present 2021-01-15 05:28:11 -05:00
PikalaxALT
d1cb30cccf
Implement discord.Message.reply 2020-11-26 23:19:00 -05:00
Rapptz
0b93fa3a82 Implement VoiceProtocol lower level hooks.
This allows changing the connect flow and taking control of it without
relying on internal events or tricks.
2020-09-23 03:20:35 -04:00
SebbyLaw
b43658f6ff [commands] Add documentation for exceptions in Context.(re)invoke 2020-07-22 23:18:30 -04:00
Sebastian Law
b4b953bfc6
Fix various inconsistencies within the documentation (#5067) 2020-06-28 03:45:58 -04:00
Rapptz
6071607176 Bump copyright year to 2020
Closes #2510
2020-01-19 20:03:00 -05:00
Rapptz
97d1c970bf [commands] Context.send_help properly sends to on_help_command_error 2020-01-18 19:43:20 -05:00
NCPlayz
3c9bcc2851 Improve documentation 2019-06-07 19:27:46 -04:00
Rapptz
bdea50e1db [commands] Better note for Command.invoke 2019-05-05 03:15:38 -04:00
Rapptz
05d4f7f962 [commands] Fix Context.send_help to work with the copied HelpCommand 2019-04-29 00:08:08 -04:00
NCPlayz
fb02191b80 Organise documentation 2019-03-19 08:24:42 -04:00
Rapptz
053e2f5b9a Fix documentation linking issue in Messageables and Context 2019-03-16 09:55:29 -04:00
Rapptz
cc3b6bdd72 [commands] Rename it to Context.send_help for consistency. 2019-03-16 09:37:47 -04:00
Rapptz
ed5fcb320e [commands] Add Context.show_help helper to use the HelpCommand set.
Fixes #1983
2019-03-16 09:33:05 -04:00
Kaeptm Blaubaer
b506ee1b8e Change superclass to subclass in some documentation 2019-03-16 05:32:59 -04:00
Rapptz
caf3d17d4a Rework entire cog system and partially document it and extensions. 2019-02-23 04:10:10 -05:00
Dante Dam
9656a21ebe Bumped copyright years to 2019. 2019-01-28 22:22:50 -05:00
Rapptz
860d6a9ace Revert "Rework documentation to not duplicate inherited members."
This reverts commit 96981210b3415e15446db0b702b07fef25c8b680.
2018-10-11 03:42:01 -04:00
Rapptz
96981210b3 Rework documentation to not duplicate inherited members.
This will probably be reverted in 1 week.
2018-10-03 05:45:30 -04:00
BeatButton
a4d1599ce9 Change docstrings to raw-strings 2018-09-14 22:55:27 -04:00
Hornwitser
c8b49d37be [lint] Fix incorrect and inconsistent whitespace
Adjust whitespace to be consistent with the rest of the library.
2018-08-22 21:43:53 -04:00