# C_TransmogCollection: 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_TransmogCollection

## Functions

### C_TransmogCollection.AccountCanCollectSource

```lua
hasItemData, canCollect = C_TransmogCollection.AccountCanCollectSource(sourceID)
```

Arguments:
- `sourceID`: number

Returns:
- `hasItemData`: bool
- `canCollect`: bool

### C_TransmogCollection.AreAllCollectionTypeFiltersChecked

```lua
areAllCollectionTypeFiltersChecked = C_TransmogCollection.AreAllCollectionTypeFiltersChecked()
```

Returns:
- `areAllCollectionTypeFiltersChecked`: bool

### C_TransmogCollection.AreAllSourceTypeFiltersChecked

```lua
areAllSourceTypeFiltersChecked = C_TransmogCollection.AreAllSourceTypeFiltersChecked()
```

Returns:
- `areAllSourceTypeFiltersChecked`: bool

### C_TransmogCollection.CanAppearanceHaveIllusion

```lua
canHaveIllusion = C_TransmogCollection.CanAppearanceHaveIllusion(appearanceID)
```

Arguments:
- `appearanceID`: number

Returns:
- `canHaveIllusion`: bool

### C_TransmogCollection.ClearNewAppearance

```lua
C_TransmogCollection.ClearNewAppearance(visualID)
```

Arguments:
- `visualID`: number

### C_TransmogCollection.ClearSearch

```lua
completed = C_TransmogCollection.ClearSearch(searchType)
```

Arguments:
- `searchType`: TransmogSearchType

Returns:
- `completed`: bool

### C_TransmogCollection.DeleteCustomSet

```lua
C_TransmogCollection.DeleteCustomSet(customSetID)
```

Arguments:
- `customSetID`: number

### C_TransmogCollection.EndSearch

```lua
C_TransmogCollection.EndSearch()
```

### C_TransmogCollection.GetAllAppearanceSources

```lua
itemModifiedAppearanceIDs = C_TransmogCollection.GetAllAppearanceSources(itemAppearanceID)
```

Arguments:
- `itemAppearanceID`: number

Returns:
- `itemModifiedAppearanceIDs`: number[]

### C_TransmogCollection.GetAllFactionsShown

```lua
shown = C_TransmogCollection.GetAllFactionsShown()
```

Returns:
- `shown`: bool

### C_TransmogCollection.GetAllRacesShown

```lua
shown = C_TransmogCollection.GetAllRacesShown()
```

Returns:
- `shown`: bool

### C_TransmogCollection.GetAppearanceCameraID

```lua
cameraID = C_TransmogCollection.GetAppearanceCameraID(itemAppearanceID, [variation])
```

Arguments:
- `itemAppearanceID`: number
- `variation`: TransmogCameraVariation, may be nil

Returns:
- `cameraID`: number

### C_TransmogCollection.GetAppearanceCameraIDBySource

```lua
cameraID = C_TransmogCollection.GetAppearanceCameraIDBySource(itemModifiedAppearanceID, [variation])
```

Arguments:
- `itemModifiedAppearanceID`: number
- `variation`: TransmogCameraVariation, may be nil

Returns:
- `cameraID`: number

### C_TransmogCollection.GetAppearanceInfoBySource

```lua
info = C_TransmogCollection.GetAppearanceInfoBySource(itemModifiedAppearanceID)
```

May return nothing.

Arguments:
- `itemModifiedAppearanceID`: number

Returns:
- `info`: TransmogAppearanceInfoBySourceData

### C_TransmogCollection.GetAppearanceSourceDrops

```lua
encounterInfo = C_TransmogCollection.GetAppearanceSourceDrops(itemModifiedAppearanceID)
```

May return nothing.

Arguments:
- `itemModifiedAppearanceID`: number

Returns:
- `encounterInfo`: TransmogAppearanceJournalEncounterInfo[]

### C_TransmogCollection.GetAppearanceSourceInfo

