fix(aurora): pylint fixes
This commit is contained in:
parent
46a290aad3
commit
950d4abf6a
6 changed files with 38 additions and 38 deletions
|
@ -2,7 +2,7 @@ from discord import ButtonStyle, ui, Interaction
|
|||
from redbot.core import commands
|
||||
from redbot.core.utils.chat_formatting import error
|
||||
|
||||
from aurora.utilities.factory import addrole
|
||||
from aurora.utilities.factory import addrole_embed
|
||||
from aurora.utilities.config import config
|
||||
|
||||
class Addrole(ui.View):
|
||||
|
@ -22,7 +22,7 @@ class Addrole(ui.View):
|
|||
else:
|
||||
addrole_whitelist.append(select.values[0].id)
|
||||
await config.guild(self.ctx.guild).addrole_whitelist.set(addrole_whitelist)
|
||||
await interaction.message.edit(embed=await addrole(self.ctx))
|
||||
await interaction.message.edit(embed=await addrole_embed(self.ctx))
|
||||
|
||||
@ui.button(label="Clear", style=ButtonStyle.red, row=1)
|
||||
async def clear(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument
|
||||
|
@ -31,7 +31,7 @@ class Addrole(ui.View):
|
|||
return
|
||||
await interaction.response.defer()
|
||||
await config.guild(self.ctx.guild).addrole_whitelist.clear()
|
||||
await interaction.message.edit(embed=await addrole(self.ctx))
|
||||
await interaction.message.edit(embed=await addrole_embed(self.ctx))
|
||||
|
||||
@ui.button(label="Close", style=ButtonStyle.gray)
|
||||
async def close(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue