fix(forums): pylint fixes
This commit is contained in:
parent
e0ad1fc337
commit
00c8130cbe
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
import discord
|
||||
from discord import ui
|
||||
from redbot.core import Config, checks, commands
|
||||
from redbot.core import Config, commands
|
||||
|
||||
|
||||
class Forums(commands.Cog):
|
||||
|
@ -55,7 +55,7 @@ class Forums(commands.Cog):
|
|||
self.config = Config.get_conf(None, cog_name='Forums', identifier=2352711325)
|
||||
|
||||
@ui.button(label="Yes", style=discord.ButtonStyle.success, emoji="✅")
|
||||
async def resolved_button_yes(self, interaction: discord.Interaction, button: ui.Button): # pylint: disable=unused-variable
|
||||
async def resolved_button_yes(self, interaction: discord.Interaction, button: ui.Button): # pylint: disable=unused-argument
|
||||
request_role_ids = await self.config.guild(interaction.guild).request_roles()
|
||||
request_roles = [interaction.guild.get_role(role_id) for role_id in request_role_ids]
|
||||
match = any(role in interaction.user.roles for role in request_roles)
|
||||
|
@ -78,7 +78,7 @@ class Forums(commands.Cog):
|
|||
await interaction.response.send_message(content="You cannot close this thread!", ephemeral=True)
|
||||
|
||||
@ui.button(label="No", style=discord.ButtonStyle.danger, emoji="✖️")
|
||||
async def resolved_button_no(self, interaction: discord.Interaction, button: ui.Button): # pylint: disable=unused-variable
|
||||
async def resolved_button_no(self, interaction: discord.Interaction, button: ui.Button): # pylint: disable=unused-argument
|
||||
request_role_ids = await self.config.guild(interaction.guild).request_roles()
|
||||
request_roles = [interaction.guild.get_role(role_id) for role_id in request_role_ids]
|
||||
match = any(role in interaction.user.roles for role in request_roles)
|
||||
|
|
Loading…
Reference in a new issue