This commit is contained in:
insert 2024-08-10 14:26:07 -04:00
parent d7533ef963
commit d0013d973b
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -16,7 +16,7 @@ class GameView(nextcord.ui.View):
label="Next Turn", style=nextcord.ButtonStyle.green, custom_id="gameutils:nextturn" label="Next Turn", style=nextcord.ButtonStyle.green, custom_id="gameutils:nextturn"
) )
async def approve(self, button: nextcord.ui.Button, interaction: nextcord.Interaction): 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) ogmsg.pop(0)
message = "It has been decreed..\n" message = "It has been decreed..\n"
found = False found = False
@ -33,7 +33,7 @@ class GameView(nextcord.ui.View):
else: else:
message = message + i + "\n" message = message + i + "\n"
print(interaction.user.guild_permissions) 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!") await interaction.followup.send(f"<{turnping}> it is now your turn!")
return return