dolfies / discord.py-self

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

Cant set status with discord.Activity #654

Closed Z3R0-CDS closed 9 months ago

Z3R0-CDS commented 9 months ago

Summary

Cant set status with discord.Activity

Reproduction Steps

Set a status with discord.Activity

Code

` await bot.change_presence(status=bot.status, activity=discord.Activity(type= discord.ActivityType.watching, name="This is some status"))`

Expected Results

Status changes

Actual Results

Nothing

System Information

Checklist

Additional Information

I am not sure if I do anything wrong but status like discord.Game does work so might be a bug

Z3R0-CDS commented 9 months ago

The activity is not being set

Z3R0-CDS commented 9 months ago

Huh okay. Could you try an activity like listening or watching for me?

Z3R0-CDS commented 9 months ago

Worked few weeks or days ago idk last time I used it was around 25 December so can't really say when it stopped working but thanks for trying. I will add custom activities instead for now.

dolfies commented 9 months ago

The latest commit may have fixed this, but I'm not entirely sure. Let me know!

Z3R0-CDS commented 9 months ago

Havent looked into ur recent commit yet that much but I think somewhere the value is not changed to something default. I get Type _MissingSentinel is not JSON serializable Wich prob means something is still = MISSING? Idk i try to find it maybe u all faster

Z3R0-CDS commented 9 months ago

Okay found it you forgot to check afk I just added not sure if that is the best todo but works idk if afk is MISSING: afk = False

Z3R0-CDS commented 9 months ago

Oh and on my side all status changes work again when that fix is implemented for afk

dolfies commented 9 months ago

Okay found it you forgot to check afk I just added not sure if that is the best todo but works idk if afk is MISSING: afk = False

Fixed, thanks!

dolfies commented 9 months ago

Oh and on my side all status changes work again when that fix is implemented for afk

Sounds good, I'll go ahead and close this issue now