Change type to be compatible with the overwrites property

This commit is contained in:
PythonCoderAS authored and GitHub committed 2021-07-28 19:59:38 -04:00
1 parent ca9b371982
commit 51b02f2568
2 files changed
+18 -18

No files matched your search

+2 -2
View File
@@ -475,7 +475,7 @@ class GuildChannel:
return PermissionOverwrite()
@property
def overwrites(self) -> Mapping[Union[Role, Member], PermissionOverwrite]:
def overwrites(self) -> Dict[Union[Role, Member], PermissionOverwrite]:
"""Returns all of the channel's overwrites.
This is returned as a dictionary where the key contains the target which
@@ -484,7 +484,7 @@ class GuildChannel:
Returns
--------
Mapping[Union[:class:`~discord.Role`, :class:`~discord.Member`], :class:`~discord.PermissionOverwrite`]
Dict[Union[:class:`~discord.Role`, :class:`~discord.Member`], :class:`~discord.PermissionOverwrite`]
The channel's permission overwrites.
"""
ret = {}