handle(intent:completion:)
Handles modifying the message attributes.
Declaration
func handle(intent: INSetMessageAttributeIntent, completion: @escaping @Sendable (INSetMessageAttributeIntentResponse) -> Void)func handle(intent: INSetMessageAttributeIntent) async -> INSetMessageAttributeIntentResponseParameters
- 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:
- response
The Insetmessageattributeintentresponse object containing the status of the request. This parameter must not be
nil.
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.