Update
This commit is contained in:
parent
69b7c1a5e9
commit
6556aa505e
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ 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 = interaction.permissions
|
if interaction.permissions.manage_roles:
|
||||||
|
await interaction.response.send_message("You don't have permission!")
|
||||||
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}")
|
||||||
|
|
Loading…
Reference in a new issue