removeDiscoverySplash method
Remove the discovery splash banner of this
This method requires the feature GuildFeature.banner of this.
await guild.removeDiscoverySplash();
Implementation
Future<void> removeDiscoverySplash () async {
if (!features.contains(GuildFeature.banner)) {
throw MissingFeatureException('The $name guild does not have the ${GuildFeature.discoverable} feature.');
}
Response response = await ioc.use<DiscordApiHttpService>().patch(url: "/guilds/$id")
.payload({ 'discovery_splash': null })
.build();
if (response.statusCode == 200) {
_discoverySplash = null;
}
}