Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 2ca90d7

Browse files
author
kuso-senpai
committed
fixed property description
1 parent 3212915 commit 2ca90d7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

discord_ui/receive.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,18 @@ def __init__(self, state, data, user=MISSING, message=None) -> None:
5353
"""The message of the interaction"""
5454

5555
@property
56-
def guild(self):
56+
def guild(self) -> discord.Guild:
57+
"""The guild where the interaction was created
58+
59+
:type: :class:`discord.Guild`
60+
"""
5761
return self._state._get_guild(self.guild_id)
5862
@property
59-
def channel(self):
63+
def channel(self) -> typing.Union[discord.TextChannel, discord.DMChannel]:
64+
"""The channel where the interaction was created
65+
66+
:type: :class:`discord.TextChannel` | :class:`discord.DMChannel`
67+
"""
6068
return self._state.get_channel(self.channel_id)
6169

6270
async def defer(self, hidden=False):

0 commit comments

Comments
 (0)