From 213e33b78c780ebd0d681ad1d47fda945a3c97ab Mon Sep 17 00:00:00 2001 From: davidetacchini <84925446+davidetacchini@users.noreply.github.com> Date: Fri, 8 Sep 2023 22:53:42 +0200 Subject: [PATCH] fix cog name to be lowercase --- cogs/profile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/profile.py b/cogs/profile.py index 2640f35f..93ab1427 100644 --- a/cogs/profile.py +++ b/cogs/profile.py @@ -102,7 +102,7 @@ async def quit(self, interaction: discord.Interaction, button: discord.ui.Button @app_commands.context_menu(name="List Profiles") async def list_profiles(interaction: discord.Interaction, member: discord.Member) -> None: """List your own or a member's profiles""" - profile_cog = interaction.client.get_cog("Profile") + profile_cog = interaction.client.get_cog("profile") profiles = await profile_cog.get_profiles(interaction, member.id) entries = await profile_cog.list_profiles(interaction, member, profiles) await interaction.client.paginate(entries, interaction=interaction)