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]]: """