diff options
| author | Rapptz <[email protected]> | 2018-09-25 19:47:10 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-09-25 19:48:20 -0400 |
| commit | 45af0c83de8b73856355d3c3170215f5ffab7914 (patch) | |
| tree | 50bac6ec2f62b32e7d9f70bf8e705fbf46d3bc6a | |
| parent | Don't try to close shards if there are none yet. (diff) | |
| download | discord.py-45af0c83de8b73856355d3c3170215f5ffab7914.tar.xz discord.py-45af0c83de8b73856355d3c3170215f5ffab7914.zip | |
[commands] Fix NameError in clean_content converter
| -rw-r--r-- | discord/ext/commands/converter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index c9e91211..a66a61f3 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -458,7 +458,7 @@ class clean_content(Converter): if ctx.guild: def resolve_role(_id, *, _find=ctx.guild.get_role): - r = _find(_id, _roles) + r = _find(_id) return '@' + r.name if r else '@deleted-role' transformations.update( |