From 3bcbad573e32b2850c31263b7328724e2effd6fb Mon Sep 17 00:00:00 2001 From: Nix Krystik Date: Wed, 26 Aug 2026 15:44:10 +0800 Subject: [PATCH] more bug fixes. --- src/commands/profile.ts | 1 - src/events/message/messageReactionRemove.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/profile.ts b/src/commands/profile.ts index 9a42c83..5296097 100644 --- a/src/commands/profile.ts +++ b/src/commands/profile.ts @@ -14,7 +14,6 @@ class ProfileCommand extends Command { async handleCommand(context: CommandClient, interaction: CommandInteraction) { await interaction.defer(); - const _user = await getUser(interaction.user.id); // Check if user has been blacklisted. diff --git a/src/events/message/messageReactionRemove.ts b/src/events/message/messageReactionRemove.ts index 781a97c..656748b 100644 --- a/src/events/message/messageReactionRemove.ts +++ b/src/events/message/messageReactionRemove.ts @@ -15,6 +15,7 @@ class MessageReactionRemoveEvent extends Event { if (_user.flags.blacklisted || !_user.settings.participating) return; // Update Statistics. + if (_user.statistics.pets >= 0) return; await updateUserStatistics(userId, { pets: _user.statistics.pets - 1 }); } }