diff --git a/sukuinote/plugins/info.py b/sukuinote/plugins/info.py index 42bd6d4..ac4d6a3 100644 --- a/sukuinote/plugins/info.py +++ b/sukuinote/plugins/info.py @@ -55,6 +55,12 @@ async def info(client, message): if entity.username: text_ping += f'\nUsername: @{entity.username}' text_unping += f'\nUsername: @{ZWS}{entity.username}' + if entity.restrictions: + restrictions = [] + for r in entity.restrictions: + restrictions.append(f"{r.reason}-{r.platform}") + text_ping += f'\nRestrictions: {", ".join(restrictions)}' + text_unping += f'\nRestrictions: {", ".join(restrictions)}' if entity.members_count: text_ping += f'\nMembers: {entity.members_count}' text_unping += f'\nMembers: {entity.members_count}'