```lua
info = C_TransmogCollection.GetAppearanceSourceInfo(itemModifiedAppearanceID)
```

May return nothing.

Arguments:
- `itemModifiedAppearanceID`: number

Returns:
- `info`: TransmogAppearanceSourceInfoData

### C_TransmogCollection.GetAppearanceSources

```lua
sources = C_TransmogCollection.GetAppearanceSources(appearanceID, [categoryType], [transmogLocation])
```

May return nothing.

Arguments:
- `appearanceID`: number
- `categoryType`: TransmogCollectionType, may be nil
- `transmogLocation`: TransmogLocation, may be nil

Returns:
- `sources`: AppearanceSourceInfo[]

### C_TransmogCollection.GetArtifactAppearanceStrings

```lua
name, hyperlink = C_TransmogCollection.GetArtifactAppearanceStrings(appearanceID)
```

May return nothing.

Arguments:
- `appearanceID`: number

Returns:
- `name`: cstring
- `hyperlink`: cstring

### C_TransmogCollection.GetCategoryAppearances

```lua
appearances = C_TransmogCollection.GetCategoryAppearances(category, [transmogLocation], [option])
```

May return nothing.

Arguments:
- `category`: TransmogCollectionType
- `transmogLocation`: TransmogLocation, may be nil
- `option`: TransmogOutfitSlotOption, may be nil

Returns:
- `appearances`: TransmogCategoryAppearanceInfo[]

### C_TransmogCollection.GetCategoryCollectedCount

```lua
count = C_TransmogCollection.GetCategoryCollectedCount(category)
```

Arguments:
- `category`: TransmogCollectionType

Returns:
- `count`: number

### C_TransmogCollection.GetCategoryForItem

```lua
collectionCategory = C_TransmogCollection.GetCategoryForItem(itemModifiedAppearanceID)
```

May return nothing.

Arguments:
- `itemModifiedAppearanceID`: number

Returns:
- `collectionCategory`: TransmogCollectionType

### C_TransmogCollection.GetCategoryInfo

```lua
name, isWeapon, canHaveIllusions, canMainHand, canOffHand, canRanged = C_TransmogCollection.GetCategoryInfo(category)
```

May return nothing.

Arguments:
- `category`: TransmogCollectionType

Returns:
- `name`: cstring
- `isWeapon`: bool, default false
- `canHaveIllusions`: bool, default false
- `canMainHand`: bool, default false
- `canOffHand`: bool, default false
- `canRanged`: bool, default false

### C_TransmogCollection.GetCategoryTotal

```lua
total = C_TransmogCollection.GetCategoryTotal(category)
```

Arguments:
- `category`: TransmogCollectionType

Returns:
- `total`: number

### C_TransmogCollection.GetClassFilter

```lua
classID = C_TransmogCollection.GetClassFilter()
```

Returns:
- `classID`: number

### C_TransmogCollection.GetCollectedShown

```lua
shown = C_TransmogCollection.GetCollectedShown()
```

Returns:
- `shown`: bool

### C_TransmogCollection.GetCustomSetHyperlinkFromItemTransmogInfoList

```lua
hyperlink = C_TransmogCollection.GetCustomSetHyperlinkFromItemTransmogInfoList(itemTransmogInfoList)
```

May return nothing.

Arguments:
- `itemTransmogInfoList`: ItemTransmogInfo[]

Returns:
- `hyperlink`: cstring

### C_TransmogCollection.GetCustomSetInfo

```lua
name, icon = C_TransmogCollection.GetCustomSetInfo(customSetID)
```

May return nothing.

Arguments:
- `customSetID`: number

Returns:
- `name`: cstring
- `icon`: fileID

### C_TransmogCollection.GetCustomSetItemTransmogInfoList

```lua
list = C_TransmogCollection.GetCustomSetItemTransmogInfoList(customSetID)
```

May return nothing.

Arguments:
- `customSetID`: number

Returns:
- `list`: ItemTransmogInfo[]

### C_TransmogCollection.GetCustomSets

