From bfaee44b1fa4b06f932e9923554ef39ba4d2cc09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20N=C3=B8rgaard?= Date: Sun, 6 Mar 2022 03:06:21 +0000 Subject: [PATCH] [commands] Fix types for Bot.is_owner --- discord/ext/commands/bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 5bbfa2e04..3746ce118 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -50,6 +50,7 @@ if TYPE_CHECKING: import importlib.machinery from discord.message import Message + from discord.abc import User from ._types import ( Check, CoroFunc, @@ -333,7 +334,7 @@ class BotBase(GroupMixin): # type-checker doesn't distinguish between functions and methods return await discord.utils.async_all(f(ctx) for f in data) # type: ignore - async def is_owner(self, user: discord.User) -> bool: + async def is_owner(self, user: User) -> bool: """|coro| Checks if a :class:`~discord.User` or :class:`~discord.Member` is the owner of