Guide to Install Discord Py Master Branch on Replit
Step 1
Create an empty repl on replit
Step 2
Add this Basic Code to the file main.py so as to check if discord.py master branch is installed or not
import discord
button = discord.ui.Button
Step 3
Run the code so as to build Packager Files
Don't worry about the error . It will be resolved after completing the further steps!
Step 4
Now open pyproject.toml
file and replace discord = "^1,7,3"
with discord = {git = "https://github.com/Rapptz/discord.py"}
Step 5
Open Shell and install discord.py master branch through pip
pip install git+https://github.com/Rapptz/discord.py
Step 6
Run the main.py to check if master branch has been installed!
Boom! The code ran without any errors, that means discord.py master branch has been installed successfully!!
Now you can create bots on replit based on discord.py 2.0 !!
Make Sure to Star the Repo if you liked it!!