diff options
| author | 2020-05-20 09:17:26 +0300 | |
|---|---|---|
| committer | 2020-05-20 09:17:26 +0300 | |
| commit | ce34adbc64bacd15eeb1a2bfee7b0d022ec969eb (patch) | |
| tree | a51a2982b4a5d1b2568b789438f16add727774dd | |
| parent | Source: Create `source` command with alias `src` (diff) | |
Source: Make `source` command to `command` instead `group`
| -rw-r--r-- | bot/cogs/source.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/source.py b/bot/cogs/source.py index af29caaaa..1774d0085 100644 --- a/bot/cogs/source.py +++ b/bot/cogs/source.py @@ -3,7 +3,7 @@ import os from typing import Union from discord import Embed -from discord.ext.commands import BadArgument, Cog, Command, Context, Converter, HelpCommand, group +from discord.ext.commands import BadArgument, Cog, Command, Context, Converter, HelpCommand, command from bot.bot import Bot from bot.constants import URLs @@ -48,7 +48,7 @@ class Source(Cog): def __init__(self, bot: Bot): self.bot = bot - @group(name='source', aliases=('src',), invoke_without_command=True) + @command(name="source", aliases=("src",)) async def source_command(self, ctx: Context, *, source_item: SourceConverter) -> None: """Get GitHub link and information about help command, command or Cog.""" url = self.get_source_link(source_item) |