fix(moderation): fixed an f string

This commit is contained in:
Seaswimmer 2023-12-16 20:49:24 -05:00
parent 7e6ad9f6e3
commit 2703fb2fc0
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -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