@bot.command()
async def spamth(channel: disnake.TextChannel):
while True:
for _ in range(1, 1000):
await channel.send(content="""Нужный текст
""")
await channel.send(content="""Нужный текст
^
IndentationError: expected an indented block after 'for' statement on line 178