diff --git a/cogs/misc/autotranslate.py b/cogs/misc/autotranslate.py index e7a7a023..b3019d9c 100644 --- a/cogs/misc/autotranslate.py +++ b/cogs/misc/autotranslate.py @@ -39,9 +39,7 @@ async def toggle(self, interaction: discord.Interaction, value: bool): Choice(name="Minimal Webhook", value="min_webhook"), ] ) - async def style( - self, interaction: discord.Interaction, style: str - ): + async def style(self, interaction: discord.Interaction, style: str): await self.bot.db_pool.execute( "INSERT INTO guilds (guild_id, auto_translate_reply_style) VALUES ($1, $2) ON CONFLICT(guild_id) DO UPDATE SET auto_translate_reply_style = $2", interaction.guild.id, @@ -82,9 +80,7 @@ async def sensitivity( description="Toggle original message deletion for auto translate" ) @app_commands.describe(value="Whether to delete the original message or not") - async def delete_original( - self, interaction: discord.Interaction, value: bool - ): + async def delete_original(self, interaction: discord.Interaction, value: bool): await self.bot.db_pool.execute( "INSERT INTO guilds (guild_id, auto_translate_delete_original) VALUES ($1, $2) ON CONFLICT(guild_id) DO UPDATE SET auto_translate_delete_original = $2;", interaction.guild.id, @@ -99,7 +95,6 @@ async def delete_original( ephemeral=True, ) - @commands.Cog.listener() async def on_message(self, message: discord.Message): state = await self.bot.db_pool.fetchval( diff --git a/cogs/owner/sync.py b/cogs/owner/sync.py index 5fa1c427..7a99c2c6 100644 --- a/cogs/owner/sync.py +++ b/cogs/owner/sync.py @@ -10,7 +10,9 @@ class Sync(commands.Cog): @commands.is_owner() async def sync(self, ctx): if hasattr(bot_secrets, "TEST_GUILD"): - self.bot.tree.copy_global_to(guild=discord.Object(id=bot_secrets.TEST_GUILD)) + self.bot.tree.copy_global_to( + guild=discord.Object(id=bot_secrets.TEST_GUILD) + ) await self.bot.tree.sync(guild=discord.Object(id=bot_secrets.TEST_GUILD)) else: await self.bot.tree.sync()