I'm getting this error: discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
But I cant seem to figure out why, the relevant bits of code should be
intents: Intents = discord.Intents.default()
intents.message_content = True
bot = commands.Bot(command_prefix=';', case_insensitive=True, help_command=None, intents=intents)
# Setup and handle logging
logger = logging.getLogger('discord')
logger.setLevel(logging.INFO)
handler = logging.FileHandler(filename='discord.log', encoding='utf-8', mode='w')
handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s'))
logger.addHandler(handler)```
and
```@bot.event
async def on_ready():
# setup task
@tasks.loop(minutes=1)
async def activate():
current_time = datetime.datetime.utcnow().strftime("%H:%M")
current_date = datetime.datetime.utcnow().strftime("%Y-%m-%d")
await bot.change_presence(
activity=discord.Activity(
type=discord.ActivityType.watching, name=current_date + ", " + current_time))
# Setup weekly message
scheduler = AsyncIOScheduler(timezone="UTC")
scheduler.add_job(func, CronTrigger(day_of_week=0, hour=20))
# Do on ready events
print(f'We have logged in as {bot.user}')```