is it discouraged to fast when you have guests coming over?
If it's the custom to eat with them, or they're coming expecting to eat with you, then you should break your voluntary fast to eat with them. The Prophet - peace be upon him, said: Whoever believes in God and the hereafter, let them honour their guests (i.e. serve them generously)." narrated by Bukhari and Muslim