[Alias] Remove guild_only deco from main alias command group (#3941)

* Update alias.py

* alias help and show

* well... avoid the dumb
This commit is contained in:
Dav 2020-06-11 13:00:38 +00:00 committed by GitHub
parent aea6f68598
commit bc19b0d103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,6 @@ class Alias(commands.Cog):
await menu(ctx, alias_list, DEFAULT_CONTROLS) await menu(ctx, alias_list, DEFAULT_CONTROLS)
@commands.group() @commands.group()
@commands.guild_only()
async def alias(self, ctx: commands.Context): async def alias(self, ctx: commands.Context):
"""Manage command aliases.""" """Manage command aliases."""
pass pass
@ -253,7 +252,6 @@ class Alias(commands.Cog):
) )
@alias.command(name="help") @alias.command(name="help")
@commands.guild_only()
async def _help_alias(self, ctx: commands.Context, alias_name: str): async def _help_alias(self, ctx: commands.Context, alias_name: str):
"""Try to execute help for the base command of the alias.""" """Try to execute help for the base command of the alias."""
alias = await self._aliases.get_alias(ctx.guild, alias_name=alias_name) alias = await self._aliases.get_alias(ctx.guild, alias_name=alias_name)
@ -263,7 +261,6 @@ class Alias(commands.Cog):
await ctx.send(_("No such alias exists.")) await ctx.send(_("No such alias exists."))
@alias.command(name="show") @alias.command(name="show")
@commands.guild_only()
async def _show_alias(self, ctx: commands.Context, alias_name: str): async def _show_alias(self, ctx: commands.Context, alias_name: str):
"""Show what command the alias executes.""" """Show what command the alias executes."""
alias = await self._aliases.get_alias(ctx.guild, alias_name) alias = await self._aliases.get_alias(ctx.guild, alias_name)