Compare commits

...

2 commits

Author SHA1 Message Date
bb3da8d03b
fix(aurora): fixed embed fields being inline
Some checks failed
Actions / Lint Code (Pylint) (pull_request) Failing after 14s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 11s
2024-01-15 07:09:44 +00:00
e394518aad
fix(aurora): aurora settings should not be guild only 2024-01-15 07:08:24 +00:00
2 changed files with 4 additions and 6 deletions

View file

@ -9,13 +9,11 @@ from ..importers.galacticbot import ImportGalacticBotView
class Configuration(Mixin):
"""Configuration commands for Aurora."""
@commands.guild_only()
@commands.group(autohelp=True, aliases=['moderation', 'mod'])
async def aurora(self, ctx: commands.Context):
"""Settings and miscellaneous commands for Aurora."""
@aurora.command(name="settings", aliases=['config', 'options', 'set'])
@commands.guild_only()
async def aurora_settings(self, ctx: commands.Context):
"""View Aurora configuration settings."""
await ctx.send(embed=await embed(ctx))

View file

@ -103,9 +103,9 @@ async def _immune(guild: Guild) -> str:
async def embed(ctx: commands.Context) -> Embed:
"""Generates the configuration embed for a guild."""
embed = await _core(ctx)
embed.add_field(name="User Overrides", value=await _overrides(ctx.author))
embed.add_field(name="User Overrides", value=await _overrides(ctx.author), inline=False)
if ctx.guild is not None and (ctx.author.guild_permissions.administrator or ctx.author.guild_permissions.manage_guild):
embed.add_field(name="Guild Settings", value=await _guild(ctx.guild))
embed.add_field(name="Blacklist Roles", value=await _blacklist(ctx.guild))
embed.add_field(name="Immune Roles", value=await _immune(ctx.guild))
embed.add_field(name="Guild Settings", value=await _guild(ctx.guild), inline=False)
embed.add_field(name="Blacklist Roles", value=await _blacklist(ctx.guild), inline=False)
embed.add_field(name="Immune Roles", value=await _immune(ctx.guild), inline=False)
return embed