Skip to content

Commit

Permalink
fix(http): incorrect path for delete permission endpoint (#1506)
Browse files Browse the repository at this point in the history
* fix delete_permissions api endpoint

fix API Endpoint in delete_channel_permission
adding "permissions/" in Endpoint

* ci: correct from checks.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Donbur4156 and pre-commit-ci[bot] authored Jul 30, 2023
1 parent 39ba1e5 commit 3802f74
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion interactions/api/http/http_requests/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,12 @@ async def delete_channel_permission(
"""
await self.request(
Route("DELETE", "/channels/{channel_id}/{overwrite_id}", channel_id=channel_id, overwrite_id=overwrite_id),
Route(
"DELETE",
"/channels/{channel_id}/permissions/{overwrite_id}",
channel_id=channel_id,
overwrite_id=overwrite_id,
),
reason=reason,
)

Expand Down

0 comments on commit 3802f74

Please sign in to comment.