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 dataStoreRole.updateRole(
    id: id,
    serverId: server.id,
    reason: reason,
    payload: {'hoist': hoist},
  );
}