mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-06 02:01:26 +03:00
fix: ticket closing
This commit is contained in:
@@ -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, {
|
||||
|
Reference in New Issue
Block a user