Новичок
-
Автор темы
- #1
Код:
Ошибка:import discord
from discord.ext import tasks
client=discord.Client(intents=discord.Intents(messages=True,guilds=False,reactions=False,members=False,presences=False))
@tasks.loop(minutes=1)
async def test():
await client.wait_until_ready()
channel=client.fetch_channel(АЙДИ КАНАЛА)
await channel.send("test")
@client.event
async def on_ready():
test.start()
client.run("ТОКЕН")
Как исправить?TypeError: can't send non-None value to a just-started coroutine