Update create_dm documentation to say it's a coroutine

This commit is contained in:
Alex Nørgaard 2021-03-24 12:19:05 +00:00 committed by GitHub
parent 8d66ced02c
commit 456a5dfa59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)]
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
people.