Updated examples to use new properties.

This commit is contained in:
Rapptz
2015-12-19 20:27:40 -05:00
parent 7258a9e700
commit 6b12ef2a0c
2 changed files with 4 additions and 4 deletions

View File

@ -9,8 +9,8 @@ def on_message(message):
return
if message.content.startswith('!hello'):
msg = 'Hello {}!'.format(message.author.mention()
yield from client.send_message(message.channel, msg))
msg = 'Hello {0.author.mention}'.format(message)
yield from client.send_message(message.channel, msg)
@client.async_event
def on_ready():