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

# handle(intent:completion:)

Handles modifying the message attributes.

## Declaration

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

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

## Parameters

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

## Discussion

Discussion Your implementation of this method must try to modify the attributes of the messages. The response object you provide should indicate whether you were successful at making the changes.
