1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

🐛 Fix a bug with console_message

This commit is contained in:
Steffo 2021-01-10 19:54:39 +01:00
parent decb53a5da
commit 3cf145aa34
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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.")