World of Warcraft Forever API · C_PartyInfo.md, for your AI
C_PartyInfo
53 functions, 32 events, 1 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_PartyInfo.AllowedToDoPartyConversion
allowed = C_PartyInfo.AllowedToDoPartyConversion(toRaid)
Arguments
toRaid | bool |
|---|
Returns
allowed | bool |
|---|
C_PartyInfo.CanFormCrossFactionParties
canFormCrossFactionParties = C_PartyInfo.CanFormCrossFactionParties()
Returns
canFormCrossFactionParties | bool |
|---|
C_PartyInfo.CanInvite
allowedToInvite = C_PartyInfo.CanInvite()
Returns
allowedToInvite | bool |
|---|
C_PartyInfo.CanStartInstanceAbandonVote
canStart = C_PartyInfo.CanStartInstanceAbandonVote()
Returns whether it's possible to start a vote at this time
Returns
canStart | bool |
|---|
C_PartyInfo.ChallengeModeRestrictionsActive
restrictionsActive = C_PartyInfo.ChallengeModeRestrictionsActive()
Returns
restrictionsActive | bool |
|---|
C_PartyInfo.ConfirmConvertToRaid
C_PartyInfo.ConfirmConvertToRaid()
Immediately convert to raid with no regard for potentially destructive actions.
C_PartyInfo.ConfirmInviteTravelPass
C_PartyInfo.ConfirmInviteTravelPass(targetName, targetGUID)
Arguments
targetName | cstring | |
|---|---|---|
targetGUID | WOWGUID |
C_PartyInfo.ConfirmInviteUnit
C_PartyInfo.ConfirmInviteUnit(targetName)
Immediately invites the named unit to a party, with no regard for potentially destructive actions.
Arguments
targetName | cstring |
|---|
C_PartyInfo.ConfirmLeaveParty
C_PartyInfo.ConfirmLeaveParty([category])
Immediately leave the party with no regard for potentially destructive actions
Arguments
category | luaIndex may be nil |
|---|
C_PartyInfo.ConfirmReadyCheck
C_PartyInfo.ConfirmReadyCheck(isReady)
Arguments
isReady | bool |
|---|
C_PartyInfo.ConfirmRequestInviteFromUnit
C_PartyInfo.ConfirmRequestInviteFromUnit(targetName, [tank], [healer], [dps])
Immediately request an invite into the target party, this is the confirmation function to call after RequestInviteFromUnit, or if you would like to skip the confirmation process.
Arguments
targetName | cstring | |
|---|---|---|
tank | bool may be nil | |
healer | bool may be nil | |
dps | bool may be nil |
C_PartyInfo.ConvertToParty
C_PartyInfo.ConvertToParty()
C_PartyInfo.ConvertToRaid
C_PartyInfo.ConvertToRaid()
Usually this will convert to raid immediately. In some cases (e.g. PartySync) the user will be prompted to confirm converting to raid, because it's potentially destructive.
C_PartyInfo.DelveTeleportOut
C_PartyInfo.DelveTeleportOut()
C_PartyInfo.DemoteAssistant
C_PartyInfo.DemoteAssistant(name, [exactNameMatch])
Arguments
name | cstring | |
|---|---|---|
exactNameMatch | bool may be nil |
C_PartyInfo.DoCountdown
success = C_PartyInfo.DoCountdown(seconds)
Arguments
seconds | number |
|---|
Returns
success | bool |
|---|
C_PartyInfo.DoReadyCheck
C_PartyInfo.DoReadyCheck()
C_PartyInfo.GetActiveCategories
categories = C_PartyInfo.GetActiveCategories()
May return nothing.
Returns
categories | number[] |
|---|
C_PartyInfo.GetAvailableLootMethods
methods = C_PartyInfo.GetAvailableLootMethods()
Returns
methods | LootMethod[] |
|---|
C_PartyInfo.GetInstanceAbandonShutdownTime
durationSeconds, timeLeftSeconds = C_PartyInfo.GetInstanceAbandonShutdownTime()
Returns the total duration of the shutdown time after a vote passes and how much time is left before it ends
Returns
durationSeconds | number default 0 | |
|---|---|---|
timeLeftSeconds | number default 0 |
C_PartyInfo.GetInstanceAbandonVoteCooldownTime
durationSeconds, timeLeftSeconds = C_PartyInfo.GetInstanceAbandonVoteCooldownTime()
Returns the total duration of the abandon vote cooldown and how much time is left before it ends
May return nothing.
Returns
durationSeconds | number default 0 | |
|---|---|---|
timeLeftSeconds | number default 0 |
C_PartyInfo.GetInstanceAbandonVoteRequirements
votesRequired, keystoneOwnerVoteWeight = C_PartyInfo.GetInstanceAbandonVoteRequirements()
Returns values controlling the vote
Returns
votesRequired | number default 0 | |
|---|---|---|
keystoneOwnerVoteWeight | number default 0 |
C_PartyInfo.GetInstanceAbandonVoteResponse
response = C_PartyInfo.GetInstanceAbandonVoteResponse()
Returns how the player voted, nil for not yet
Returns
response | bool may be nil |
|---|
C_PartyInfo.GetInstanceAbandonVoteTime
durationSeconds, timeLeftSeconds = C_PartyInfo.GetInstanceAbandonVoteTime()
Returns the total duration of the vote and how much time is left before it ends
Returns
durationSeconds | number default 0 | |
|---|---|---|
timeLeftSeconds | number default 0 |
C_PartyInfo.GetInviteConfirmationInvalidQueues
invalidQueues = C_PartyInfo.GetInviteConfirmationInvalidQueues(inviteGUID)
May return nothing.
Arguments
inviteGUID | WOWGUID |
|---|
Returns
invalidQueues | QueueSpecificInfo[] |
|---|
C_PartyInfo.GetInviteReferralInfo
outReferredByGuid, outReferredByName, outRelationType, outIsQuickJoin, outClubId = C_PartyInfo.GetInviteReferralInfo(inviteGUID)
May return nothing.
Arguments
inviteGUID | WOWGUID |
|---|
Returns
outReferredByGuid | WOWGUID | |
|---|---|---|
outReferredByName | cstring | |
outRelationType | PartyRequestJoinRelation | |
outIsQuickJoin | bool | |
outClubId | ClubId |
C_PartyInfo.GetLootMethod
method, masterLootPartyID, masterLooterRaidID = C_PartyInfo.GetLootMethod()
Returns
method | LootMethod | |
|---|---|---|
masterLootPartyID | number may be nil | |
masterLooterRaidID | number may be nil |
C_PartyInfo.GetLootMethodStyle
methodStyle = C_PartyInfo.GetLootMethodStyle()
Returns
methodStyle | LootMethodStyles |
|---|
C_PartyInfo.GetMinItemLevel
minItemLevel, playerNameWithLowestItemLevel = C_PartyInfo.GetMinItemLevel(avgItemLevelCategory)
Arguments
avgItemLevelCategory | AvgItemLevelCategories | The active party is always used |
|---|
Returns
minItemLevel | number | |
|---|---|---|
playerNameWithLowestItemLevel | cstring |
C_PartyInfo.GetMinLevel
minLevel = C_PartyInfo.GetMinLevel([category])
Arguments
category | luaIndex may be nil | If not provided, the active party is used |
|---|
Returns
minLevel | number |
|---|
C_PartyInfo.GetNumInstanceAbandonGroupVoteResponses
count = C_PartyInfo.GetNumInstanceAbandonGroupVoteResponses()
Returns how many players have voted either way
Returns
count | number |
|---|
C_PartyInfo.GetRestrictPings
restrictTo = C_PartyInfo.GetRestrictPings()
Returns
restrictTo | RestrictPingsTo |
|---|
C_PartyInfo.InviteUnit
C_PartyInfo.InviteUnit(targetName)
Attempt to invite the named unit to a party, requires confirmation in some cases (e.g. the party will convert to a raid, or if there is a party sync in progress).
Arguments
targetName | cstring |
|---|
C_PartyInfo.IsChallengeModeActive
active = C_PartyInfo.IsChallengeModeActive()
Returns
active | bool |
|---|
C_PartyInfo.IsChallengeModeKeystoneOwner
isKeystoneOwner = C_PartyInfo.IsChallengeModeKeystoneOwner()
Returns
isKeystoneOwner | bool |
|---|
C_PartyInfo.IsCrossFactionParty
isCrossFactionParty = C_PartyInfo.IsCrossFactionParty([category])
Arguments
category | luaIndex may be nil | If not provided, the active party is used |
|---|
Returns
isCrossFactionParty | bool |
|---|
C_PartyInfo.IsDelveComplete
isDelveComplete = C_PartyInfo.IsDelveComplete()
Returns
isDelveComplete | bool |
|---|
C_PartyInfo.IsDelveInProgress
isDelveComplete = C_PartyInfo.IsDelveInProgress()
Returns
isDelveComplete | bool |
|---|
C_PartyInfo.IsGUIDInGroup
isInGroup = C_PartyInfo.IsGUIDInGroup(guid, [category])
Arguments
guid | WOWGUID | |
|---|---|---|
category | luaIndex may be nil | If not provided, the active party is used |
Returns
isInGroup | bool |
|---|
C_PartyInfo.IsLootMethodAvailable
available = C_PartyInfo.IsLootMethodAvailable(method)
Arguments
method | LootMethod |
|---|
Returns
available | bool |
|---|
C_PartyInfo.IsPartyFull
isFull = C_PartyInfo.IsPartyFull([category])
Arguments
category | luaIndex may be nil | If not provided, the active party is used |
|---|
Returns
isFull | bool |
|---|
C_PartyInfo.IsPartyInJailersTower
isPartyInJailersTower = C_PartyInfo.IsPartyInJailersTower()
Returns
isPartyInJailersTower | bool |
|---|
C_PartyInfo.IsPartyWalkIn
isPartyWalkIn = C_PartyInfo.IsPartyWalkIn()
Returns
isPartyWalkIn | bool |
|---|
C_PartyInfo.LeaveParty
C_PartyInfo.LeaveParty([category])
Usually this will leave the party immediately. In some cases (e.g. PartySync) the user will be prompted to confirm leaving the party, because it's potentially destructive
Arguments
category | luaIndex may be nil |
|---|
C_PartyInfo.PromoteToAssistant
C_PartyInfo.PromoteToAssistant(name, [exactNameMatch])
Arguments
name | cstring | |
|---|---|---|
exactNameMatch | bool may be nil |
C_PartyInfo.PromoteToLeader
C_PartyInfo.PromoteToLeader(name, [exactNameMatch])
Arguments
name | cstring | |
|---|---|---|
exactNameMatch | bool may be nil |
C_PartyInfo.RequestInviteFromUnit
C_PartyInfo.RequestInviteFromUnit(targetName, [tank], [healer], [dps])
Attempt to request an invite into the target party, requires confirmation in some cases (e.g. there is a party sync in progress).
Arguments
targetName | cstring | |
|---|---|---|
tank | bool may be nil | |
healer | bool may be nil | |
dps | bool may be nil |
C_PartyInfo.SetEveryoneIsAssistant
updated = C_PartyInfo.SetEveryoneIsAssistant(isAssistant)
Arguments
isAssistant | bool |
|---|
Returns
updated | bool |
|---|
C_PartyInfo.SetInstanceAbandonVoteResponse
C_PartyInfo.SetInstanceAbandonVoteResponse(response)
Vote on whether to abandon instance, true for yes, false for no
Arguments
response | bool |
|---|
C_PartyInfo.SetLootMethod
success = C_PartyInfo.SetLootMethod(method, [lootMaster])
Arguments
method | LootMethod | |
|---|---|---|
lootMaster | string may be nil |
Returns
success | bool |
|---|
C_PartyInfo.SetRestrictPings
C_PartyInfo.SetRestrictPings(restrictTo)
Arguments
restrictTo | RestrictPingsTo |
|---|
C_PartyInfo.StartInstanceAbandonVote
C_PartyInfo.StartInstanceAbandonVote()
Start the vote
C_PartyInfo.UninviteUnit
C_PartyInfo.UninviteUnit(name, [reason], [exactNameMatch])
Arguments
name | cstring | |
|---|---|---|
reason | cstring may be nil | |
exactNameMatch | bool may be nil |
Events
BNET_REQUEST_INVITE_CONFIRMATION
gameAccountID | number | |
|---|---|---|
questSessionActive | bool | |
tank | bool | |
healer | bool | |
dps | bool |
CONVERT_TO_RAID_CONFIRMATION
No payload.
ENTERED_DIFFERENT_INSTANCE_FROM_PARTY
No payload.
GROUP_FORMED
category | number | |
|---|---|---|
partyGUID | WOWGUID |
GROUP_INVITE_CONFIRMATION
No payload.
GROUP_JOINED
category | number | |
|---|---|---|
partyGUID | WOWGUID |
GROUP_LEFT
category | number | |
|---|---|---|
partyGUID | WOWGUID |
GROUP_ROSTER_UPDATE
No payload.
INSTANCE_ABANDON_VOTE_FINISHED
votePassed | bool |
|---|
INSTANCE_ABANDON_VOTE_STARTED
No payload.
INSTANCE_ABANDON_VOTE_UPDATED
No payload.
INSTANCE_BOOT_START
No payload.
INSTANCE_BOOT_STOP
No payload.
INSTANCE_GROUP_SIZE_CHANGED
No payload.
INVITE_TO_PARTY_CONFIRMATION
targetName | cstring | |
|---|---|---|
willConvertToRaid | bool | |
questSessionActive | bool |
INVITE_TRAVEL_PASS_CONFIRMATION
targetName | cstring | |
|---|---|---|
targetGUID | WOWGUID | |
willConvertToRaid | bool | |
questSessionActive | bool |
LEAVE_PARTY_CONFIRMATION
reason | LeavePartyConfirmReason |
|---|
PARTY_INVITE_CANCEL
No payload.
PARTY_INVITE_REQUEST
name | cstring | |
|---|---|---|
isTank | bool | |
isHealer | bool | |
isDamage | bool | |
isNativeRealm | bool | |
isCrossShard | bool | |
allowMultipleRoles | bool | |
inviterGUID | WOWGUID | |
questSessionActive | bool |
PARTY_LEADER_CHANGED
No payload.
PARTY_LFG_RESTRICTED
No payload.
PARTY_LOOT_METHOD_CHANGED
No payload.
PARTY_MEMBER_DISABLE
unitTarget | UnitTokenVariant |
|---|
PARTY_MEMBER_ENABLE
unitTarget | UnitTokenVariant |
|---|
PLAYER_DIFFICULTY_CHANGED
No payload.
PLAYER_ROLES_ASSIGNED
No payload.
RAID_ROSTER_UPDATE
No payload.
READY_CHECK
initiatorName | cstring | |
|---|---|---|
readyCheckTimeLeft | time_t |
READY_CHECK_CONFIRM
unitTarget | UnitTokenVariant | |
|---|---|---|
isReady | bool |
READY_CHECK_FINISHED
preempted | bool |
|---|
REQUEST_INVITE_CONFIRMATION
targetName | cstring | |
|---|---|---|
partyLevelLink | number | |
questSessionActive | bool | |
tank | bool may be nil | |
healer | bool may be nil | |
dps | bool may be nil |
VOTE_KICK_REASON_NEEDED
name | cstring | |
|---|---|---|
resultGUID | WOWGUID |
Tables
Enum.LeavePartyConfirmReason enumeration
QuestSync | 0 |
|---|---|
RestrictedChallengeMode | 1 |