# C_PartyInfo: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_PartyInfo

## Functions

### C_PartyInfo.AllowedToDoPartyConversion

```lua
allowed = C_PartyInfo.AllowedToDoPartyConversion(toRaid)
```

Arguments:
- `toRaid`: bool

Returns:
- `allowed`: bool

### C_PartyInfo.CanFormCrossFactionParties

```lua
canFormCrossFactionParties = C_PartyInfo.CanFormCrossFactionParties()
```

Returns:
- `canFormCrossFactionParties`: bool

### C_PartyInfo.CanInvite

```lua
allowedToInvite = C_PartyInfo.CanInvite()
```

Returns:
- `allowedToInvite`: bool

### C_PartyInfo.CanStartInstanceAbandonVote

```lua
canStart = C_PartyInfo.CanStartInstanceAbandonVote()
```

Returns whether it's possible to start a vote at this time

Returns:
- `canStart`: bool

### C_PartyInfo.ChallengeModeRestrictionsActive

```lua
restrictionsActive = C_PartyInfo.ChallengeModeRestrictionsActive()
```

Returns:
- `restrictionsActive`: bool

### C_PartyInfo.ConfirmConvertToRaid

```lua
C_PartyInfo.ConfirmConvertToRaid()
```

Immediately convert to raid with no regard for potentially destructive actions.

### C_PartyInfo.ConfirmInviteTravelPass

```lua
C_PartyInfo.ConfirmInviteTravelPass(targetName, targetGUID)
```

Arguments:
- `targetName`: cstring
- `targetGUID`: WOWGUID

### C_PartyInfo.ConfirmInviteUnit

```lua
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

```lua
C_PartyInfo.ConfirmLeaveParty([category])
```

Immediately leave the party with no regard for potentially destructive actions

Arguments:
- `category`: luaIndex, may be nil

### C_PartyInfo.ConfirmReadyCheck

```lua
C_PartyInfo.ConfirmReadyCheck(isReady)
```

Arguments:
- `isReady`: bool

### C_PartyInfo.ConfirmRequestInviteFromUnit

```lua
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

```lua
C_PartyInfo.ConvertToParty()
```

### C_PartyInfo.ConvertToRaid

```lua
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

```lua
C_PartyInfo.DelveTeleportOut()
```

### C_PartyInfo.DemoteAssistant

```lua
C_PartyInfo.DemoteAssistant(name, [exactNameMatch])
```

Arguments:
- `name`: cstring
- `exactNameMatch`: bool, may be nil

### C_PartyInfo.DoCountdown

```lua
success = C_PartyInfo.DoCountdown(seconds)
```

Arguments:
- `seconds`: number

Returns:
- `success`: bool

### C_PartyInfo.DoReadyCheck

```lua
C_PartyInfo.DoReadyCheck()
```

### C_PartyInfo.GetActiveCategories

```lua
categories = C_PartyInfo.GetActiveCategories()
```

May return nothing.

Returns:
- `categories`: number[]

### C_PartyInfo.GetAvailableLootMethods

```lua
methods = C_PartyInfo.GetAvailableLootMethods()
```

Returns:
- `methods`: LootMethod[]

### C_PartyInfo.GetInstanceAbandonShutdownTime

```lua
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

```lua
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

```lua
votesRequired, keystoneOwnerVoteWeight = C_PartyInfo.GetInstanceAbandonVoteRequirements()
```

Returns values controlling the vote

Returns:
- `votesRequired`: number, default 0
- `keystoneOwnerVoteWeight`: number, default 0

### C_PartyInfo.GetInstanceAbandonVoteResponse

```lua
response = C_PartyInfo.GetInstanceAbandonVoteResponse()
```

Returns how the player voted, nil for not yet

Returns:
- `response`: bool, may be nil

### C_PartyInfo.GetInstanceAbandonVoteTime

```lua
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

```lua
invalidQueues = C_PartyInfo.GetInviteConfirmationInvalidQueues(inviteGUID)
```

May return nothing.

Arguments:
- `inviteGUID`: WOWGUID

Returns:
- `invalidQueues`: QueueSpecificInfo[]

### C_PartyInfo.GetInviteReferralInfo

```lua
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

```lua
method, masterLootPartyID, masterLooterRaidID = C_PartyInfo.GetLootMethod()
```

Returns:
- `method`: LootMethod
- `masterLootPartyID`: number, may be nil
- `masterLooterRaidID`: number, may be nil

### C_PartyInfo.GetLootMethodStyle

```lua
methodStyle = C_PartyInfo.GetLootMethodStyle()
```

Returns:
- `methodStyle`: LootMethodStyles

### C_PartyInfo.GetMinItemLevel

```lua
minItemLevel, playerNameWithLowestItemLevel = C_PartyInfo.GetMinItemLevel(avgItemLevelCategory)
```

Arguments:
- `avgItemLevelCategory`: AvgItemLevelCategories. The active party is always used

Returns:
- `minItemLevel`: number
- `playerNameWithLowestItemLevel`: cstring

### C_PartyInfo.GetMinLevel

```lua
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

```lua
count = C_PartyInfo.GetNumInstanceAbandonGroupVoteResponses()
```

Returns how many players have voted either way

Returns:
- `count`: number

### C_PartyInfo.GetRestrictPings

```lua
restrictTo = C_PartyInfo.GetRestrictPings()
```

Returns:
- `restrictTo`: RestrictPingsTo

### C_PartyInfo.InviteUnit

