raito.plugins.roles.providers.base module¶
- class raito.plugins.roles.providers.base.BaseRoleProvider(storage)[исходный код]¶
Базовые классы:
IRoleProviderBase role provider class.
- Параметры:
storage (BaseStorage)
- 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