diff --git a/suggestions/__init__.py b/suggestions/__init__.py index 0d19439..2e8c3c6 100644 --- a/suggestions/__init__.py +++ b/suggestions/__init__.py @@ -8,5 +8,5 @@ async def setup(bot): async def teardown(bot): # We're removing the commands here to ensure they get unloaded properly when the cog is unloaded. - bot.tree.remove_command("approve_context", type=discord.AppCommandType.message) - bot.tree.remove_command("deny_context", type=discord.AppCommandType.message) + bot.tree.remove_command("approve_context", type=discord.AppCommandType.message) # pylint: disable=undefined-variable + bot.tree.remove_command("deny_context", type=discord.AppCommandType.message) # pylint: disable=undefined-variable diff --git a/suggestions/suggestions.py b/suggestions/suggestions.py index f6a0e4b..36e6328 100644 --- a/suggestions/suggestions.py +++ b/suggestions/suggestions.py @@ -44,8 +44,7 @@ class Suggestions(commands.Cog): def check_discrim(self, user: discord.User): if user.discriminator == "0": return user.name - else: - return f"{user.name}#{user.discriminator}" + return f"{user.name}#{user.discriminator}" async def red_delete_data_for_user(self, *, requester, user_id: discord.User.id): # per guild suggestions @@ -611,6 +610,7 @@ class Suggestions(commands.Cog): ) return nmsg +# pylint: disable=protected-access class SuggestionApproveModal(discord.ui.Modal, title="Approving suggestion..."): def __init__(self, message): super().__init__()