```lua
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

```lua
active = C_PartyInfo.IsChallengeModeActive()
```

Returns:
- `active`: bool

### C_PartyInfo.IsChallengeModeKeystoneOwner

```lua
isKeystoneOwner = C_PartyInfo.IsChallengeModeKeystoneOwner()
```

Returns:
- `isKeystoneOwner`: bool

### C_PartyInfo.IsCrossFactionParty

```lua
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

```lua
isDelveComplete = C_PartyInfo.IsDelveComplete()
```

Returns:
- `isDelveComplete`: bool

### C_PartyInfo.IsDelveInProgress

```lua
isDelveComplete = C_PartyInfo.IsDelveInProgress()
```

Returns:
- `isDelveComplete`: bool

### C_PartyInfo.IsGUIDInGroup

```lua
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

```lua
available = C_PartyInfo.IsLootMethodAvailable(method)
```

Arguments:
- `method`: LootMethod

Returns:
- `available`: bool

### C_PartyInfo.IsPartyFull

```lua
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

```lua
isPartyInJailersTower = C_PartyInfo.IsPartyInJailersTower()
```

Returns:
- `isPartyInJailersTower`: bool

### C_PartyInfo.IsPartyWalkIn

```lua
isPartyWalkIn = C_PartyInfo.IsPartyWalkIn()
```

Returns:
- `isPartyWalkIn`: bool

### C_PartyInfo.LeaveParty

```lua
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

```lua
C_PartyInfo.PromoteToAssistant(name, [exactNameMatch])
```

Arguments:
- `name`: cstring
- `exactNameMatch`: bool, may be nil

### C_PartyInfo.PromoteToLeader

```lua
C_PartyInfo.PromoteToLeader(name, [exactNameMatch])
```

Arguments:
- `name`: cstring
- `exactNameMatch`: bool, may be nil

### C_PartyInfo.RequestInviteFromUnit

```lua
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

```lua
updated = C_PartyInfo.SetEveryoneIsAssistant(isAssistant)
```

Arguments:
- `isAssistant`: bool

Returns:
- `updated`: bool

### C_PartyInfo.SetInstanceAbandonVoteResponse

```lua
C_PartyInfo.SetInstanceAbandonVoteResponse(response)
```

Vote on whether to abandon instance, true for yes, false for no

Arguments:
- `response`: bool

### C_PartyInfo.SetLootMethod

```lua
success = C_PartyInfo.SetLootMethod(method, [lootMaster])
```

Arguments:
- `method`: LootMethod
- `lootMaster`: string, may be nil

Returns:
- `success`: bool

### C_PartyInfo.SetRestrictPings

```lua
C_PartyInfo.SetRestrictPings(restrictTo)
```

Arguments:
- `restrictTo`: RestrictPingsTo

### C_PartyInfo.StartInstanceAbandonVote

```lua
C_PartyInfo.StartInstanceAbandonVote()
```

Start the vote

### C_PartyInfo.UninviteUnit

```lua
C_PartyInfo.UninviteUnit(name, [reason], [exactNameMatch])
```

Arguments:
- `name`: cstring
- `reason`: cstring, may be nil
- `exactNameMatch`: bool, may be nil

## Events

### BNET_REQUEST_INVITE_CONFIRMATION

Payload, after the event's name:
- `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

Payload, after the event's name:
- `category`: number
- `partyGUID`: WOWGUID

### GROUP_INVITE_CONFIRMATION

No payload.

### GROUP_JOINED

Payload, after the event's name:
- `category`: number
- `partyGUID`: WOWGUID

### GROUP_LEFT

Payload, after the event's name:
- `category`: number
- `partyGUID`: WOWGUID

### GROUP_ROSTER_UPDATE

No payload.

### INSTANCE_ABANDON_VOTE_FINISHED

Payload, after the event's name:
- `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

Payload, after the event's name:
- `targetName`: cstring
- `willConvertToRaid`: bool
- `questSessionActive`: bool

### INVITE_TRAVEL_PASS_CONFIRMATION

Payload, after the event's name:
- `targetName`: cstring
- `targetGUID`: WOWGUID
- `willConvertToRaid`: bool
- `questSessionActive`: bool

### LEAVE_PARTY_CONFIRMATION

Payload, after the event's name:
- `reason`: LeavePartyConfirmReason

### PARTY_INVITE_CANCEL

No payload.

### PARTY_INVITE_REQUEST

Payload, after the event's name:
- `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

Payload, after the event's name:
- `unitTarget`: UnitTokenVariant

### PARTY_MEMBER_ENABLE

Payload, after the event's name:
- `unitTarget`: UnitTokenVariant

### PLAYER_DIFFICULTY_CHANGED

No payload.

### PLAYER_ROLES_ASSIGNED

No payload.

### RAID_ROSTER_UPDATE

No payload.

### READY_CHECK

Payload, after the event's name:
- `initiatorName`: cstring
- `readyCheckTimeLeft`: time_t

### READY_CHECK_CONFIRM

Payload, after the event's name:
- `unitTarget`: UnitTokenVariant
- `isReady`: bool

### READY_CHECK_FINISHED

Payload, after the event's name:
- `preempted`: bool

### REQUEST_INVITE_CONFIRMATION

Payload, after the event's name:
- `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

Payload, after the event's name:
- `name`: cstring
- `resultGUID`: WOWGUID

## Tables

### Enum.LeavePartyConfirmReason (enumeration)

- `QuestSync` = 0
- `RestrictedChallengeMode` = 1

---
Make an addon with your 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."
