diff --git a/src/classes/Commands/sub-classes/Manager.ts b/src/classes/Commands/sub-classes/Manager.ts index 70883fb36..a302236ce 100644 --- a/src/classes/Commands/sub-classes/Manager.ts +++ b/src/classes/Commands/sub-classes/Manager.ts @@ -434,7 +434,11 @@ export default class ManagerCommands { return this.bot.sendMessage(steamID, `❌ Error getting friendlist: ${JSON.stringify(err)}`); } - const friendsToRemove = Object.keys(friendlist).filter(steamid => !friendsToKeep.includes(steamid)); + const friendsToRemove = Object.keys(friendlist).filter( + // Make sure only friends, not overall + friendID => !friendsToKeep.includes(friendID) && friendlist[friendID] === EFriendRelationship.Friend + ); + if (friendsToRemove.length === 0) { return this.bot.sendMessage(steamID, `❌ I don't have any friends to remove.`); }