I would say yes you have to bring a gift if they are paying for the cake. The cake is not being considered your gift. Even if you decided to give them a 10% discount and no delivery charge.
Did you decide to give them these discounts before or after you were invited as a guest?