From 2703fb2fc0bea63b06463999205d478077d8d40c Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 16 Dec 2023 20:49:24 -0500 Subject: [PATCH] fix(moderation): fixed an f string --- moderation/moderation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 3e72219..e7d4977 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -1735,7 +1735,7 @@ class Moderation(commands.Cog): async def moderationset_import_galacticbot(self, ctx: commands.Context): """Import moderations from GalacticBot.""" if ctx.message.attachments and ctx.message.attachments[0].content_type == 'application/json; charset=utf-8': - message = await ctx.send("Are you sure you want to import GalacticBot moderations? **This will overwrite any moderations that already exist in this guild's moderation table.**") + message = await ctx.send("Are you sure you want to import GalacticBot moderations?\n**This will overwrite any moderations that already exist in this guild's moderation table.**\n*The import process will block the rest of your bot until it is complete.*") await message.edit(view=self.GalacticBotImportButtons(60, ctx, message, self)) else: await ctx.send("Please provide a valid GalacticBot moderation export file.") @@ -1856,7 +1856,7 @@ class Moderation(commands.Cog): await interaction.edit_original_response(content="Import complete.") if failed_cases: - await interaction.edit_original_response(content="Import complete.\n*Failed to import the following cases:*\n```{failed_cases}```") + await interaction.edit_original_response(content=f"Import complete.\n*Failed to import the following cases:*\n```{failed_cases}```") @discord.ui.button(label="No", style=discord.ButtonStyle.danger) async def import_button_n(self, interaction: discord.Interaction, button: discord.ui.Button): # pylint: disable=unused-argument