Remove redundant imports and variables

This commit is contained in:
Kellen
2022-03-29 00:50:34 -06:00
committed by GitHub
parent f5acd9e8b6
commit 4fd2d5fdfd
7 changed files with 4 additions and 14 deletions

View File

@ -461,8 +461,6 @@ class GuildChannelConverter(IDConverter[discord.abc.GuildChannel]):
@staticmethod
def _resolve_thread(ctx: Context[BotT], argument: str, attribute: str, type: Type[TT]) -> TT:
bot = ctx.bot
match = IDConverter._get_id_match(argument) or re.match(r'<#([0-9]{15,20})>$', argument)
result = None
guild = ctx.guild