MessageCommand
An application command invoked directly on a message from the context menu.
Parameters
| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| name | String | none | ✅ | Command name |
| defaultMemberPermissions | PermissionsBitField | 0 | The permissions this command will have when your app is installed |
Methods
run()
Runs when this command is invoked.
| Parameter | Type | Description |
|---|---|---|
| interaction | MessageContextMenuCommandInteraction | The interaction that invoked this command |
| message | Message | The message this command was invoked on |