Browse Source
[commands] fix Context.channel property documented type
pull/6528/head
Sebastian Law
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
discord/ext/commands/context.py
|
|
@ -229,8 +229,8 @@ class Context(discord.abc.Messageable): |
|
|
|
|
|
|
|
@discord.utils.cached_property |
|
|
|
def channel(self): |
|
|
|
""":class:`.TextChannel`: |
|
|
|
Returns the channel associated with this context's command. Shorthand for :attr:`.Message.channel`. |
|
|
|
"""Union[:class:`.abc.Messageable`]: Returns the channel associated with this context's command. |
|
|
|
Shorthand for :attr:`.Message.channel`. |
|
|
|
""" |
|
|
|
return self.message.channel |
|
|
|
|
|
|
|