This commit is contained in:
parent
974e298214
commit
43751e5b02
5 changed files with 91 additions and 42 deletions
|
@ -24,11 +24,7 @@ export default async function AddMoon(interaction: CommandInteraction) {
|
|||
|
||||
const allMoons = await Moon.FetchMoonCountByUserId(interaction.user.id);
|
||||
|
||||
let moonNumber = allMoons + 1;
|
||||
|
||||
if (allMoons < moonCount) {
|
||||
moonNumber = moonCount + 1;
|
||||
}
|
||||
const moonNumber = allMoons + 1;
|
||||
|
||||
const moon = new Moon(moonNumber, description, interaction.user.id);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue