Skip to content

Commit e2e446a

Browse files
author
xyzjesper
committed
Fixed Vanity Authors from Vanity Embed
1 parent 2923fac commit e2e446a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/modules/vanity/modals/vanity-create-modal.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@ export default {
6161
Title: interaction.guild.name ?? "N/A",
6262
Description: interaction.guild.description ?? "N/A",
6363
Color: "#282b30",
64+
Author: {
65+
connectOrCreate: {
66+
where: {
67+
VanityEmbedsId: uuid
68+
},
69+
create: {
70+
Name: interaction.guild.name,
71+
URL: `https://dchat.link/${query}`,
72+
IconURL: interaction.guild.iconURL()
73+
}
74+
}
75+
}
6476
}
6577
}
6678
},

0 commit comments

Comments
 (0)