Implement a least breaking approach to slash commands #39

Merged
Gnome-py merged 42 commits from 2.0 into 2.0 2021-09-18 23:28:11 +00:00
Showing only changes of commit 1391305e5a - Show all commits

View File

@@ -187,9 +187,9 @@ The context implements the :class:`abc.Messageable` interface, so anything you c
can do on the :class:`~ext.commands.Context`.
.. warning::
:attr:`.Context.message` will be fake if in a slash command, it is not recommended to use this attribute
if :attr:`.Context.interaction` is not None. Currently this will emit a warning and fail silently, however
this behaviour may be changed in the future.
:attr:`.Context.message` will be fake if in a slash command, it is not
recommended to access if :attr:`.Context.interaction` is not None as most
methods will error due to the message not actually existing.
Converters
------------