Compare commits
2 commits
a373f63756
...
bb3da8d03b
Author | SHA1 | Date | |
---|---|---|---|
bb3da8d03b | |||
e394518aad |
2 changed files with 4 additions and 6 deletions
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue