From d4cb6e0c65d48d5205d6a2ddc9774d0b9b51e3dd Mon Sep 17 00:00:00 2001 From: Sylte Date: Mon, 13 Nov 2023 22:12:44 +0100 Subject: [PATCH] This should work --- bot/extensions/custom_roles/commands.py | 2 +- cli.py | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bot/extensions/custom_roles/commands.py b/bot/extensions/custom_roles/commands.py index e6b6abab..96469327 100644 --- a/bot/extensions/custom_roles/commands.py +++ b/bot/extensions/custom_roles/commands.py @@ -78,7 +78,7 @@ async def myrole( role = interaction.guild.get_role(before.role_id) # Return role information if no parameter is passed - if (name == before.name or name is None) and (color.value == before.color or color is None): + if (name is None or name == before.name) and (color is None or color.value == before.color): return await interaction.response.send_message( embed=self.role_embed("Custom Role for", interaction.user, interaction.guild.get_role(before.role_id)), ephemeral=True, diff --git a/cli.py b/cli.py index b151094b..5ff2f5ee 100644 --- a/cli.py +++ b/cli.py @@ -130,16 +130,16 @@ async def main(ctx): prefixes = ("t.",) extensions = ( "jishaku", - "bot.extensions.challenges", - "bot.extensions.readthedocs", - "bot.extensions.suggestions", - "bot.extensions.github", - "bot.extensions.tags", - "bot.extensions.levelling", - "bot.extensions.persistent_roles", - "bot.extensions.custom_roles", - "bot.extensions.polls", - "bot.extensions.youtube", + # "bot.extensions.challenges", + # "bot.extensions.readthedocs", + # "bot.extensions.suggestions", + # "bot.extensions.github", + # "bot.extensions.tags", + # "bot.extensions.levelling", + # "bot.extensions.persistent_roles", + # "bot.extensions.custom_roles", + # "bot.extensions.polls", + # "bot.extensions.youtube", "bot.cogs._help", "bot.cogs.clashofcode", "bot.cogs.roles",