[UX] Add "server" alias for commands that have "guild" in name (#3947)

This commit is contained in:
Draper 2020-06-11 17:56:57 +01:00 committed by GitHub
parent d411873503
commit 76efb16f96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ class Economy(commands.Cog):
"""Prune bank accounts."""
pass
@_prune.command(name="local")
@_prune.command(name="server", aliases=["guild", "local"])
@commands.guild_only()
@checks.guildowner()
async def _local(self, ctx, confirmation: bool = False):

View File

@ -489,7 +489,7 @@ class Core(commands.Cog, CoreLogic):
_("Embeds are now {} by default.").format(_("disabled") if current else _("enabled"))
)
@embedset.command(name="guild")
@embedset.command(name="server", aliases=["guild"])
@checks.guildowner_or_permissions(administrator=True)
@commands.guild_only()
async def embedset_guild(self, ctx: commands.Context, enabled: bool = None):