Response = requests. # Open Discord OAuth2 authorization URL in user's default web browserĪuth_url = AUTH_URL + "?" + "&".join([f" # Save OAuth2 token and user info for later use er_info_label = tk.Label(self.master, text="") # Create label to show user info after logging in Self.discord_login = tk.Button(self.master, text="Login with Discord", command=self.discord_login) I know you may think of a different way to do it but I have gotten this far and would like to see it through) (to clarify before you ask me WHY I want to do this, it's kind of irrelevant, but ideally someone on discord writes a command to a bot + tags the user, and if the user is logged into my python app, the function runs. but since I added this, it does nt give me any error, it just returns to the following line, and nothing happens Logging out is easy Click the settings cog next to your user name & avatar. My original file was working fine, lauching the tkinter interface. When your Discord time comes to a close, here are the steps for logging out of your account. I asked ChatGPT how to, and it gave me the code below. and add a new block for your Discord server Paste your Discord invite link. For example: text, images, sounds, videos, or hyperlinks. How to use the Discord QR code to log in The advantage of Discord QR code. So I built a simple software with python and tkinter.Īs a test, I want to try and add the option to login with your discord account. Discord Login with Token collects the following: Website content.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |