fix remindme fr

This commit is contained in:
Jonny_Bro (Nikita) 2023-10-17 08:33:41 +05:00
parent eb84a3e664
commit 658499b47e
4 changed files with 5 additions and 5 deletions

View file

@ -73,13 +73,13 @@ class Remindme extends BaseCommand {
data.userData.reminds.push(rData); data.userData.reminds.push(rData);
data.userData.markModified("reminds"); data.userData.markModified("reminds");
data.userData.save(); await data.userData.save();
client.databaseCache.usersReminds.set(interaction.user.id, data.userData); client.databaseCache.usersReminds.set(interaction.user.id, data.userData);
interaction.success("general/remindme:SAVED", { interaction.success("general/remindme:SAVED", {
message, message,
time: moment(rData.sendAt).locale(data.guildData.language).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 }); }, { edit: true });
} }
} }

View file

@ -56,7 +56,7 @@ class Clearwarns extends BaseCommand {
memberData.sanctions = []; memberData.sanctions = [];
memberData.markModified("sanctions"); memberData.markModified("sanctions");
memberData.save(); await memberData.save();
interaction.success("moderation/clearwarns:SUCCESS", { interaction.success("moderation/clearwarns:SUCCESS", {
user: member.toString(), user: member.toString(),

View file

@ -179,7 +179,7 @@ class Warn extends BaseCommand {
memberData.sanctions.push(caseInfo); memberData.sanctions.push(caseInfo);
memberData.markModified("sanctions"); memberData.markModified("sanctions");
memberData.save(); await memberData.save();
if (data.guildData.plugins.modlogs) { if (data.guildData.plugins.modlogs) {
const channel = interaction.guild.channels.cache.get(data.guildData.plugins.modlogs); const channel = interaction.guild.channels.cache.get(data.guildData.plugins.modlogs);

View file

@ -46,7 +46,7 @@ class CreateTicketEmbed extends BaseCommand {
guildData.plugins.tickets.count++; guildData.plugins.tickets.count++;
guildData.markModified("plugins.tickets"); guildData.markModified("plugins.tickets");
guildData.save(); await guildData.save();
const channel = await interaction.guild.channels.create({ const channel = await interaction.guild.channels.create({
name: `${interaction.user.username}-support-${guildData.plugins.tickets.count}`, name: `${interaction.user.username}-support-${guildData.plugins.tickets.count}`,