aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-04-10 15:43:34 +0200
committerGravatar Numerlor <[email protected]>2020-04-10 15:43:34 +0200
commitd8e54d9921d204a0a95118136982186c790e0dd8 (patch)
treea04ee9b3cf364795502005776017e728f531e71a
parentUse synchronized permission reset. (diff)
Fix `help_channel_claimants` typehint.
`ctx.author` that is used to populate the dict returns a `Member` object in most cases while only `User` was documented as a possible value.
-rw-r--r--bot/cogs/help_channels.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index daadcc9a4..4404ecc17 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -109,7 +109,9 @@ class HelpChannels(Scheduler, commands.Cog):
super().__init__()
self.bot = bot
- self.help_channel_claimants: t.Dict[discord.TextChannel, discord.User] = {}
+ self.help_channel_claimants: (
+ t.Dict[discord.TextChannel, t.Union[discord.Member, discord.User]]
+ ) = {}
# Categories
self.available_category: discord.CategoryChannel = None