Update
This commit is contained in:
parent
3924ec5955
commit
c58188bb6a
1 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,7 @@ class TurnModal(nextcord.ui.Modal):
|
||||||
self.add_item(self.text)
|
self.add_item(self.text)
|
||||||
|
|
||||||
async def callback(self, interaction: nextcord.Interaction) -> None:
|
async def callback(self, interaction: nextcord.Interaction) -> None:
|
||||||
|
check = vars(interaction.permissions)
|
||||||
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}")
|
||||||
|
@ -38,7 +39,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!{check}\n{self.text.value}")
|
||||||
|
|
||||||
async def on_error(self, error: nextcord.DiscordException, interaction: nextcord.Interaction):
|
async def on_error(self, error: nextcord.DiscordException, interaction: nextcord.Interaction):
|
||||||
error = traceback.format_exc()
|
error = traceback.format_exc()
|
||||||
|
|
Loading…
Reference in a new issue