Update
This commit is contained in:
parent
31626cd534
commit
a8f6b8ebf6
3 changed files with 11 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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):
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue