dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
717 stars 163 forks source link

[BUG] email, bio, verified None or False #77

Closed JU5TDIE closed 2 years ago

JU5TDIE commented 3 years ago

Summary

ClientUser prints None or False on email, bio, verified (I didn't add phone number on my account but it might print as None probably)

Reproduction Steps

How did you make it happen?
  1. Start a selfbot
  2. See error

Code

Relevant code that shows the bug.
import discord
from discord.ext import commands

token = "MyToken"
client = commands.Bot(command_prefix=".", self_bot=True)

@client.event
async def on_ready():
    print(client.user.email)
    print(client.user.verified)
    print(client.user.bio)

client.run(token)

Expected Results

It prints email, bio, and verified correctly as my info in discord

Actual Results

It prints None or False

System Info

Run python -m discord --version and paste the information below.
- Python v3.8.2-final
- discord.py-self v1.9.1-final
- aiohttp v3.7.4.post0
- system info: Windows 10 10.0.19041

Checklist

Let's make sure this issue is valid!

Additional Information

I do have email, bio and the account is verified. In discord.py==1.7.3, it prints correctly but not in discord.py-self
dolfies commented 3 years ago

I'll investigate this today

Gowixx commented 3 years ago

I'll investigate this today

It's been 8

dolfies commented 3 years ago

I took a look, and wasn't able to repro. My guess is that it's related to client.user.edit().

Also, I'm on vacation right now so I can't be as quick as I normally can.

Gowixx commented 3 years ago

ok ;D

dolfies commented 3 years ago

Fixed in latest development push.

JU5TDIE commented 2 years ago

@dolfies it doesn't work again :/

dolfies commented 2 years ago

On latest master? Hmmm

JU5TDIE commented 2 years ago

On latest master? Hmmm

It works on latest rebase branch but not on latest master branch. Maybe you changed something on master branch?

JU5TDIE commented 2 years ago

@dolfies Should I reopen this issue? This is broken again.