mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[UX] Add "server" alias for commands that have "guild" in name (#3947)
This commit is contained in:
parent
d411873503
commit
76efb16f96
@ -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):
|
||||
|
||||
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user