How to join a server?

I had some trouble with this as well. What you need to do is: Go to the Discord developer pages (login if you haven’t). Go to the application with the bot you want to add to your channel. Copy the Client/Application ID. Go to https://discordapp.com/oauth2/authorize?client_id=CLIENT_ID_GOES_HERE&scope=bot&permissions=0 < You can set permissions for the bot here. Permissions … Read more

Send a message with Discord.js

The send code has been changed again. Both the items in the question as well as in the answers are all outdated. For version 12, below will be the right code. The details about this code are available in this link. To send a message to specific channel const channel = <client>.channels.cache.get(‘<id>’); channel.send(‘<content>’); To send … Read more

Error: Unable to extract uploader id – Youtube, Discord.py

This is a known issue, fixed in Master. For a temporary fix, python3 -m pip install –force-reinstall https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz This installs tha master version. Run it through the command-line yt-dlp URL where URL is the URL of the video you want. See yt-dlp –help for all options. It should just work without errors. If you’re using … Read more

Python [Invalid syntax] with async def

Updated answer for 2021 (discord.py 1.x – 2.x): discord.py currently supports Python 3.5 and up. If you receive a SyntaxError, it means you’re using an older version of Python and isn’t supported by discord.py. First, install a later version of Python (3.8.x is preferred as of this message), and run python3.8 bot.py or py -3.8 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)