mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 07:43:08 +02:00
fix: send image in embed (closes #441)
This commit is contained in:
parent
3b5e58c1fe
commit
48902f8131
@ -420,8 +420,6 @@ module.exports = class TicketManager {
|
||||
topic: `${creator}${topic?.length > 0 ? ` | ${topic}` : ''}`,
|
||||
});
|
||||
|
||||
if (category.image) await channel.send(category.image);
|
||||
|
||||
const needsStats = /{+\s?(avgResponseTime|avgResolutionTime)\s?}+/i.test(category.openingMessage);
|
||||
const statsCacheKey = `cache/category-stats/${categoryId}`;
|
||||
let stats = await this.client.keyv.get(statsCacheKey);
|
||||
@ -460,6 +458,8 @@ module.exports = class TicketManager {
|
||||
),
|
||||
];
|
||||
|
||||
if (category.image) embeds[0].setImage(category.image);
|
||||
|
||||
if (answers) {
|
||||
embeds.push(
|
||||
new ExtendedEmbedBuilder()
|
||||
|
Loading…
Reference in New Issue
Block a user