Cog-Creators / Cog-Creators/Red-DiscordBot
Ignored alias error from smart quotes
- Dominant language
- Python
- Stars
- 5.7k
- Forks
- 2.5k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
# Command bugs
#### Command name
Any aliased command
#### What cog is this command from?
Alias
#### What were you expecting to happen?
The alias to function.
#### What actually happened?
Ignored exception in console and no response from the bot.
#### How can we reproduce this issue?
`[p]alias add aaa userinfo`
`[p]aaa “`
#### Other Info
This bug was found by SyntheticBee
Error:
```py
Ignoring exception in on_message
Traceback (most recent call last):
File "\venv\lib\site-packages\discord\client.py", line 270, in _run_event
await coro(*args, **kwargs)
File "\venv\lib\site-packages\redbot\cogs\alias\alias.py", line 446, in on_message
await self.maybe_call_alias(message, aliases=aliases)
File "\venv\lib\site-packages\redbot\cogs\alias\alias.py", line 210, in maybe_call_alias
await self.call_alias(message, prefix, alias)
File "\venv\lib\site-packages\redbot\cogs\alias\alias.py", line 215, in call_alias
args = self.get_extra_args_from_alias(message, prefix, alias)
File "\venv\lib\site-packages\redbot\cogs\alias\alias.py", line 185, in get_extra_args_from_alias
word = view.get_quoted_word()
File "\venv\lib\site-packages\discord\ext\commands\view.py", line 148, in get_quoted_word
raise ExpectedClosingQuoteError(close_quote)
discord.ext.commands.errors.ExpectedClosingQuoteError: Expected closing ”.
```
Contributor guide
Assessment
This issue has not been assessed yet.