updateGuildVanity abstract method

  1. @POST.new('/admin/guilds/update-vanity')
Future<GuildUpdateResponse> updateGuildVanity({
  1. @Body.new() required UpdateGuildVanityRequest body,
})

Update guild vanity.

Updates a guild vanity URL slug. Sets custom short URL and prevents duplicate slugs. Logged to audit log. Requires GUILD_UPDATE_VANITY permission.

body - Name not received - field will be skipped.

Implementation

@POST('/admin/guilds/update-vanity')
Future<GuildUpdateResponse> updateGuildVanity({
  @Body() required UpdateGuildVanityRequest body,
});