Update add command to still use the total moons
This commit is contained in:
parent
476ff7cfc4
commit
10e51c8e90
1 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,9 @@ export default async function AddMoon(interaction: CommandInteraction) {
|
|||
|
||||
await moonSetting.Save(UserSetting, moonSetting);
|
||||
|
||||
const moon = new Moon(moonCount + 1, description, interaction.user.id);
|
||||
const allMoons = await Moon.FetchMoonCountByUserId(interaction.user.id);
|
||||
|
||||
const moon = new Moon(allMoons + 1, description, interaction.user.id);
|
||||
|
||||
await moon.Save(Moon, moon);
|
||||
|
||||
|
|
Loading…
Reference in a new issue