From 051a03354579a64cb6d6e61b3d05319c39557d65 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 17 Oct 2023 16:54:26 +0500 Subject: [PATCH] fr fr --- commands/Administration/selectroles.js | 2 +- commands/General/remindme.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Administration/selectroles.js b/commands/Administration/selectroles.js index 13dd8a24..cbaac01c 100644 --- a/commands/Administration/selectroles.js +++ b/commands/Administration/selectroles.js @@ -149,7 +149,7 @@ class Selectroles extends BaseCommand { const menu = row.components[0]; if (menu) { for (const o of menu.options) { - if (o.value === option[0].value) return interaction.error("administration/selectroles:ALREADY_IN_MENU"); + if (o.value === option[0].value) return interaction.error("administration/selectroles:ALREADY_IN_MENU", null, { edit: true }); } row = ActionRowBuilder.from(row).setComponents( diff --git a/commands/General/remindme.js b/commands/General/remindme.js index cd39e89a..82013d12 100644 --- a/commands/General/remindme.js +++ b/commands/General/remindme.js @@ -79,7 +79,7 @@ class Remindme extends BaseCommand { interaction.success("general/remindme:SAVED", { message, - time: moment(rData.sendAt).locale(data.guildData.language || "en-US").format("dddd, Do MMMM YYYY, HH:mm:ss"), + time: moment(rData.sendAt).locale(data?.guildData.language || "en-US").format("dddd, Do MMMM YYYY, HH:mm:ss"), }, { edit: true }); } }