Go to the widget shown below, select the guild invite button and click the On Clicked + shown in the image below.

Add the highlighted nodes shown in the image below, location at the top of the image.