diff --git a/app/Models/Emote.php b/app/Models/Emote.php index 2faa719..e5d3283 100644 --- a/app/Models/Emote.php +++ b/app/Models/Emote.php @@ -103,7 +103,7 @@ class Emote extends Model ->decrement('usage_count'); } - UserGuildStat::where(['user_id' => $user->discord_id, 'guild_id' => $guildId]) + UserGuildStat::where(['emote_id' => $this->emote_id, 'user_id' => $user->discord_id, 'guild_id' => $guildId]) ->decrement('usage_count'); } }