I asked my friend what type of cake she liked
Why do you want to know what type of cake she likes?
Because I wanted it to be a special treat for her.
It is very considerate to buy the cake that your friend likes instead of what you want. Your friend will feel like you care about them and that will make them happy.
I was trying to poison her, wat do u expect.
If you bought your friend a cake in an attempt to poison her, that's terrible behavior. You shouldn't make other people sick or injure them, especially when you disguise it as a kind gesture.