aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/client.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py
index a62b37a8..9139a3ea 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -1070,8 +1070,8 @@ class Client:
channel = message.channel
content = str(new_content)
-
- data = yield from self.http.edit_message(message.id, channel.id, content, guild_id=channel.server.id)
+ guild_id = channel.server.id if not channel.is_private else None
+ data = yield from self.http.edit_message(message.id, channel.id, content, guild_id=guild_id)
return Message(channel=channel, **data)
def _logs_from(self, channel, limit=100, before=None, after=None):