```lua
customSetID = C_TransmogCollection.GetCustomSets()
```

Returns:
- `customSetID`: number[]

### C_TransmogCollection.GetFallbackWeaponAppearance

```lua
appearanceID = C_TransmogCollection.GetFallbackWeaponAppearance()
```

Returns:
- `appearanceID`: number, may be nil

### C_TransmogCollection.GetFilteredCategoryCollectedCount

```lua
count = C_TransmogCollection.GetFilteredCategoryCollectedCount(category)
```

Arguments:
- `category`: TransmogCollectionType

Returns:
- `count`: number

### C_TransmogCollection.GetFilteredCategoryTotal

```lua
total = C_TransmogCollection.GetFilteredCategoryTotal(category)
```

Arguments:
- `category`: TransmogCollectionType

Returns:
- `total`: number

### C_TransmogCollection.GetIllusionInfo

```lua
info = C_TransmogCollection.GetIllusionInfo(illusionID)
```

May return nothing.

Arguments:
- `illusionID`: number

Returns:
- `info`: TransmogIllusionInfo

### C_TransmogCollection.GetIllusionStrings

```lua
name, hyperlink, sourceText = C_TransmogCollection.GetIllusionStrings(illusionID)
```

May return nothing.

Arguments:
- `illusionID`: number

Returns:
- `name`: string
- `hyperlink`: string
- `sourceText`: string, may be nil

### C_TransmogCollection.GetIllusions

```lua
illusions = C_TransmogCollection.GetIllusions([category])
```

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

Returns:
- `illusions`: TransmogIllusionInfo[]

### C_TransmogCollection.GetInspectItemTransmogInfoList

```lua
list = C_TransmogCollection.GetInspectItemTransmogInfoList()
```

May return nothing.

Returns:
- `list`: ItemTransmogInfo[]

### C_TransmogCollection.GetIsAppearanceFavorite

```lua
isFavorite = C_TransmogCollection.GetIsAppearanceFavorite(itemAppearanceID)
```

Arguments:
- `itemAppearanceID`: number

Returns:
- `isFavorite`: bool

### C_TransmogCollection.GetItemInfo

```lua
itemAppearanceID, itemModifiedAppearanceID = C_TransmogCollection.GetItemInfo(itemInfo)
```

May return nothing.

Arguments:
- `itemInfo`: ItemInfo

Returns:
- `itemAppearanceID`: number
- `itemModifiedAppearanceID`: number

### C_TransmogCollection.GetItemTransmogInfoListFromCustomSetHyperlink

```lua
list = C_TransmogCollection.GetItemTransmogInfoListFromCustomSetHyperlink(hyperlink)
```

May return nothing.

Arguments:
- `hyperlink`: cstring

Returns:
- `list`: ItemTransmogInfo[]

### C_TransmogCollection.GetLatestAppearance

```lua
visualID, category = C_TransmogCollection.GetLatestAppearance()
```

May return nothing.

Returns:
- `visualID`: number
- `category`: TransmogCollectionType

### C_TransmogCollection.GetNumMaxCustomSets

```lua
maxCustomSets = C_TransmogCollection.GetNumMaxCustomSets()
```

Returns:
- `maxCustomSets`: number

### C_TransmogCollection.GetNumTransmogSources

```lua
count = C_TransmogCollection.GetNumTransmogSources()
```

Returns:
- `count`: number

### C_TransmogCollection.GetPairedArtifactAppearance

```lua
pairedItemModifiedAppearanceID = C_TransmogCollection.GetPairedArtifactAppearance(itemModifiedAppearanceID)
```

May return nothing.

Arguments:
- `itemModifiedAppearanceID`: number

Returns:
- `pairedItemModifiedAppearanceID`: number

### C_TransmogCollection.GetSourceIcon

```lua
icon = C_TransmogCollection.GetSourceIcon(itemModifiedAppearanceID)
```

May return nothing.

Arguments:
- `itemModifiedAppearanceID`: number

