aboutsummaryrefslogtreecommitdiff
path: root/discord/state.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/state.py')
-rw-r--r--discord/state.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/state.py b/discord/state.py
index 838a8f45..6650ba87 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -526,6 +526,9 @@ class ConnectionState:
raw.cached_message = older_message
self.dispatch('raw_message_edit', raw)
message._update(data)
+ # Coerce the `after` parameter to take the new updated Member
+ # ref: #5999
+ older_message.author = message.author
self.dispatch('message_edit', older_message, message)
else:
self.dispatch('raw_message_edit', raw)