setHoist method
Set the role's hoist status.
await role.setHoist(true, reason: 'Testing');
Implementation
Future<void> setHoist(bool hoist, String? reason) async {
await _datastore.role.update(
id: id.value,
serverId: serverId.value,
reason: reason,
payload: {'hoist': hoist},
);
}