Returns:
- `icon`: fileID

### C_TransmogCollection.GetSourceInfo

```lua
sourceInfo = C_TransmogCollection.GetSourceInfo(sourceID)
```

May return nothing.

Arguments:
- `sourceID`: number

Returns:
- `sourceInfo`: AppearanceSourceInfo

### C_TransmogCollection.GetSourceItemID

```lua
itemID = C_TransmogCollection.GetSourceItemID(itemModifiedAppearanceID)
```

May return nothing.

Arguments:
- `itemModifiedAppearanceID`: number

Returns:
- `itemID`: number

### C_TransmogCollection.GetSourceRequiredHoliday

```lua
holidayName = C_TransmogCollection.GetSourceRequiredHoliday(itemModifiedAppearanceID)
```

May return nothing.

Arguments:
- `itemModifiedAppearanceID`: number

Returns:
- `holidayName`: string

### C_TransmogCollection.GetUncollectedShown

```lua
shown = C_TransmogCollection.GetUncollectedShown()
```

Returns:
- `shown`: bool

### C_TransmogCollection.GetValidAppearanceSourcesForClass

```lua
sources = C_TransmogCollection.GetValidAppearanceSourcesForClass(appearanceID, classID, [categoryType], [transmogLocation])
```

May return nothing.

Arguments:
- `appearanceID`: number
- `classID`: number
- `categoryType`: TransmogCollectionType, may be nil
- `transmogLocation`: TransmogLocation, may be nil

Returns:
- `sources`: AppearanceSourceInfo[]

### C_TransmogCollection.HasAnyAppearance

```lua
hasAnyAppearance = C_TransmogCollection.HasAnyAppearance()
```

Returns:
- `hasAnyAppearance`: bool

### C_TransmogCollection.HasFavorites

```lua
hasFavorites = C_TransmogCollection.HasFavorites()
```

Returns:
- `hasFavorites`: bool

### C_TransmogCollection.IsAppearanceHiddenVisual

```lua
isHiddenVisual = C_TransmogCollection.IsAppearanceHiddenVisual(appearanceID)
```

Arguments:
- `appearanceID`: number

Returns:
- `isHiddenVisual`: bool

### C_TransmogCollection.IsCategoryValidForItem

```lua
isValid = C_TransmogCollection.IsCategoryValidForItem(category, itemInfo)
```

Arguments:
- `category`: TransmogCollectionType
- `itemInfo`: ItemInfo

Returns:
- `isValid`: bool

### C_TransmogCollection.IsNewAppearance

```lua
isNew = C_TransmogCollection.IsNewAppearance(visualID)
```

Arguments:
- `visualID`: number

Returns:
- `isNew`: bool

### C_TransmogCollection.IsSearchDBLoading

```lua
isLoading = C_TransmogCollection.IsSearchDBLoading()
```

Returns:
- `isLoading`: bool

### C_TransmogCollection.IsSearchInProgress

```lua
inProgress = C_TransmogCollection.IsSearchInProgress(searchType)
```

Arguments:
- `searchType`: TransmogSearchType

Returns:
- `inProgress`: bool

### C_TransmogCollection.IsSourceTypeFilterChecked

```lua
checked = C_TransmogCollection.IsSourceTypeFilterChecked(index)
```

Arguments:
- `index`: luaIndex

Returns:
- `checked`: bool

### C_TransmogCollection.IsSpellItemEnchantmentHiddenVisual

```lua
isHiddenVisual = C_TransmogCollection.IsSpellItemEnchantmentHiddenVisual(spellItemEnchantmentID)
```

Arguments:
- `spellItemEnchantmentID`: number

Returns:
- `isHiddenVisual`: bool

### C_TransmogCollection.IsUsingDefaultFilters

```lua
isUsingDefaultFilters = C_TransmogCollection.IsUsingDefaultFilters()
```

Returns:
- `isUsingDefaultFilters`: bool

### C_TransmogCollection.IsValidCustomSetName

