diff --git a/docs/api.rst b/docs/api.rst index c8814b1a9..bdb577804 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -80,7 +80,7 @@ overriding the specific events. For example: :: class MyClient(discord.Client): async def on_message(self, message): - if message.author != self.user: + if message.author == self.user: return if message.content.startswith('$hello'):