can anyone help me how to fix expected closing ")" after grouping expression

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

this is the code that is not working

var response = await(self, “request_completed”) [3]

:bust_in_silhouette: Reply From: godot_dev_

The error message is self explanatory. A closing ‘)’ is expected, but you didn’t provide it; that is, you missing a closing bracket. Every opening bracket should also have a matching closing bracket. I am not too familiar with godot 4, but according to the documentation, await either takes a signal or coroutine. Assuming your request_completed is an array that holds a signal or a coroutine (given your square bracket usage), then I beleive changing your code to the below should fix the issue:

var response = await self.request_completed[3]
1 Like