mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-09 15:29:57 +00:00
[commands] Fix NameError in clean_content converter
This commit is contained in:
parent
e29e3438ec
commit
45af0c83de
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user