Skip to content

Commit cde3d07

Browse files
committed
Add requestOptions param to deleteChannel method
1 parent 64bec97 commit cde3d07

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Models/ChannelModel.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
namespace Gnello\Mattermost\Models;
1717

18+
use GuzzleHttp\RequestOptions;
1819
use Psr\Http\Message\ResponseInterface;
1920

2021
/**
@@ -104,12 +105,13 @@ public function updateChannel($channelId, array $requestOptions)
104105
}
105106

106107
/**
107-
* @param $channelId
108+
* @param $channelId
109+
* @param array $requestOptions
108110
* @return ResponseInterface
109111
*/
110-
public function deleteChannel($channelId)
112+
public function deleteChannel($channelId, array $requestOptions = [])
111113
{
112-
return $this->client->delete(self::$endpoint . '/' . $channelId);
114+
return $this->client->delete(self::$endpoint . '/' . $channelId, $requestOptions, RequestOptions::QUERY);
113115
}
114116

115117
/**

0 commit comments

Comments
 (0)