setVanityUrlCode method

Future<void> setVanityUrlCode(
  1. String value, {
  2. String? reason,
})

Set the server's vanity url code.

await server.setVanityUrlCode('new-vanity-url', reason: 'Testing');

Implementation

Future<void> setVanityUrlCode(String value, {String? reason}) async {
  await _serverPart.updateServer(id, {'vanity_url_code': value}, reason);
}