'Discord.py - Cannot import 'handle_message_parameters' from discord.http

In summary, I have just installed the newly released discord.py version 2.0 done by Rapptz on GitHub for my discord bot. After I settled everything and tried to run the bot, I was greeted with this error:

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    import discord
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/__init__.py", line 25, in <module>
    from .client import Client
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/client.py", line 53, in <module>
    from .webhook import Webhook
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/webhook/__init__.py", line 12, in <module>
    from .async_ import *
  File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/webhook/async_.py", line 47, in <module>
    from ..http import Route, handle_message_parameters, MultipartParameters, HTTPClient
ImportError: cannot import name 'handle_message_parameters' from 'discord.http' (/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/http.py)

The error was not there for the first few times I ran the code and only appeared just now. Please help me find a solution to this problem. Thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source