Fix documentation example issue.
This commit is contained in:
parent
a1c5e9f4d9
commit
59808727ef
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user