mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 02:16:09 -05:00
Add respectable aliases for consistency (#2731)
* Add respectable aliases for consistency * General command name for alias.py * Forgot one for alias * General command for filter * General command for warnings * Whoops Resolves #1749
This commit is contained in:
committed by
Michael H
parent
cd745d35c2
commit
2e271d695b
@@ -375,7 +375,7 @@ class Alias(commands.Cog):
|
||||
await ctx.send(_("There is no alias with the name `{name}`").format(name=alias_name))
|
||||
|
||||
@checks.mod_or_permissions(manage_guild=True)
|
||||
@alias.command(name="del")
|
||||
@alias.command(name="delete", aliases=["del", "remove"])
|
||||
@commands.guild_only()
|
||||
async def _del_alias(self, ctx: commands.Context, alias_name: str):
|
||||
"""Delete an existing alias on this server."""
|
||||
@@ -394,7 +394,7 @@ class Alias(commands.Cog):
|
||||
await ctx.send(_("Alias with name `{name}` was not found.").format(name=alias_name))
|
||||
|
||||
@checks.is_owner()
|
||||
@global_.command(name="del")
|
||||
@global_.command(name="delete", aliases=["del", "remove"])
|
||||
async def _del_global_alias(self, ctx: commands.Context, alias_name: str):
|
||||
"""Delete an existing global alias."""
|
||||
aliases = await self.unloaded_global_aliases()
|
||||
|
||||
Reference in New Issue
Block a user