fix: ticket closing

This commit is contained in:
Isaac
2023-01-30 15:56:41 +00:00
parent a60c998605
commit d1c3620fcd
15 changed files with 213 additions and 100 deletions

View File

@@ -91,10 +91,10 @@ module.exports = class MoveSlashCommand extends SlashCommand {
$oldCategory.total--;
$oldCategory[ticket.createdById]--;
if (!$newCategory.total) $newCategory.total = 0;
$newCategory.total ||= 0;
$newCategory.total++;
if (!$newCategory[ticket.createdById]) $newCategory[ticket.createdById] = 0;
$newCategory[ticket.createdById] ||= 0;
$newCategory[ticket.createdById]++;
await interaction.channel.setParent(discordCategory, {