From 0c952eb940cf6e11f075a07986e179627ca03a8b Mon Sep 17 00:00:00 2001 From: insert Date: Sun, 11 Aug 2024 00:38:44 -0400 Subject: [PATCH] Update --- gameutils.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gameutils.py b/gameutils.py index 3df5020..b0ff0b6 100644 --- a/gameutils.py +++ b/gameutils.py @@ -29,6 +29,12 @@ class TurnModal(nextcord.ui.Modal): await interaction.response.edit_message(content=self.message) await interaction.followup.send(f"<{self.turnping}> it is now your turn!\n{self.text.value}") else: + sentmsg = await interaction.response.send_message(self.message, view=GameView(), allowed_mentions=nextcord.AllowedMentions.none()) + try: + sentmsg = await sentmsg.fetch() + await sentmsg.pin() + except: + pass await interaction.followup.send(f"<{self.fristrun.id}> it is now your turn!\n{self.text.value}") @@ -107,13 +113,7 @@ class gameutils(commands.Cog): random.shuffle(disusers) for i in range(len(disusers)): message = message + f"{str(i+1+len(users))}\. <@{disusers[i].id}> **disadventage**\n" - sentmsg = await interaction.response.send_message(message, view=GameView(), allowed_mentions=nextcord.AllowedMentions.none()) - try: - sentmsg = await sentmsg.fetch() - await sentmsg.pin() - except: - pass - await interaction.followup.send_modal(None,None,users[0]) + await interaction.response.send_modal(message,None,users[0]) #await interaction.followup.send(f"<@{users[0].id}> it is now your turn!") @nextcord.slash_command(