fix: wrong reward channel

This commit is contained in:
Pihkaal
2025-06-28 15:42:42 +02:00
parent 23e34dec77
commit 05f792303b
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ const schema = z.object({
DISCORD_BOT_TOKEN: z.string(), DISCORD_BOT_TOKEN: z.string(),
DISCORD_MENTION: z.string(), DISCORD_MENTION: z.string(),
DISCORD_REWARDS_GIVER: z.string(), DISCORD_REWARDS_GIVER: z.string(),
DISCORD_REWARDS_CHANNEL: z.string(),
DISCORD_ADMIN_MENTION: z.string(), DISCORD_ADMIN_MENTION: z.string(),
DISCORD_ADMIN_CHANNEL: z.string(), DISCORD_ADMIN_CHANNEL: z.string(),
WOV_API_KEY: z.string(), WOV_API_KEY: z.string(),

View File

@@ -107,7 +107,9 @@ const askForGrinders = async (quest: QuestResult) => {
.map((x) => x.trim()) .map((x) => x.trim())
.filter(Boolean); .filter(Boolean);
const embed = makeResultEmbed(quest, [...env.QUEST_EXCLUDE, ...exclude]); const embed = makeResultEmbed(quest, [...env.QUEST_EXCLUDE, ...exclude]);
const rewardChannel = await client.channels.fetch(env.DISCORD_ADMIN_CHANNEL); const rewardChannel = await client.channels.fetch(
env.DISCORD_REWARDS_CHANNEL,
);
if (rewardChannel && rewardChannel.type === ChannelType.GuildText) { if (rewardChannel && rewardChannel.type === ChannelType.GuildText) {
await rewardChannel.send(embed); await rewardChannel.send(embed);
} else { } else {