---
title: "confirm(intent:completion:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insetmessageattributeintenthandling/confirm(intent:completion:)"
---

# confirm(intent:completion:)

Confirms that you can modify the attributes.

## Declaration

```swift
optional func confirm(intent: INSetMessageAttributeIntent, completion: @escaping @Sendable (INSetMessageAttributeIntentResponse) -> Void)
```

```swift
optional func confirm(intent: INSetMessageAttributeIntent) async -> INSetMessageAttributeIntentResponse
```

## Parameters

- `intent`: The intent object that containing details about the user’s request. The information in this object has already been resolved by your handler object.
- `completion`: The handler block to execute with your response. You must execute this handler whle implementing this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion This method validates that your messaging service is available and that modifying the specified messages is possible. At some point in your implementation, execute the provided completion block with an appropriate response object.
