aboutsummaryrefslogtreecommitdiff
path: root/discord/abc.py
diff options
context:
space:
mode:
authorPythonCoderAS <[email protected]>2021-07-28 19:59:38 -0400
committerGitHub <[email protected]>2021-07-28 19:59:38 -0400
commit51b02f2568c806144ad034246d3f58f2d073f9c7 (patch)
tree7563b8da7881cd82fbf7d0a2810cc36f52c2be90 /discord/abc.py
parentAdd support for discord.ui.Select.disabled (diff)
downloaddiscord.py-51b02f2568c806144ad034246d3f58f2d073f9c7.tar.xz
discord.py-51b02f2568c806144ad034246d3f58f2d073f9c7.zip
Change type to be compatible with the overwrites property
Diffstat (limited to 'discord/abc.py')
-rw-r--r--discord/abc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/abc.py b/discord/abc.py
index 895083fd..a2f4a847 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -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 = {}