Browse Source

Update create_dm documentation to say it's a coroutine

pull/6575/head
Alex Nørgaard 4 years ago
committed by GitHub
parent
commit
456a5dfa59
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      discord/user.py

4
discord/user.py

@ -744,7 +744,9 @@ class User(BaseUser, discord.abc.Messageable):
return [guild for guild in self._state._guilds.values() if guild.get_member(self.id)] return [guild for guild in self._state._guilds.values() if guild.get_member(self.id)]
async def create_dm(self): async def create_dm(self):
"""Creates a :class:`DMChannel` with this user. """|coro|
Creates a :class:`DMChannel` with this user.
This should be rarely called, as this is done transparently for most This should be rarely called, as this is done transparently for most
people. people.

Loading…
Cancel
Save