From 588d9da720cd36d0a436337891bec5c144cd6025 Mon Sep 17 00:00:00 2001 From: davfsa Date: Thu, 14 Jan 2021 13:16:57 +0100 Subject: [PATCH] Revert renaming `GuildMessageCreateEvent.author` to `GuildMessageCreateEvent.member` --- hikari/events/message_events.py | 2 +- tests/hikari/events/test_message_events.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: