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(