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