diff --git a/utils/discord_utils.py b/utils/discord_utils.py index 0fab5f5..4639e51 100644 --- a/utils/discord_utils.py +++ b/utils/discord_utils.py @@ -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})"