Skip to content

Commit

Permalink
Added support for deleting voice channels in FakeHttp
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip3314 committed Apr 18, 2023
1 parent d57cdd2 commit 4a5208c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discord/ext/test/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ async def delete_channel(self, channel_id: int, *, reason: str = None) -> None:
for sub_channel in channel.text_channels:
delete_channel(sub_channel)
delete_channel(channel)
if channel.type.value == discord.ChannelType.voice.value:
delete_channel(channel)

async def get_channel(self, channel_id: int) -> _types.JsonDict:
await callbacks.dispatch_event("get_channel", channel_id)
Expand Down

0 comments on commit 4a5208c

Please sign in to comment.