Мой код:
async def greatSender():
client.get_channel(id=846658613186527233)
await channel.send(input('message:'))
Вылазит ошибка:
Ignoring exception in on_ready
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 343, in _run_event
await coro(*args, **kwargs)
File "main.py", line 100, in on_ready
await greatSender()
File "main.py", line 95, in greatSender
await channel.send(input('message:'))
NameError: name 'channel' is not defined