# InteractionMessage

### Constructor

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

| Parameter   | Type                                                                                   | Required | Default | Description                                  |
| ----------- | -------------------------------------------------------------------------------------- | -------- | ------- | -------------------------------------------- |
| interaction | [Interaction](https://jeroenoboy.gitbook.io/slashdiscord-js/documentation/interaction) | 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](https://jeroenoboy.gitbook.io/slashdiscord-js/documentation/class-slashcommandhandler)

### Methods

async edit(...messages: [InteractionMessageType\[\]](https://jeroenoboy.gitbook.io/slashdiscord-js/documentation/interaction/interactionmessage))

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

async delete()

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