diff options
| author | Hugo Woesthuis <[email protected]> | 2020-01-05 20:44:23 +0100 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-01-20 07:14:27 -0500 |
| commit | ee6f4e85d62888af0960e091fbe9bb1115da1312 (patch) | |
| tree | 4f3037a2961c11f03007c27de58635ffeccb4747 /discord/utils.py | |
| parent | Update attachment documentation for width/height applying to videos too (diff) | |
| download | discord.py-ee6f4e85d62888af0960e091fbe9bb1115da1312.tar.xz discord.py-ee6f4e85d62888af0960e091fbe9bb1115da1312.zip | |
[commands] Allow @ prefixed usernames in DM contexts for UserConverter
Previously the argument '@user#0000' return None.
To fix this, as this is a common user error, an extra check was added
to remove the first character from the argument if this is an '@'.
Discord names may not contain an '@' anyways.
Diffstat (limited to 'discord/utils.py')
0 files changed, 0 insertions, 0 deletions