mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
[commands] Raise appropriate exception for no guild found
This commit is contained in:
1 parent
8b50ac8a31
commit
dbcdf69eb1
2 files changed
+3
-3
No files matched your search
@@ -454,7 +454,7 @@ Defaults
|
||||
|
||||
.. data:: discord.ext.commands.CurrentGuild
|
||||
|
||||
A default :class:`.Parameter` which returns the :attr:`~.Context.guild` for this context. This will never be ``None``.
|
||||
A default :class:`.Parameter` which returns the :attr:`~.Context.guild` for this context. This will never be ``None``. If the command is called in a DM context then :exc:`~discord.ext.commands.NoPrivateMessage` is raised to the error handlers.
|
||||
|
||||
.. versionadded:: 2.0
|
||||
|
||||
|
||||
Reference in new issue
Block a user