From 6556aa505ea9c3e7f10f0eb0aea89e830058f24a Mon Sep 17 00:00:00 2001 From: insert Date: Mon, 12 Aug 2024 15:32:40 -0400 Subject: [PATCH] Update --- gameutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gameutils.py b/gameutils.py index 67553c4..34b47ff 100644 --- a/gameutils.py +++ b/gameutils.py @@ -28,7 +28,8 @@ class TurnModal(nextcord.ui.Modal): self.add_item(self.text) 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: await interaction.response.edit_message(content=self.message) await interaction.followup.send(f"<{self.turnping}> it is now your turn!\n{self.text.value}")