fix(suggestions): pylint fixes
All checks were successful
Pylint / Pylint (push) Successful in 1m6s

This commit is contained in:
Seaswimmer 2023-09-24 20:50:43 -04:00
parent 3eb57fda4b
commit 08ad1fe902
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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__()