From 812d16ab061bc992fdbf5fce3c54622006fff807 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 31 Mar 2021 23:49:01 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20*things=20happened=20here*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalnet.iml | 16 +--------------- royalnet/engineer/bullet/contents/message.py | 8 ++++++++ 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/royalnet.iml b/royalnet.iml index 58f7cdc5..d1d883ef 100644 --- a/royalnet.iml +++ b/royalnet.iml @@ -2,21 +2,7 @@ - - - - - - - - - - - - - - - + diff --git a/royalnet/engineer/bullet/contents/message.py b/royalnet/engineer/bullet/contents/message.py index df0969e5..65853008 100644 --- a/royalnet/engineer/bullet/contents/message.py +++ b/royalnet/engineer/bullet/contents/message.py @@ -5,6 +5,7 @@ import datetime if t.TYPE_CHECKING: from .channel import Channel + from .user import User from .button_reaction import ButtonReaction @@ -41,6 +42,13 @@ class Message(BulletContents, metaclass=abc.ABCMeta): """ raise exc.NotSupportedError() + @ap.async_property + async def sender(self) -> t.Optional["User"]: + """ + :return: The :class:`.User` who sent this message. + """ + raise exc.NotSupportedError() + @ap.async_property async def files(self) -> t.Optional[t.List[t.BinaryIO]]: """