Skip to content

Commit

Permalink
Use proper body formatting for Bulk Delete Messages (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
Exanlv committed Apr 6, 2024
1 parent 76f02ff commit 46ff7aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Rest/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public function bulkDeleteMessages(
Endpoint::CHANNEL_MESSAGES_BULK_DELETE,
$channelId
),
$messageIds,
['messages' => $messageIds],
$this->getAuditLogReasonHeader($reason)
)->otherwise($this->logThrowable(...));
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Rest/ChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public static function httpBindingsProvider(): array
],
'Bulk delete messages' => [
'method' => 'bulkDeleteMessages',
'args' => ['::channel id::', ['::message id::'], (new EmojiBuilder())->setId('::id::')],
'args' => ['::channel id::', ['::message id::']],
'mockOptions' => [
'method' => 'post',
'return' => null,
Expand Down

0 comments on commit 46ff7aa

Please sign in to comment.