npm install djs-vanity
const { setVanity } = require('djs-vanity')
client.on('interactionCreate', async interaction => {
if (!interaction.isCommand()) return;
if (interaction.commandName === 'vanity') {
await setVanity({ client: client, guild: interaction.guild.id, code: "vanity code" })
}
});