raito.plugins.roles.providers.protocol module¶
- class raito.plugins.roles.providers.protocol.IRoleProvider(*args, **kwargs)[исходный код]¶
Базовые классы:
ProtocolProtocol for providers that manage user roles.
- async get_role(bot_id, user_id)[исходный код]¶
Get the role for a specific user.
- async set_role(bot_id, user_id, role_slug)[исходный код]¶
Set the role for a specific user.
- async remove_role(bot_id, user_id)[исходный код]¶
Remove the role for a specific user.
- async migrate()[исходный код]¶
Initialize the storage backend (create tables, etc.).
- Тип результата:
None