How do I define .text?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Creedd910

Im trying to use the text from a Line Edit, but the .text Im using from a tutorial isnt working. Any ideas?
Code:
func _on_join_button_pressed():
main_menu.hide()

enet_peer.create_client($CanvasLayer/MainMenu/MarginContainer/VBoxContainer/LineEdit.text(), PORT)
multiplayer.multiplayer_peer = enet_peer
:bust_in_silhouette: Reply From: Wakatta

Its actually

LineEdit.text

or

LineEdit.get_text()