```lua
isApproved = C_TransmogCollection.IsValidCustomSetName(name)
```

Arguments:
- `name`: cstring

Returns:
- `isApproved`: bool

### C_TransmogCollection.IsValidTransmogSource

```lua
valid = C_TransmogCollection.IsValidTransmogSource(source)
```

Arguments:
- `source`: TransmogSource

Returns:
- `valid`: bool

### C_TransmogCollection.ModifyCustomSet

```lua
C_TransmogCollection.ModifyCustomSet(customSetID, itemTransmogInfoList)
```

Arguments:
- `customSetID`: number
- `itemTransmogInfoList`: ItemTransmogInfo[]

### C_TransmogCollection.NewCustomSet

```lua
customSetID = C_TransmogCollection.NewCustomSet(name, icon, itemTransmogInfoList)
```

Arguments:
- `name`: cstring
- `icon`: fileID
- `itemTransmogInfoList`: ItemTransmogInfo[]

Returns:
- `customSetID`: number, may be nil

### C_TransmogCollection.PlayerCanCollectSource

```lua
hasItemData, canCollect = C_TransmogCollection.PlayerCanCollectSource(sourceID)
```

Arguments:
- `sourceID`: number

Returns:
- `hasItemData`: bool
- `canCollect`: bool

### C_TransmogCollection.PlayerHasTransmog

```lua
hasTransmog = C_TransmogCollection.PlayerHasTransmog(itemID, [itemAppearanceModID])
```

Arguments:
- `itemID`: number
- `itemAppearanceModID`: number, default 0

Returns:
- `hasTransmog`: bool

### C_TransmogCollection.PlayerHasTransmogByItemInfo

```lua
hasTransmog = C_TransmogCollection.PlayerHasTransmogByItemInfo(itemInfo)
```

Arguments:
- `itemInfo`: ItemInfo

Returns:
- `hasTransmog`: bool

### C_TransmogCollection.PlayerHasTransmogItemModifiedAppearance

```lua
hasTransmog = C_TransmogCollection.PlayerHasTransmogItemModifiedAppearance(itemModifiedAppearanceID)
```

Arguments:
- `itemModifiedAppearanceID`: number

Returns:
- `hasTransmog`: bool

### C_TransmogCollection.PlayerKnowsSource

```lua
isKnown = C_TransmogCollection.PlayerKnowsSource(sourceID)
```

Arguments:
- `sourceID`: number

Returns:
- `isKnown`: bool

### C_TransmogCollection.RenameCustomSet

```lua
C_TransmogCollection.RenameCustomSet(customSetID, name)
```

Arguments:
- `customSetID`: number
- `name`: cstring

### C_TransmogCollection.SearchProgress

```lua
progress = C_TransmogCollection.SearchProgress(searchType)
```

Arguments:
- `searchType`: TransmogSearchType

Returns:
- `progress`: number

### C_TransmogCollection.SearchSize

```lua
size = C_TransmogCollection.SearchSize(searchType)
```

Arguments:
- `searchType`: TransmogSearchType

Returns:
- `size`: number

### C_TransmogCollection.SetAllCollectionTypeFilters

```lua
C_TransmogCollection.SetAllCollectionTypeFilters(checked)
```

Arguments:
- `checked`: bool

### C_TransmogCollection.SetAllFactionsShown

```lua
C_TransmogCollection.SetAllFactionsShown(shown)
```

Arguments:
- `shown`: bool

### C_TransmogCollection.SetAllRacesShown

```lua
C_TransmogCollection.SetAllRacesShown(shown)
```

Arguments:
- `shown`: bool

### C_TransmogCollection.SetAllSourceTypeFilters

```lua
C_TransmogCollection.SetAllSourceTypeFilters(checked)
```

Arguments:
- `checked`: bool

### C_TransmogCollection.SetClassFilter

```lua
C_TransmogCollection.SetClassFilter(classID)
```

Arguments:
- `classID`: number

### C_TransmogCollection.SetCollectedShown

