Merge pull request #5 from Art-Portal/v4.5.1

Corrected a forgotten line
This commit is contained in:
Ninjdai 2022-11-13 17:58:32 +01:00 committed by GitHub
commit d8268d4025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,8 @@ module.exports = {
.setEmoji("🔒")
.setCustomId(`ticket_close-${interaction.customId.replace("ticket_","").split("-")[2]}`),
]);
await interaction.channel.setName(interaction.channel.name.replace("🟢",""));
const artistUntake = await client.database.artists.findOne({ where: { name: interaction.user.id } });
await interaction.channel.setName(interaction.channel.name.replace(artistUntake ? artistUntake.emoji :"🟢",""));
await interaction.followUp({ embeds: [
new EmbedBuilder()
.setAuthor({ name: interaction.user.tag, iconURL: interaction.user.avatarURL() })