> For the complete documentation index, see [llms.txt](https://jeroenoboy.gitbook.io/slashdiscord-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jeroenoboy.gitbook.io/slashdiscord-js/documentation/interactionmessage.md).

# InteractionMessage

A simple object that binds to an interaction message.

### Constructor

```javascript
new InteractionMessage(interaction, id = '@original');
```

| Parameter   | Type                                                         | Required | Default | Description                                  |
| ----------- | ------------------------------------------------------------ | -------- | ------- | -------------------------------------------- |
| interaction | [Interaction](/slashdiscord-js/documentation/interaction.md) | true     | none    | The interaction this message is attached to. |
| id          | string                                                       | true     | none    | the id of this message.                      |

### Properties

id

> The ID of this command.\
> **Type**: string

interaction

> The handler used.\
> **Type**: [SlashCommandHandler](/slashdiscord-js/documentation/class-slashcommandhandler.md)

### Methods

async edit(...messages: [InteractionMessageType\[\]](/slashdiscord-js/documentation/interaction/interactionmessage.md))

> Edit an interaction message\
> **Returns**: void

async delete()

> Delete the interaction message\
> **Returns**: void
