Fix documentation example issue.

This commit is contained in:
Rapptz 2015-08-23 00:55:49 -04:00
parent a1c5e9f4d9
commit 59808727ef

View File

@ -367,6 +367,7 @@ class Client(object):
for message in client.logs_from(channel): for message in client.logs_from(channel):
if message.content.startswith('!hello'): if message.content.startswith('!hello'):
if message.author == client.user:
client.edit_message(message, 'goodbye') client.edit_message(message, 'goodbye')