This commit is contained in:
insert 2024-08-10 15:57:19 -04:00
parent 31626cd534
commit a8f6b8ebf6
Signed by: insert
GPG key ID: A70775C389ACF105
3 changed files with 11 additions and 1 deletions

View file

@ -40,7 +40,7 @@ class GameView(nextcord.ui.View):
print(interaction.user.guild_permissions) print(interaction.user.guild_permissions)
await interaction.response.edit_message(content=message) await interaction.response.edit_message(content=message)
if turnover: if turnover:
await interaction.followup.send(f"The turn has concluded") await interaction.followup.send(f"The turn has concluded",view=None)
else: else:
await interaction.followup.send(f"<{turnping}> it is now your turn!") await interaction.followup.send(f"<{turnping}> it is now your turn!")
return return

View file

@ -36,6 +36,11 @@ class rolebutton(commands.Cog):
def __init__(self, bot: commands.Bot): def __init__(self, bot: commands.Bot):
self.bot = 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') @commands.Cog.listener('on_ready')
async def roleready(self): async def roleready(self):

View file

@ -115,6 +115,11 @@ class speechbubble(commands.Cog):
def __init__(self, bot: commands.Bot): def __init__(self, bot: commands.Bot):
self.bot = 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') @commands.Cog.listener('on_ready')
async def bubbleready(self): async def bubbleready(self):