This commit is contained in:
insert 2024-08-10 15:51:09 -04:00
parent da4f8a57c0
commit bb0d8766a8
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -16,7 +16,8 @@ class GameView(nextcord.ui.View):
label="Next Turn", style=nextcord.ButtonStyle.green, custom_id="gameutils:nextturn" label="Next Turn", style=nextcord.ButtonStyle.green, custom_id="gameutils:nextturn"
) )
async def approve(self, button: nextcord.ui.Button, interaction: nextcord.Interaction): async def approve(self, button: nextcord.ui.Button, interaction: nextcord.Interaction):
if await application_checks.check(application_checks.has_permissions(manage_roles=True)): print(application_checks.check(application_checks.has_permissions(manage_roles=True)))
if application_checks.check(application_checks.has_permissions(manage_roles=True)):
await interaction.response.semd_message("You don't have permission!", ephemeral=True) await interaction.response.semd_message("You don't have permission!", ephemeral=True)
ogmsg = interaction.message.content.split("\n") ogmsg = interaction.message.content.split("\n")
ogmsg.pop(0) ogmsg.pop(0)