forked from blizzthewolf/SeaCogs
fix(moderation): fixed an f string
This commit is contained in:
parent
7e6ad9f6e3
commit
2703fb2fc0
1 changed files with 2 additions and 2 deletions
|
@ -1735,7 +1735,7 @@ class Moderation(commands.Cog):
|
||||||
async def moderationset_import_galacticbot(self, ctx: commands.Context):
|
async def moderationset_import_galacticbot(self, ctx: commands.Context):
|
||||||
"""Import moderations from GalacticBot."""
|
"""Import moderations from GalacticBot."""
|
||||||
if ctx.message.attachments and ctx.message.attachments[0].content_type == 'application/json; charset=utf-8':
|
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))
|
await message.edit(view=self.GalacticBotImportButtons(60, ctx, message, self))
|
||||||
else:
|
else:
|
||||||
await ctx.send("Please provide a valid GalacticBot moderation export file.")
|
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.")
|
await interaction.edit_original_response(content="Import complete.")
|
||||||
if failed_cases:
|
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)
|
@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
|
async def import_button_n(self, interaction: discord.Interaction, button: discord.ui.Button): # pylint: disable=unused-argument
|
||||||
|
|
Loading…
Reference in a new issue