Answer the question
In order to leave comments, you need to log in
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
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:
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 questionAsk a Question
731 491 924 answers to any question