From 771bede60ff6c8e6dd634b8240c032c0414cee97 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" <48434875+JonnyBro@users.noreply.github.com> Date: Sat, 25 May 2024 17:33:02 +0500 Subject: [PATCH] Update courses.js --- commands/beatrun.ru/courses.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/beatrun.ru/courses.js b/commands/beatrun.ru/courses.js index 93825220..1fefc44d 100644 --- a/commands/beatrun.ru/courses.js +++ b/commands/beatrun.ru/courses.js @@ -43,14 +43,14 @@ class Courses extends BaseCommand { const code = interaction.options.getString("code"); - const response = await fetch(`https://courses.beatrun.ru/api/info/${code}`).then(res => res.json()); + const response = await fetch(`https://courses.jonnybro.ru/api/info/${code}`).then(res => res.json()); const course = response.data; if (response.res === 401) return interaction.error("beatrun.ru/courses:NOT_FOUND", null, { ephemeral: true, edit: true }); const embed = client.embed({ title: code, - description: `[${interaction.translate("beatrun.ru/courses:DOWNLOAD")}](https://courses.beatrun.ru/${course.path})`, + description: `[${interaction.translate("beatrun.ru/courses:DOWNLOAD")}](https://courses.jonnybro.ru/${course.path})`, thumbnail: course.mapimg, url: `https://courses.beatrun.ru/?search=${code}`, fields: [