aboutsummaryrefslogtreecommitdiff
path: root/examples/reply.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2015-12-19 20:27:40 -0500
committerRapptz <[email protected]>2015-12-19 20:27:40 -0500
commit6b12ef2a0cfb28c6150fa7675e07b1518b3bb08a (patch)
treed4f4097befbfa666c94dd2448bc6632065c6314d /examples/reply.py
parentDelete messages from message cache when you leave the server. (diff)
downloaddiscord.py-6b12ef2a0cfb28c6150fa7675e07b1518b3bb08a.tar.xz
discord.py-6b12ef2a0cfb28c6150fa7675e07b1518b3bb08a.zip
Updated examples to use new properties.
Diffstat (limited to 'examples/reply.py')
-rw-r--r--examples/reply.py4
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():