Q
Q
Quaasaar2020-05-07 12:59:43
Python
Quaasaar, 2020-05-07 12:59:43

Discord.py how to delete current channel?

How to write a bot using Python and Discord.py that could delete the current channel (to which the delete message was sent), as well as the very first existing channel?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Gafarchik, 2020-05-09
@Gafarchik

Of course, I’m not exactly special (from the word no)
But try the bot.delete_ command
And the message.channel channel (this is the channel in which this message lies) and try the very first channel as sending messages to the desired channel:
An example is: How to send a message from bot to a specific discord channel using Discord.py?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question