aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/exts/kubernetes/jobs.py
diff options
context:
space:
mode:
Diffstat (limited to 'arthur/exts/kubernetes/jobs.py')
-rw-r--r--arthur/exts/kubernetes/jobs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/arthur/exts/kubernetes/jobs.py b/arthur/exts/kubernetes/jobs.py
index 6f7a1fe..6259f65 100644
--- a/arthur/exts/kubernetes/jobs.py
+++ b/arthur/exts/kubernetes/jobs.py
@@ -37,7 +37,7 @@ class CronJobView(discord.ui.View):
placeholder="Select a CronJob to trigger...",
)
async def select_job(
- self, dropdown: discord.ui.Select, interaction: discord.Interaction
+ self, interaction: discord.Interaction, dropdown: discord.ui.Select
) -> None:
"""Drop down menu contains the list of cronjobsb."""
cronjob_namespace, cronjob_name = dropdown.values[0].split("/")
@@ -76,6 +76,6 @@ class Jobs(commands.Cog):
await ctx.send(":tools: Pick a CronJob to trigger", view=view)
-def setup(bot: KingArthur) -> None:
+async def setup(bot: KingArthur) -> None:
"""Add the extension to the bot."""
- bot.add_cog(Jobs(bot))
+ await bot.add_cog(Jobs(bot))