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):