Badgers are consumers.
Why
They do not make their own food: Unlike plants, which use photosynthesis, badgers must eat other organisms to survive.
They eat a variety of things: Badgers are omnivores, consuming insects, worms, small mammals, fruits, and roots.
Therefore, badgers fit the definition of a consumer in the food chain.