Skip to content

Commit

Permalink
Update Redeem.js
Browse files Browse the repository at this point in the history
Fix Redeem command
  • Loading branch information
adh319 authored Oct 10, 2023
1 parent 7ef4db5 commit 34d2870
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/commands/Slash/Utility/Redeem.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = {

const newUser = await user.save();
client.premium.set(interaction.user.id, newUser);
await code.delete();
await code.deleteOne();
}

if (code.plan === "daily") {
Expand All @@ -70,7 +70,7 @@ module.exports = {

const newUser = await user.save();
client.premium.set(interaction.user.id, newUser);
await code.delete();
await code.deleteOne();
}

if (code.plan === "weekly") {
Expand All @@ -82,7 +82,7 @@ module.exports = {

const newUser = await user.save();
client.premium.set(interaction.user.id, newUser);
await code.delete();
await code.deleteOne();
}

if (code.plan === "monthly") {
Expand All @@ -94,7 +94,7 @@ module.exports = {

const newUser = await user.save();
client.premium.set(interaction.user.id, newUser);
await code.delete();
await code.deleteOne();
}

if (code.plan === "yearly") {
Expand All @@ -106,7 +106,7 @@ module.exports = {

const newUser = await user.save();
client.premium.set(interaction.user.id, newUser);
await code.delete();
await code.deleteOne();
}

if (code.plan === "lifetime") {
Expand All @@ -118,7 +118,7 @@ module.exports = {

const newUser = await user.save();
client.premium.set(interaction.user.id, newUser);
await code.delete();
await code.deleteOne();
}

const expires = moment(user.premium.expiresAt).format("dddd, MMMM Do YYYY HH:mm:ss");
Expand Down Expand Up @@ -153,4 +153,4 @@ module.exports = {
return interaction.editReply({ embeds: [embed] });
}
},
};
};

0 comments on commit 34d2870

Please sign in to comment.