Skip to content

Commit

Permalink
Revert renaming GuildMessageCreateEvent.author to `GuildMessageCrea…
Browse files Browse the repository at this point in the history
…teEvent.member`
  • Loading branch information
davfsa committed Jan 14, 2021
1 parent 5420346 commit 588d9da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hikari/events/message_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class GuildMessageCreateEvent(MessageCreateEvent):
# <<inherited docstring from ShardEvent>>

@property
def member(self) -> guilds.Member:
def author(self) -> guilds.Member:
"""Member object of the user that sent the message.
Returns
Expand Down
4 changes: 2 additions & 2 deletions tests/hikari/events/test_message_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 588d9da

Please sign in to comment.