From 31626cd5340eadb5932b22dda7c6edb74e99eab3 Mon Sep 17 00:00:00 2001 From: insert Date: Sat, 10 Aug 2024 15:55:42 -0400 Subject: [PATCH] Update --- gameutils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gameutils.py b/gameutils.py index 3b94d9a..b94dbdb 100644 --- a/gameutils.py +++ b/gameutils.py @@ -16,8 +16,6 @@ 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 application_checks.check(application_checks.has_permissions(manage_roles=True)): - await interaction.response.send_message(f"You don't have permission! {application_checks.check(application_checks.has_permissions(manage_roles=True))}", ephemeral=True) ogmsg = interaction.message.content.split("\n") ogmsg.pop(0) message = "It has been decreed..\n" @@ -51,6 +49,11 @@ class gameutils(commands.Cog): def __init__(self, bot: commands.Bot): self.bot = bot + #errors if first loaded but is needed after + try: + self.bot.add_view(GameView()) + except: + pass @commands.Cog.listener('on_ready') async def gameready(self):