From 76efb16f96820e0b1fa1394ec55a2e178a0f3af8 Mon Sep 17 00:00:00 2001 From: Draper <27962761+Drapersniper@users.noreply.github.com> Date: Thu, 11 Jun 2020 17:56:57 +0100 Subject: [PATCH] [UX] Add "server" alias for commands that have "guild" in name (#3947) --- redbot/cogs/economy/economy.py | 2 +- redbot/core/core_commands.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/redbot/cogs/economy/economy.py b/redbot/cogs/economy/economy.py index fd3a30b08..d99f74967 100644 --- a/redbot/cogs/economy/economy.py +++ b/redbot/cogs/economy/economy.py @@ -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): diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index 41f8bce32..823786210 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -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):