diff options
Diffstat (limited to 'examples/reply.py')
| -rw-r--r-- | examples/reply.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/reply.py b/examples/reply.py index 0324797b..2faf8a9d 100644 --- a/examples/reply.py +++ b/examples/reply.py @@ -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(): |