ImportError: discord.http.handle_message_parameters

Every time I try to start the repl it doesn’t start and sends this area. Below has the error and imports.

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    import discord
…
  File "/home/runner/EJDev/venv/lib/python3.8/site-packages/discord/webhook/async_.py", line 46, in <module>
    from ..http import Route, handle_message_parameters, MultipartParameters, HTTPClient, json_or_text
ImportError: cannot import name 'handle_message_parameters' from 'discord.http' (/home/runner/EJDev/venv/lib/python3.8/site-packages/discord/http.py)
import discord
from discord.ext import commands
from discord.utils import get
from discord import Game
from discord import Embed, Color
from discord.ext.commands import has_permissions, MissingPermissions
from discord import Intents
from discord.ext.commands import Bot
from discord_slash import SlashCommand, SlashContext
from discord_slash.utils.manage_commands import create_choice, create_option
from keep_alive import keep_alive
import random
import os
import datetime
import json
import asyncio

try after running in Shell

pip install --reinstall discord
1 Like

This did not work. Anything else?

Try these:
pip install -U discord
poetry add discord && poetry update

1 Like

Adding it to poetry automatically installs it using pip. You could just do poetry add discord@latest or just poetry add discord && poetry update.

2 Likes

This unfortunately did not work. Anything else?

Could you provide a link to a Repl where you can reproduce this issue?