From d0013d973b2a6237c559541dc008dee46ad1fa70 Mon Sep 17 00:00:00 2001 From: insert Date: Sat, 10 Aug 2024 14:26:07 -0400 Subject: [PATCH] Update --- gameutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gameutils.py b/gameutils.py index 2fb7a2f..0e25575 100644 --- a/gameutils.py +++ b/gameutils.py @@ -16,7 +16,7 @@ class GameView(nextcord.ui.View): label="Next Turn", style=nextcord.ButtonStyle.green, custom_id="gameutils:nextturn" ) async def approve(self, button: nextcord.ui.Button, interaction: nextcord.Interaction): - ogmsg = interaction.message.content.split("\n") + ogmsg = nextcord.utils.escape_markdown(interaction.message.content).split("\n") ogmsg.pop(0) message = "It has been decreed..\n" found = False @@ -33,7 +33,7 @@ class GameView(nextcord.ui.View): else: message = message + i + "\n" print(interaction.user.guild_permissions) - await interaction.response.edit_message(content=nextcord.utils.escape_markdown(message)) + await interaction.response.edit_message(content=message) await interaction.followup.send(f"<{turnping}> it is now your turn!") return