diff options
| author | 2022-04-16 16:12:56 +0100 | |
|---|---|---|
| committer | 2022-04-18 17:46:30 +0100 | |
| commit | ecc08e732bc64c75ddadb38242892d0a15f470fc (patch) | |
| tree | 8e329506f17905261bae39ac72b4e2333f3b343f | |
| parent | Don't try to overwrite a read-only attr in help command test (diff) | |
Remove usages of init_task in thread bumper cog
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/utils/thread_bumper.py | 8 | 
1 files changed, 0 insertions, 8 deletions
| diff --git a/bot/exts/utils/thread_bumper.py b/bot/exts/utils/thread_bumper.py index c65664b52..ee0636b37 100644 --- a/bot/exts/utils/thread_bumper.py +++ b/bot/exts/utils/thread_bumper.py @@ -76,8 +76,6 @@ class ThreadBumper(commands.Cog):      @thread_bump_group.command(name="add", aliases=("a",))      async def add_thread_to_bump_list(self, ctx: commands.Context, thread: t.Optional[discord.Thread]) -> None:          """Add a thread to the bump list.""" -        await self.init_task -          if not thread:              if isinstance(ctx.channel, discord.Thread):                  thread = ctx.channel @@ -93,8 +91,6 @@ class ThreadBumper(commands.Cog):      @thread_bump_group.command(name="remove", aliases=("r", "rem", "d", "del", "delete"))      async def remove_thread_from_bump_list(self, ctx: commands.Context, thread: t.Optional[discord.Thread]) -> None:          """Remove a thread from the bump list.""" -        await self.init_task -          if not thread:              if isinstance(ctx.channel, discord.Thread):                  thread = ctx.channel @@ -110,8 +106,6 @@ class ThreadBumper(commands.Cog):      @thread_bump_group.command(name="list", aliases=("get",))      async def list_all_threads_in_bump_list(self, ctx: commands.Context) -> None:          """List all the threads in the bump list.""" -        await self.init_task -          lines = [f"<#{k}>" for k, _ in await self.threads_to_bump.items()]          embed = discord.Embed(              title="Threads in the bump list", @@ -126,8 +120,6 @@ class ThreadBumper(commands.Cog):          If the thread has been archived, and is in the bump list, un-archive it.          """ -        await self.init_task -          if not after.archived:              return | 
