fix(discord-bot): query active quest of latest in quete command
All checks were successful
Build and Push Docker Image / build (push) Successful in 31s

This commit is contained in:
2026-04-21 22:57:00 +02:00
parent b8a2ecc0df
commit 324c392e1b
2 changed files with 14 additions and 2 deletions

View File

@@ -1,9 +1,9 @@
import { EmbedBuilder } from "discord.js";
import type { Command } from "~/commands";
import { getLatestQuest } from "~/services/wov";
import { getActiveQuest, getLatestQuest } from "~/services/wov";
export const queteCommand: Command = async (message) => {
const quest = await getLatestQuest();
const quest = (await getActiveQuest()) ?? (await getLatestQuest());
const color = parseInt(quest.quest.promoImagePrimaryColor.substring(1), 16);
await message.reply({