Other players

Chat, party and squad

Chat, your party and squad, contacts, mail, votes and PvP.

Party and squad members and contacts are found by account name (Name.1234), display name or uuid. Functions that act on one return false when nobody matches.

A user is {uuid, account_name, display_name, achievement_points, level, profession, mastery_level, map_id, server_id, online_status, invite_status, sharing_participation}.

chat

Sends a message to a channel, such as chat.SQUAD.
Whispers to a player.
chat.channels()integer[]?
The channels you're in.

Messages arrive in the on_message callback.

Channels, as chat.LOCAL and so on
LOCALMAPPARTYSQUADTEAMGUILDGUILD1GUILD2GUILD3GUILD4GUILD5GUILD6GUILD_UNKNOWNWHISPEREMOTELFGCUSTOMCHATTERDEVFEEDBACKDEPRECATED_SUBGROUPINFOINFO_BUCKETINFO_CHARACTERINFO_CONTACTSINFO_GUILDINFO_INVENTORYINFO_PVEINFO_PVPINFO_SQUADINFO_WVWCOMBATCOMBAT_IN_BUFFCOMBAT_IN_HEALCOMBAT_IN_INTERRUPTCOMBAT_IN_MITIGATIONCOMBAT_IN_STRIKECOMBAT_OUT_BUFFCOMBAT_OUT_HEALCOMBAT_OUT_INTERRUPTCOMBAT_OUT_MITIGATIONCOMBAT_OUT_STRIKE

party

Whether you're in a party.
The party's members, as users.
Invites a player.
Joins a player's party.
Accepts a member's request or invite.
Declines it.
Kicks a member.
Joins a member's instance.
Leaves the party.

squad

Whether you're in a squad.
The squad's members: {user, account_name, pending, ready_state, subgroup}.
Starts a squad.
Joins a player's squad.
Invites a player.
Kicks a member.
Leaves the squad.
Starts a ready check.
Sets the squad message.
Moves a member to a subgroup.
Turns participation sharing on or off for a member.
Whether the squad has a commander tag.
Whether it's in raid mode.
Turns raid mode on or off.
Whether the squad is private.
Makes it private or public.
Who can join.
Sets who can join.
Whether members can invite.
Locks or unlocks every subgroup.

contacts

You, as a user.
Your friends.
Players you blocked.
Removes a friend.
Blocks a player.
Unblocks a player.

mail

Your mail: {parcel_id, sender, title, body, is_from_player, coins, items}, each item {slot, id, item_type, rarity, name, quantity, def}.
Sends mail, with coins (in copper) and a list of Items.
Takes a mail's coins.
Takes one of its items.
Deletes it.

vote

Votes in progress (such as kick votes), each a list of {player_id, value}.
Votes vote.ACCEPT or vote.DECLINE on the first vote, or the index-th.
Vote values
ACCEPTDECLINEACCEPTED

pvp

The match state: one of the constants below.
Players in the match: {flags, ready, uuid, agent}.
Marks you ready, or not.
Leaves the match.
pvp.modes()integer[]?
The lobby's game modes.
Queues for a mode.
The match found: {players, map_guids, selected_map_guid}, each player {accepted, user}.
Accepts the match.
Votes for a map.
Leaves the roster.
Match states
WAITING_FOR_PLAYERSABOUT_TO_BEGINCOUNTDOWNONGOINGFINISHED