mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Fix unnecessary typing before running commands in Downloader (#3964)
This commit is contained in:
parent
35365a7154
commit
a64c28aa44
@ -77,8 +77,9 @@ class Downloader(commands.Cog):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
async def cog_before_invoke(self, ctx: commands.Context) -> None:
|
async def cog_before_invoke(self, ctx: commands.Context) -> None:
|
||||||
async with ctx.typing():
|
if not self._ready.is_set():
|
||||||
await self._ready.wait()
|
async with ctx.typing():
|
||||||
|
await self._ready.wait()
|
||||||
if self._ready_raised:
|
if self._ready_raised:
|
||||||
await ctx.send(
|
await ctx.send(
|
||||||
"There was an error during Downloader's initialization."
|
"There was an error during Downloader's initialization."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user