This commit is contained in:
insert 2024-08-11 00:46:28 -04:00
parent 1a6c6a0b78
commit 74f5b01596
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -27,7 +27,7 @@ class TurnModal(nextcord.ui.Modal):
async def callback(self, interaction: nextcord.Interaction) -> None: async def callback(self, interaction: nextcord.Interaction) -> None:
if not self.fristrun: if not self.fristrun:
await interaction.response.edit_message(content=self.message) await interaction.response.edit_message(content=self.message)
await interaction.followup.send(f"<@{self.turnping}> it is now your turn!\n{self.text.value}") await interaction.followup.send(f"<{self.turnping}> it is now your turn!\n{self.text.value}")
else: else:
sentmsg = await interaction.response.send_message(self.message, view=GameView(), allowed_mentions=nextcord.AllowedMentions.none()) sentmsg = await interaction.response.send_message(self.message, view=GameView(), allowed_mentions=nextcord.AllowedMentions.none())
try: try:
@ -35,7 +35,7 @@ class TurnModal(nextcord.ui.Modal):
await sentmsg.pin() await sentmsg.pin()
except: except:
pass pass
await interaction.followup.send(f"<{self.fristrun.id}> it is now your turn!\n{self.text.value}") await interaction.followup.send(f"<@{self.fristrun.id}> it is now your turn!\n{self.text.value}")
class GameView(nextcord.ui.View): class GameView(nextcord.ui.View):