mirror of
https://github.com/nx-bat/pet-the-pond.git
synced 2026-09-22 10:29:11 -04:00
more bug fixes.
This commit is contained in:
@@ -14,7 +14,6 @@ class ProfileCommand extends Command<CommandClient> {
|
|||||||
|
|
||||||
async handleCommand(context: CommandClient<any, any>, interaction: CommandInteraction) {
|
async handleCommand(context: CommandClient<any, any>, interaction: CommandInteraction) {
|
||||||
await interaction.defer();
|
await interaction.defer();
|
||||||
|
|
||||||
const _user = await getUser(interaction.user.id);
|
const _user = await getUser(interaction.user.id);
|
||||||
|
|
||||||
// Check if user has been blacklisted.
|
// Check if user has been blacklisted.
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ class MessageReactionRemoveEvent extends Event<CommandClient> {
|
|||||||
if (_user.flags.blacklisted || !_user.settings.participating) return;
|
if (_user.flags.blacklisted || !_user.settings.participating) return;
|
||||||
|
|
||||||
// Update Statistics.
|
// Update Statistics.
|
||||||
|
if (_user.statistics.pets >= 0) return;
|
||||||
await updateUserStatistics(userId, { pets: _user.statistics.pets - 1 });
|
await updateUserStatistics(userId, { pets: _user.statistics.pets - 1 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user