Skip to content

Commit 1237599

Browse files
committed
Changed type hinting of SlashContext.channel
1 parent bbec2e0 commit 1237599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord_slash/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def guild(self) -> typing.Optional[discord.Guild]:
6868
return self.bot.get_guild(self.guild_id) if self.guild_id else None
6969

7070
@property
71-
def channel(self) -> typing.Optional[typing.Union[discord.abc.GuildChannel, discord.abc.PrivateChannel]]:
71+
def channel(self) -> typing.Optional[typing.Union[discord.TextChannel, discord.DMChannel]]:
7272
"""
7373
Channel instance of the command invoke.
7474

0 commit comments

Comments
 (0)