'pycord says "TypeError: object TextChannel can't be used in 'await' expression"

I use Pycord, and when I use channel = bot.get_channel(975050208264200242) with await channel.send(embed = embed2) to send message it says me TypeError: object TextChannel can't be used in 'await' expression

What can I do?

I also tried using it without await and I got this: RuntimeWarning: Enable tracemalloc to get the object allocation traceback

By the way I'm new to python and Pycord



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source