This commit is contained in:
insert 2024-08-11 00:38:44 -04:00
parent 32eddce00c
commit 0c952eb940
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -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(