Browse Source

Change function call to property

pull/87/head
Peter D 8 years ago
committed by GitHub
parent
commit
15bef1142d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/bot_tutorial/building_block_listeners.md

2
docs/bot_tutorial/building_block_listeners.md

@ -46,6 +46,6 @@ class MyPlugin(Plugin):
@Plugin.listen('GuildMemberAdd')
def on_member_add(self, event):
self.bot.client.state.channels.get(WELCOME_CHANNEL).send_message(
'Welcome to the server {}'.format(event.member.user.mention())
'Welcome to the server {}'.format(event.member.user.mention)
)
```

Loading…
Cancel
Save