Update
This commit is contained in:
parent
7604b1e1f0
commit
dd4eb1d7b3
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,6 @@ class GameView(nextcord.ui.View):
|
||||||
@nextcord.ui.button(
|
@nextcord.ui.button(
|
||||||
label="Next Turn", style=nextcord.ButtonStyle.green, custom_id="gameutils:nextturn"
|
label="Next Turn", style=nextcord.ButtonStyle.green, custom_id="gameutils:nextturn"
|
||||||
)
|
)
|
||||||
@nextcord.ext.application_checks.has_permissions(manage_roles=True)
|
|
||||||
async def approve(self, button: nextcord.ui.Button, interaction: nextcord.Interaction):
|
async def approve(self, button: nextcord.ui.Button, interaction: nextcord.Interaction):
|
||||||
ogmsg = interaction.message.content.split("\n")
|
ogmsg = interaction.message.content.split("\n")
|
||||||
ogmsg.pop(0)
|
ogmsg.pop(0)
|
||||||
|
@ -33,6 +32,7 @@ class GameView(nextcord.ui.View):
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
message = message + i + "\n"
|
message = message + i + "\n"
|
||||||
|
print(interaction.user.guild_permissions)
|
||||||
await interaction.response.edit_message(message)
|
await interaction.response.edit_message(message)
|
||||||
await interaction.followup.send(f"<{turnping}> it is now your turn!")
|
await interaction.followup.send(f"<{turnping}> it is now your turn!")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue