A
A
Alexander2021-01-16 00:48:34
Python
Alexander, 2021-01-16 00:48:34

Is it possible to delete a channel by its assigned position?

Is it possible to delete a channel in a specific location?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Nevzorov, 2021-01-16
@sh1ethzee

Use discord.utils.get to get a channel by its position:
https://discordpy.readthedocs.io/en/stable/api.htm...
An example of channel positions and their positions in the API:
8adSJs5.png
Note that each type has its own positions .

c = discord.utils.get(guild.channels, position=8)
await c.delete()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question