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",