mirror of
https://github.com/Art-Portal/April.git
synced 2025-01-13 15:03:40 +01:00
Corrected a forgotten line
Added ability to remove an artist's emoji when command untaken
This commit is contained in:
parent
8a41e684a0
commit
651fbaa6f9
@ -173,7 +173,8 @@ module.exports = {
|
|||||||
.setEmoji("🔒")
|
.setEmoji("🔒")
|
||||||
.setCustomId(`ticket_close-${interaction.customId.replace("ticket_","").split("-")[2]}`),
|
.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: [
|
await interaction.followUp({ embeds: [
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setAuthor({ name: interaction.user.tag, iconURL: interaction.user.avatarURL() })
|
.setAuthor({ name: interaction.user.tag, iconURL: interaction.user.avatarURL() })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user