diff options
| author | Rapptz <[email protected]> | 2015-08-23 00:55:49 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-08-23 00:55:49 -0400 |
| commit | 59808727ef36b9f7b30aa6738f5d86645dce8db1 (patch) | |
| tree | 582db8b279f585c58b12e8caa8550cbcec1792ae | |
| parent | Use v2 of the Discord API. (diff) | |
| download | discord.py-59808727ef36b9f7b30aa6738f5d86645dce8db1.tar.xz discord.py-59808727ef36b9f7b30aa6738f5d86645dce8db1.zip | |
Fix documentation example issue.
| -rw-r--r-- | discord/client.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py index d01a0dd9..85070fd3 100644 --- a/discord/client.py +++ b/discord/client.py @@ -367,7 +367,8 @@ class Client(object): for message in client.logs_from(channel): if message.content.startswith('!hello'): - client.edit_message(message, 'goodbye') + if message.author == client.user: + client.edit_message(message, 'goodbye') :param channel: The :class:`Channel` to obtain the logs from. |