fetch method

Future<Map<Snowflake, Role>> fetch({
  1. bool force = false,
})

Implementation

Future<Map<Snowflake, Role>> fetch({bool force = false}) async {
  final roles = await _datastore.role.fetch(_serverId.value, force);
  return Map.fromEntries(roles.entries
      .where((element) => currentIds.contains(element.key))
      .map((e) => MapEntry(e.key, e.value)));
}