update
This commit is contained in:
parent
fe683cd563
commit
da4f8a57c0
1 changed files with 3 additions and 1 deletions
|
@ -16,11 +16,13 @@ class GameView(nextcord.ui.View):
|
|||
label="Next Turn", style=nextcord.ButtonStyle.green, custom_id="gameutils:nextturn"
|
||||
)
|
||||
async def approve(self, button: nextcord.ui.Button, interaction: nextcord.Interaction):
|
||||
if await application_checks.check(application_checks.has_permissions(manage_roles=True)):
|
||||
await interaction.response.semd_message("You don't have permission!", ephemeral=True)
|
||||
ogmsg = interaction.message.content.split("\n")
|
||||
ogmsg.pop(0)
|
||||
message = "It has been decreed..\n"
|
||||
found = False
|
||||
trunover = False
|
||||
turnover = False
|
||||
for i in range(len(ogmsg)):
|
||||
if ogmsg[i].startswith("~"):
|
||||
message = f"{message}{ogmsg[i]}\n"
|
||||
|
|
Loading…
Reference in a new issue