```lua
C_TransmogCollection.SetCollectedShown(shown)
```

Arguments:
- `shown`: bool

### C_TransmogCollection.SetDefaultFilters

```lua
C_TransmogCollection.SetDefaultFilters()
```

### C_TransmogCollection.SetIsAppearanceFavorite

```lua
C_TransmogCollection.SetIsAppearanceFavorite(itemAppearanceID, isFavorite)
```

Arguments:
- `itemAppearanceID`: number
- `isFavorite`: bool

### C_TransmogCollection.SetSearch

```lua
completed = C_TransmogCollection.SetSearch(searchType, searchText)
```

Arguments:
- `searchType`: TransmogSearchType
- `searchText`: string

Returns:
- `completed`: bool

### C_TransmogCollection.SetSearchAndFilterCategory

```lua
C_TransmogCollection.SetSearchAndFilterCategory(category)
```

Arguments:
- `category`: TransmogCollectionType

### C_TransmogCollection.SetSourceTypeFilter

```lua
C_TransmogCollection.SetSourceTypeFilter(index, checked)
```

Arguments:
- `index`: luaIndex
- `checked`: bool

### C_TransmogCollection.SetUncollectedShown

```lua
C_TransmogCollection.SetUncollectedShown(shown)
```

Arguments:
- `shown`: bool

### C_TransmogCollection.UpdateUsableAppearances

```lua
C_TransmogCollection.UpdateUsableAppearances()
```

## Tables

### Enum.TransmogCameraVariation (enumeration)

- `None` = 0
- `RightShoulder` = 1
- `CloakBackpack` = 1

### TransmogAppearanceInfoBySourceData (structure)

- `appearanceID`: number
- `appearanceIsCollected`: bool
- `sourceIsCollected`: bool
- `sourceIsCollectedPermanent`: bool
- `sourceIsCollectedConditional`: bool
- `meetsTransmogPlayerCondition`: bool
- `appearanceHasAnyNonLevelRequirements`: bool
- `appearanceMeetsNonLevelRequirements`: bool
- `appearanceIsUsable`: bool
- `appearanceNumSources`: number
- `sourceIsKnown`: bool
- `canDisplayOnPlayer`: bool
- `isAnySourceValidForPlayer`: bool

### TransmogAppearanceJournalEncounterInfo (structure)

- `instance`: string
- `instanceType`: number
- `tiers`: string[]
- `encounter`: string
- `difficulties`: string[]

### TransmogAppearanceSourceInfoData (structure)

- `category`: TransmogCollectionType
- `itemAppearanceID`: number
- `canHaveIllusion`: bool
- `icon`: fileID
- `isCollected`: bool
- `itemLink`: string
- `transmoglink`: string
- `sourceType`: luaIndex, may be nil
- `itemSubclass`: number
- `ignoreModelAttachmentChecksForIllusion`: bool

### TransmogCategoryAppearanceInfo (structure)

- `visualID`: number
- `isCollected`: bool
- `isFavorite`: bool
- `isHideVisual`: bool
- `canDisplayOnPlayer`: bool
- `uiOrder`: number
- `exclusions`: number
- `isUsable`: bool
- `hasRequiredHoliday`: bool
- `hasActiveRequiredHoliday`: bool
- `minIlvl`: number
- `isValidForEquippedItem`: bool
- `alwaysShowItem`: bool, may be nil. For internal testing only

### TransmogCategoryInfo (structure)

- `name`: cstring
- `isWeapon`: bool, default false
- `canHaveIllusions`: bool, default false
- `canMainHand`: bool, default false
- `canOffHand`: bool, default false
- `canRanged`: bool, default false

### TransmogCustomSetInfo (structure)

- `name`: cstring
- `icon`: fileID

### TransmogIllusionInfo (structure)

- `visualID`: number
- `sourceID`: number
- `icon`: fileID
- `isCollected`: bool
- `isUsable`: bool
- `isHideVisual`: bool

---
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."
