removeFromDiscovery abstract method

  1. @POST.new('/admin/discovery/guilds/{guild_id}/remove')
Future<DiscoveryApplicationResponse> removeFromDiscovery({
  1. @Path.new('guild_id') required SnowflakeType guildId,
  2. @Body.new() required DiscoveryAdminRemoveRequest body,
})

Remove guild from discovery.

Remove an approved guild from discovery. Requires DISCOVERY_REMOVE permission.

guildId - The ID of the guild.

body - Name not received - field will be skipped.

Implementation

@POST('/admin/discovery/guilds/{guild_id}/remove')
Future<DiscoveryApplicationResponse> removeFromDiscovery({
  @Path('guild_id') required SnowflakeType guildId,
  @Body() required DiscoveryAdminRemoveRequest body,
});