From 65434e7b6947f375bd7425456d67dfcb4fcca64e Mon Sep 17 00:00:00 2001 From: insert Date: Sat, 10 Aug 2024 15:17:17 -0400 Subject: [PATCH] Update --- rolebuttons.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rolebuttons.py b/rolebuttons.py index 717352a..c74aa9b 100644 --- a/rolebuttons.py +++ b/rolebuttons.py @@ -36,7 +36,10 @@ class rolebutton(commands.Cog): def __init__(self, bot: commands.Bot): self.bot = bot - bot.add_view(RoleView(bot)) + + @commands.Cog.listener('on_ready') + async def roleready(self): + self.bot.add_view(RoleView(self.bot)) @nextcord.slash_command( name="rolebuttons",