From a8f6b8ebf6e204c4159c0c8f732a5f5eb94177d7 Mon Sep 17 00:00:00 2001 From: insert Date: Sat, 10 Aug 2024 15:57:19 -0400 Subject: [PATCH] Update --- gameutils.py | 2 +- rolebuttons.py | 5 +++++ speechbubble.py | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gameutils.py b/gameutils.py index b94dbdb..c70bb62 100644 --- a/gameutils.py +++ b/gameutils.py @@ -40,7 +40,7 @@ class GameView(nextcord.ui.View): print(interaction.user.guild_permissions) await interaction.response.edit_message(content=message) if turnover: - await interaction.followup.send(f"The turn has concluded") + await interaction.followup.send(f"The turn has concluded",view=None) else: await interaction.followup.send(f"<{turnping}> it is now your turn!") return diff --git a/rolebuttons.py b/rolebuttons.py index c74aa9b..3677f36 100644 --- a/rolebuttons.py +++ b/rolebuttons.py @@ -36,6 +36,11 @@ class rolebutton(commands.Cog): def __init__(self, bot: commands.Bot): self.bot = bot + #errors if first loaded but is needed after + try: + self.bot.add_view(RoleView(self.bot)) + except: + pass @commands.Cog.listener('on_ready') async def roleready(self): diff --git a/speechbubble.py b/speechbubble.py index 6f33078..360c6ca 100644 --- a/speechbubble.py +++ b/speechbubble.py @@ -115,6 +115,11 @@ class speechbubble(commands.Cog): def __init__(self, bot: commands.Bot): self.bot = bot + #errors if first loaded but is needed after + try: + self.bot.add_view(ApplicationView(self.bot)) + except: + pass @commands.Cog.listener('on_ready') async def bubbleready(self):