updateGuildVanityUrl abstract method
- @PATCH.new('/guilds/{guild_id}/vanity-url')
- @Path.new('guild_id') required SnowflakeType guildId,
- @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,
});