Fix user lookup by ID
When calling `get_users` with an array of ids, the function attempts to pop the first id from the `names` array rather than the `ids` array. This commit fixes that issue.
This commit is contained in:
parent
3ef9a2053c
commit
47be60407b
@ -89,7 +89,7 @@ func get_users(names : Array[String], ids : Array[String]) -> Dictionary:
|
||||
if (params.length() > 1):
|
||||
params += "&"
|
||||
if (ids.size() > 0):
|
||||
params += "id=%s" % names.pop_back()
|
||||
params += "id=%s" % ids.pop_back()
|
||||
while(ids.size() > 0):
|
||||
params += "&id=%s" % ids.pop_back()
|
||||
var response = await(request(HTTPClient.METHOD_GET,"/helix/users/%s" % params, headers))
|
||||
|
Loading…
x
Reference in New Issue
Block a user