fix(aurora): pylint fixes
All checks were successful
Actions / Lint Code (Pylint) (pull_request) Successful in 16s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 12s

This commit is contained in:
SeaswimmerTheFsh 2024-01-16 14:26:54 +00:00
parent 46a290aad3
commit 950d4abf6a
Signed by: cswimr
GPG key ID: D74DDDDF420E13DF
6 changed files with 38 additions and 38 deletions

View file

@ -230,7 +230,7 @@ async def evidenceformat_factory(interaction: Interaction, case_dict: dict) -> s
### Configuration Embeds #
########################################################################################################################
async def _core(ctx: commands.Context) -> Embed:
async def _config(ctx: commands.Context) -> Embed:
"""Generates the core embed for configuration menus to use."""
e = Embed(
title="Aurora Configuration Menu",
@ -239,7 +239,7 @@ async def _core(ctx: commands.Context) -> Embed:
e.set_thumbnail(url=ctx.bot.user.display_avatar.url)
return e
async def overrides(ctx: commands.Context) -> Embed:
async def overrides_embed(ctx: commands.Context) -> Embed:
"""Generates a configuration menu embed for a user's overrides."""
override_settings = {
@ -259,7 +259,7 @@ async def overrides(ctx: commands.Context) -> Embed:
]
override_str = '\n'.join(override_str)
e = await _core(ctx)
e = await _config(ctx)
e.title += ": User Overrides"
e.description = """
Use the buttons below to manage your user overrides.
@ -267,7 +267,7 @@ async def overrides(ctx: commands.Context) -> Embed:
""" + override_str
return e
async def guild(ctx: commands.Context) -> Embed:
async def guild_embed(ctx: commands.Context) -> Embed:
"""Generates a configuration menu field value for a guild's settings."""
guild_settings = {
@ -305,14 +305,14 @@ async def guild(ctx: commands.Context) -> Embed:
]
guild_str = '\n'.join(guild_str)
e = await _core(ctx)
e = await _config(ctx)
e.title += ": Server Configuration"
e.description = """
Use the buttons below to manage Aurora's server configuration.\n
""" + guild_str
return e
async def addrole(ctx: commands.Context) -> Embed:
async def addrole_embed(ctx: commands.Context) -> Embed:
"""Generates a configuration menu field value for a guild's addrole whitelist."""
whitelist = await config.guild(ctx.guild).addrole_whitelist()
@ -322,7 +322,7 @@ async def addrole(ctx: commands.Context) -> Embed:
else:
whitelist = warning("No roles are on the addrole whitelist!")
e = await _core(ctx)
e = await _config(ctx)
e.title += ": Addrole Whitelist"
e.description = "Use the select menu below to manage this guild's addrole whitelist."
@ -345,7 +345,7 @@ async def addrole(ctx: commands.Context) -> Embed:
return e
async def immune(ctx: commands.Context) -> Embed:
async def immune_embed(ctx: commands.Context) -> Embed:
"""Generates a configuration menu field value for a guild's immune roles."""
immune_roles = await config.guild(ctx.guild).immune_roles()
@ -355,7 +355,7 @@ async def immune(ctx: commands.Context) -> Embed:
else:
immune_str = warning("No roles are set as immune roles!")
e = await _core(ctx)
e = await _config(ctx)
e.title += ": Immune Roles"
e.description = "Use the select menu below to manage this guild's immune roles."