Functions Reference
Godot 4 · GDScript · Groups & clans
get_group_info
Loads a group's details and its member list.
Asynchronous (result via signal)
Signature
get_group_info(group_id: String = "") -> voidWhat it does
POSTs /groups/info. group = {} when the caller has no group or it is not found. members = Array of { player_key, player_name, role, joined_at }.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| group_id | String | "" | Group to inspect. Omit (or pass "") to fetch the caller's own group. |
How to call it
Connect group_info_loaded first, then call get_group_info(). Always check group.is_empty() before reading fields.
Result signal: group_info_loaded(group: Dictionary, members: Array)
Example
Gamdato.group_info_loaded.connect(_on_group_info)
Gamdato.get_group_info() # your own group
func _on_group_info(group: Dictionary, members: Array) -> void:
if group.is_empty():
return
for m in members:
print("%s - %s" % [m.player_name, m.role])Use cases
- Render a clan's roster with each member's role.
- Show a group's profile before the player decides to join.