mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
fix remindme fr
This commit is contained in:
parent
eb84a3e664
commit
658499b47e
4 changed files with 5 additions and 5 deletions
|
@ -73,13 +73,13 @@ class Remindme extends BaseCommand {
|
|||
data.userData.reminds.push(rData);
|
||||
|
||||
data.userData.markModified("reminds");
|
||||
data.userData.save();
|
||||
await data.userData.save();
|
||||
|
||||
client.databaseCache.usersReminds.set(interaction.user.id, data.userData);
|
||||
|
||||
interaction.success("general/remindme:SAVED", {
|
||||
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 });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ class Clearwarns extends BaseCommand {
|
|||
memberData.sanctions = [];
|
||||
|
||||
memberData.markModified("sanctions");
|
||||
memberData.save();
|
||||
await memberData.save();
|
||||
|
||||
interaction.success("moderation/clearwarns:SUCCESS", {
|
||||
user: member.toString(),
|
||||
|
|
|
@ -179,7 +179,7 @@ class Warn extends BaseCommand {
|
|||
memberData.sanctions.push(caseInfo);
|
||||
|
||||
memberData.markModified("sanctions");
|
||||
memberData.save();
|
||||
await memberData.save();
|
||||
|
||||
if (data.guildData.plugins.modlogs) {
|
||||
const channel = interaction.guild.channels.cache.get(data.guildData.plugins.modlogs);
|
||||
|
|
|
@ -46,7 +46,7 @@ class CreateTicketEmbed extends BaseCommand {
|
|||
guildData.plugins.tickets.count++;
|
||||
|
||||
guildData.markModified("plugins.tickets");
|
||||
guildData.save();
|
||||
await guildData.save();
|
||||
|
||||
const channel = await interaction.guild.channels.create({
|
||||
name: `${interaction.user.username}-support-${guildData.plugins.tickets.count}`,
|
||||
|
|
Loading…
Reference in a new issue