updateGuildVanityUrl abstract method

  1. @PATCH.new('/guilds/{guild_id}/vanity-url')
Future<GuildVanityUrlUpdateResponse> updateGuildVanityUrl({
  1. @Path.new('guild_id') required SnowflakeType guildId,
  2. @Body.new() required GuildVanityUrlUpdateRequest body,
})

Update guild vanity URL.

Requires manage_guild permission. Sets or removes a custom invite code.

guildId - The ID of the guild.

body - Name not received - field will be skipped.

Implementation

@PATCH('/guilds/{guild_id}/vanity-url')
Future<GuildVanityUrlUpdateResponse> updateGuildVanityUrl({
  @Path('guild_id') required SnowflakeType guildId,
  @Body() required GuildVanityUrlUpdateRequest body,
});