setDiscoverySplash method
Set the server's discovery splash.
await server.assets.setDiscoverySplash(File('discovery_splash.png'), reason: 'Testing');
Implementation
Future<void> setDiscoverySplash(File discoverySplash, {String? reason}) async {
final discoverySplashAsset = ImageAsset.makeAsset(discoverySplash);
await _datastore.server
.update(serverId.value, {'discovery_splash': discoverySplashAsset.makeUrl()}, reason);
}