title: Delete Message category: Channel
deleteMessage
$client->channel->deleteMessage($parameters);
Delete a message. If operating on a guild channel and trying to delete a message that was not sent by the current user, this endpoint requires the 'MANAGE_MESSAGES' permission. Fires a Message Delete Gateway event.
Name | Type | Required | Default |
---|---|---|---|
channel.id | snowflake | true | null |
message.id | snowflake | true | null |
Returns a 204 empty response on success.