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] message.author is a LazyUser #51

Closed AndrewyDEV closed 3 years ago

AndrewyDEV commented 3 years ago

for some reason, the bot returns message.author for some users as None#0 and the message.author.name as None e.g.

  1. Make an on_message method
  2. if the message is "test" do the following
  3. Send a message containint message.author
@bot.event
async def on_message():
 if message.content == "test":
  await message.channel.send(f'{message.author}')

Expected Results : Bot sends a Message containing the full tag of the author Actual Results : Bot sends a Message containing the full tag of the author for some users, for the others it sends "None#0"

System Info

Run python -m discord --version and paste the information below.
# Paste here

Checklist

Let's make sure this issue is valid!

Additional Information

Put any extra context, weird configurations, or other important info here.
dolfies commented 3 years ago

Yet another quirk of LazyUsers. Will be solved next release.

AndrewyDEV commented 3 years ago

Yet another quirk of LazyUsers. Will be solved next release.

Thanks alot, and this build really somehow is the best and only good build i ever found to help people make self bots, keep it up