fix(shortmute): pylint fixes

This commit is contained in:
SeaswimmerTheFsh 2023-09-24 20:46:43 -04:00
parent 634226f0d3
commit a5cf3190d9
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -124,7 +124,7 @@ class Shortmute(commands.Cog):
self.config = Config.get_conf(None, cog_name='Shortmute', identifier=25781647388294)
@ui.button(label="Yes", style=discord.ButtonStyle.success)
async def shortmute_button_yes(self, button: ui.Button, interaction: discord.Interaction): # pylint: disable=arguments-differ
async def shortmute_button_yes(self, button: ui.Button, interaction: discord.Interaction): # pylint: disable=unused-argument
disable_dateutil()
target: discord.Member = self.passed_info['target']
readable_duration = self.passed_info['readable_duration']
@ -159,7 +159,7 @@ class Shortmute(commands.Cog):
await channel_obj.send(embed=logging_embed)
@ui.button(label="No", style=discord.ButtonStyle.danger)
async def shortmute_button_no(self, button: ui.Button, interaction: discord.Interaction): # pylint: disable=arguments-differ
async def shortmute_button_no(self, button: ui.Button, interaction: discord.Interaction): # pylint: disable=unused-argument
message: discord.Message = await self.passed_info['interaction'].edit_original_response(content="Command cancelled.", view=None, embed=None)
await message.delete(delay=3)
@ -267,7 +267,7 @@ class Shortmute(commands.Cog):
current_list = await self.config.guild(ctx.guild).blacklisted_users()
already_in_list = []
for user_id in current_list:
user_obj = await Bot.fetch_user(user_id)
user_obj = await Bot.fetch_user(user_id) # pylint: disable=no-value-for-parameter
if user_obj:
already_in_list.append(user_obj.mention)
if already_in_list: