discord.py: discord.ext.commands.errors.BadArgument: Expected space after closing quotation
@commands.command(aliases=['s'])
async def subscribe(self, ctx, subscribtion):
"""foo bar"""
Ignoring exception in command subscribe:
Traceback (most recent call last):
File "d:\python_projecten\SteamNews\DiscordBot\SteamNews\venv\lib\site-packages\discord.py-1.0.0a1+gb5ddc99-py3.7.egg\discord\ext\commands\bot.py", line 898, in invoke
await ctx.command.invoke(ctx)
File "d:\python_projecten\SteamNews\DiscordBot\SteamNews\venv\lib\site-packages\discord.py-1.0.0a1+gb5ddc99-py3.7.egg\discord\ext\commands\core.py", line 543, in invoke
await self.prepare(ctx)
File "d:\python_projecten\SteamNews\DiscordBot\SteamNews\venv\lib\site-packages\discord.py-1.0.0a1+gb5ddc99-py3.7.egg\discord\ext\commands\core.py", line 508, in prepare
await self._parse_arguments(ctx)
File "d:\python_projecten\SteamNews\DiscordBot\SteamNews\venv\lib\site-packages\discord.py-1.0.0a1+gb5ddc99-py3.7.egg\discord\ext\commands\core.py", line 426, in _parse_arguments
transformed = await self.transform(ctx, param)
File "d:\python_projecten\SteamNews\DiscordBot\SteamNews\venv\lib\site-packages\discord.py-1.0.0a1+gb5ddc99-py3.7.egg\discord\ext\commands\core.py", line 323, in transform
argument = quoted_word(view)
File "d:\python_projecten\SteamNews\DiscordBot\SteamNews\venv\lib\site-packages\discord.py-1.0.0a1+gb5ddc99-py3.7.egg\discord\ext\commands\view.py", line 189, in quoted_word
raise BadArgument('Expected space after closing quotation')
discord.ext.commands.errors.BadArgument: Expected space after closing quotation
When executing
<prefix> """ +
where “<prefix>” is your bots prefix
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 21 (8 by maintainers)
It’s just not an issue, just badly implemented in my opinion
Please @Annihilator708, this is an issue with escaping quotation marks, not the parsing of command arguments. I agree fully with Harmon.
Your first post made it look like the prefix being “” broke it. That’s why it was unclear.