From a5cf3190d99f780040f31b8c9a51d184ef69418e Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 24 Sep 2023 20:46:43 -0400 Subject: [PATCH] fix(shortmute): pylint fixes --- shortmute/shortmute.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shortmute/shortmute.py b/shortmute/shortmute.py index 999b244..f405ea3 100644 --- a/shortmute/shortmute.py +++ b/shortmute/shortmute.py @@ -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: