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 }); } }