teamwire_api/roles¶
Role¶
A directory role visible to the bot.
Attributes
id: unicode. The role idname: unicode. The role namevisibility: unicode. Either "public" or "restricted"organisation: Organisation object, if knowndeleted: boolean. Whether the role has been deleted
get_members¶
Get role members as visible SDK User objects.
Unknown or deleted users are not included in the returned list.
Roles¶
An accessor to directory roles visible to the bot.
get_role¶
Get one role by ID.
get_list¶
Get all non-deleted roles currently visible to the bot.