setHoist method

Future<void> setHoist(
  1. bool hoist,
  2. String? reason
)

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},
  );
}