mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 21:44:21 +00:00
🐛 Fix a bug with console_message
This commit is contained in:
parent
decb53a5da
commit
3cf145aa34
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,8 @@ async def console_message(*,
|
||||||
:param files: A :class:`list` of files to attach to the message.
|
:param files: A :class:`list` of files to attach to the message.
|
||||||
:return: The sent :class:`.engi.Message`.
|
:return: The sent :class:`.engi.Message`.
|
||||||
"""
|
"""
|
||||||
|
if files is None:
|
||||||
|
files = []
|
||||||
|
|
||||||
if len(files) > 0:
|
if len(files) > 0:
|
||||||
raise engi.exc.NotSupportedError("Console does not allow sending files.")
|
raise engi.exc.NotSupportedError("Console does not allow sending files.")
|
||||||
|
|
Loading…
Reference in a new issue