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