diff --git a/src/Rest/Channel.php b/src/Rest/Channel.php index 75e7438..9626624 100644 --- a/src/Rest/Channel.php +++ b/src/Rest/Channel.php @@ -60,7 +60,7 @@ public function get(string $channelId): PromiseInterface public function modify(string $channelId, ChannelBuilder $channel, ?string $reason = null): PromiseInterface { return $this->mapPromise( - $this->http->post( + $this->http->patch( Endpoint::bind( Endpoint::CHANNEL, $channelId diff --git a/tests/Rest/ChannelTest.php b/tests/Rest/ChannelTest.php index d89236a..bf512be 100644 --- a/tests/Rest/ChannelTest.php +++ b/tests/Rest/ChannelTest.php @@ -141,7 +141,7 @@ public static function httpBindingsProvider(): array 'method' => 'modify', 'args' => ['::channel id::', new GuildTextChannelBuilder()], 'mockOptions' => [ - 'method' => 'post', + 'method' => 'patch', 'return' => (object) [], ], 'validationOptions' => [ @@ -152,7 +152,7 @@ public static function httpBindingsProvider(): array 'method' => 'modify', 'args' => ['::channel id::', new GuildAnnouncementChannelBuilder()], 'mockOptions' => [ - 'method' => 'post', + 'method' => 'patch', 'return' => (object) [], ], 'validationOptions' => [ @@ -163,7 +163,7 @@ public static function httpBindingsProvider(): array 'method' => 'modify', 'args' => ['::channel id::', new GuildStageVoiceChannelBuilder()], 'mockOptions' => [ - 'method' => 'post', + 'method' => 'patch', 'return' => (object) [], ], 'validationOptions' => [ @@ -174,7 +174,7 @@ public static function httpBindingsProvider(): array 'method' => 'modify', 'args' => ['::channel id::', new GuildForumChannelBuilder()], 'mockOptions' => [ - 'method' => 'post', + 'method' => 'patch', 'return' => (object) [], ], 'validationOptions' => [ @@ -185,7 +185,7 @@ public static function httpBindingsProvider(): array 'method' => 'modify', 'args' => ['::channel id::', new GuildVoiceChannelBuilder()], 'mockOptions' => [ - 'method' => 'post', + 'method' => 'patch', 'return' => (object) [], ], 'validationOptions' => [