---
title: "resolveAttribute(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insetmessageattributeintenthandling/resolveattribute(for:with:)"
---

# resolveAttribute(for:with:)

Resolves the attribute to apply to the messages.

## Declaration

```swift
optional func resolveAttribute(for intent: INSetMessageAttributeIntent, with completion: @escaping @Sendable (INMessageAttributeResolutionResult) -> Void)
```

```swift
optional func resolveAttribute(for intent: INSetMessageAttributeIntent) async -> INMessageAttributeResolutionResult
```

## Parameters

- `intent`: The intent object that contains details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The block to execute with the resolution. You must execute this block while implementing this method. This block has no return value and takes the following parameter:

## Discussion

Discussion This method resolves the attribute to apply to the messages.
