feat(aurora): added timeouts to configuration views
This commit is contained in:
parent
6c56ee6181
commit
d6f33857a3
5 changed files with 36 additions and 12 deletions
|
@ -1788,14 +1788,16 @@ class Aurora(commands.Cog):
|
|||
@aurora_settings.command(name="overrides", aliases=["override", "user"])
|
||||
async def aurora_settings_overrides(self, ctx: commands.Context):
|
||||
"""Manage Aurora's user overriddable settings."""
|
||||
await ctx.send(embed=await overrides_embed(ctx), view=Overrides(ctx))
|
||||
msg = await ctx.send(embed=await overrides_embed(ctx))
|
||||
await msg.edit(view=Overrides(ctx, msg, 180))
|
||||
|
||||
@aurora_settings.command(name="guild", aliases=["server"])
|
||||
@commands.admin_or_permissions(manage_guild=True)
|
||||
@commands.guild_only()
|
||||
async def aurora_settings_guild(self, ctx: commands.Context):
|
||||
"""Manage Aurora's guild settings."""
|
||||
await ctx.send(embed=await guild_embed(ctx), view=Guild(ctx))
|
||||
msg = await ctx.send(embed=await guild_embed(ctx))
|
||||
await msg.edit(view=Guild(ctx, msg, 180))
|
||||
|
||||
@aurora_settings.command(name="addrole", aliases=["removerole"])
|
||||
@commands.admin_or_permissions(manage_guild=True)
|
||||
|
@ -1804,14 +1806,16 @@ class Aurora(commands.Cog):
|
|||
"""Manage the addrole whitelist.
|
||||
|
||||
Roles added to this list are also applied to `/removerole`."""
|
||||
await ctx.send(embed=await addrole_embed(ctx), view=Addrole(ctx))
|
||||
msg = await ctx.send(embed=await addrole_embed(ctx))
|
||||
await msg.edit(view=Addrole(ctx, msg, 180))
|
||||
|
||||
@aurora_settings.command(name="immunity")
|
||||
@commands.admin_or_permissions(manage_guild=True)
|
||||
@commands.guild_only()
|
||||
async def aurora_settings_immunity(self, ctx: commands.Context):
|
||||
"""Manage the immunity whitelist."""
|
||||
await ctx.send(embed=await immune_embed(ctx), view=Immune(ctx))
|
||||
msg = await ctx.send(embed=await immune_embed(ctx))
|
||||
await msg.edit(view=Immune(ctx, msg, 180))
|
||||
|
||||
@aurora.group(autohelp=True, name="import")
|
||||
@commands.admin()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue