Discord utils: to_string: added case for roles
This commit is contained in:
parent
f474205462
commit
938aa6df69
|
|
@ -65,3 +65,8 @@ def _(guild) -> str:
|
|||
@to_string.register(discord.CategoryChannel)
|
||||
def _(channel) -> str:
|
||||
return f"{channel.name}({channel.id})"
|
||||
|
||||
|
||||
@to_string.register(discord.Role)
|
||||
def _(role) -> str:
|
||||
return f"@{role.name}({role.id})"
|
||||
|
|
|
|||
Loading…
Reference in New Issue