setBanner method

Future<void> setBanner(
  1. File banner, {
  2. String? reason,
})

Implementation

Future<void> setBanner(File banner, {String? reason}) async {
  final bannerAsset = ImageAsset.makeAsset(banner);
  await _serverPart.updateServer(
      serverId, {'banner': bannerAsset.makeUrl()}, reason);
}