And when We said to the angels: Make obeisance to Adam they did obeisance, but Iblis (did it not). He refused and he was proud, and he was one of the unbelievers. (2:34)
In the above verse, Allah asks the Angels to bow before Adam. As far as I know, Iblees was a jinn. Then why did Allah say "he refused", when the order was not to him (Shaitan)