diff --git a/hikari/events/message_events.py b/hikari/events/message_events.py index 242f91a547..19ef51eef6 100644 --- a/hikari/events/message_events.py +++ b/hikari/events/message_events.py @@ -220,7 +220,7 @@ class GuildMessageCreateEvent(MessageCreateEvent): # <> @property - def member(self) -> guilds.Member: + def author(self) -> guilds.Member: """Member object of the user that sent the message. Returns diff --git a/tests/hikari/events/test_message_events.py b/tests/hikari/events/test_message_events.py index edf2c62c8e..b86b25b6c1 100644 --- a/tests/hikari/events/test_message_events.py +++ b/tests/hikari/events/test_message_events.py @@ -196,8 +196,8 @@ def test_guild_property(self, event): assert result is event.app.cache.get_guild.return_value event.app.cache.get_guild.assert_called_once_with(342123123) - def test_member_property(self, event): - assert event.member is event.message.member + def test_author_property(self, event): + assert event.author is event.message.member class TestGuildMessageUpdateEvent: