reorderUsernames method

Future<Result<Boolean>> reorderUsernames({
  1. required InputChannelBase channel,
  2. required List<String> order,
})

Reorder Usernames.

ID: b45ced1d.

Implementation

Future<Result<Boolean>> reorderUsernames({
  required InputChannelBase channel,
  required List<String> order,
}) async {
  // Preparing the request.
  final request = ChannelsReorderUsernames(
    channel: channel,
    order: order,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<Boolean>();
}