This class corresponds to a clan within the game and provides information related to the specific clan.
DateTime createdAt { get; }
This is when the clan was created.
long id { get; }
This is the unique ID of the clan.
long masterPlayerID { get; }
This is the ID of the clan master player.
long[] memberIDs { get; }
Gets the IDs of all members of the clan in array format.
Table customData { get; set; }
This is the clan's custom data.
string name { get; }
The unique name of the clan.
string GetMemberName(long id)
Get the name of the user whose ID is id among the clan members.
void Invalidate()
Update clan information.
local myClan = unit.player.clan; print(myClan.createdAt.ToLocalTime());
Last updated 1 year ago
local myClan = unit.player.clan; print(myClan.id);
local memberIDs = unit.player.clan.memberIDs; for i = 0, #memberIDs do print(memberIDs[i]); end
local myClan = unit.player.clan; print(myClan.name);