Update
This commit is contained in:
parent
32eddce00c
commit
0c952eb940
1 changed files with 7 additions and 7 deletions
14
gameutils.py
14
gameutils.py
|
@ -29,6 +29,12 @@ class TurnModal(nextcord.ui.Modal):
|
||||||
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())
|
||||||
|
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}")
|
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)
|
random.shuffle(disusers)
|
||||||
for i in range(len(disusers)):
|
for i in range(len(disusers)):
|
||||||
message = message + f"{str(i+1+len(users))}\. <@{disusers[i].id}> **disadventage**\n"
|
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())
|
await interaction.response.send_modal(message,None,users[0])
|
||||||
try:
|
|
||||||
sentmsg = await sentmsg.fetch()
|
|
||||||
await sentmsg.pin()
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
await interaction.followup.send_modal(None,None,users[0])
|
|
||||||
#await interaction.followup.send(f"<@{users[0].id}> it is now your turn!")
|
#await interaction.followup.send(f"<@{users[0].id}> it is now your turn!")
|
||||||
|
|
||||||
@nextcord.slash_command(
|
@nextcord.slash_command(
|
||||||
|
|
Loading…
Reference in a new issue