diff --git "a/src/api/routes/guilds/\043guild_id/vanity-url.ts" "b/src/api/routes/guilds/\043guild_id/vanity-url.ts" index d271c97..a64ae2c 100644 --- "a/src/api/routes/guilds/\043guild_id/vanity-url.ts" +++ "b/src/api/routes/guilds/\043guild_id/vanity-url.ts" @@ -107,6 +107,17 @@ where: { guild_id, type: ChannelType.GUILD_TEXT }, }); + if (!guild.features.includes("ALIASABLE_NAMES")) { + await Invite.update( + { guild_id }, + { + code: code, + }, + ); + + return res.json({ code }); + } + await Invite.create({ vanity_url: true, code: code,