So, I am making a discord bot where the bot creates a new private channel and deletes it once the commands completed(or after 15 minutes timeout).
But the thing I cannot do correctly is send message to that newly created channel. I cannot just do ctx.send and I have tried this stuff already and didn't work for me.
I tried this but it didn't work:
channel = client.get_channel(12324234183172)
await channel.send('hello')