#member.activities returns only custom activity
1 messages · Page 1 of 1 (latest)
Can you give an example with some context
Ill give as soon as I will get home
import discord
from discord.ext import tasks
from django.conf import settings
# from models import DiscordActivity
intents = discord.Intents.all()
client = discord.Client(intents=intents)
@client.event
async def on_ready():
update_activity.start()
@tasks.loop(seconds=10)
async def update_activity():
guild = discord.utils.get(client.guilds, name='Fareusze Fareusza')
member = guild.get_member(448111890116116483)
print(member.activities)
returns only custom activity
What if you were to try:
https://docs.pycord.dev/en/stable/api/models.html#discord.Member.activity
Member.activity
Models are classes that are received from Discord and are not meant to be created by the user of the library. Attributes key, url. Methods def is_animated, async read, def replace, async save, def ...
activites returns a tuple of activities
activity only returns one
although, docs doesn't mention it's return type
so how should I request to get list of all activites?
this is returning me only one, custom one
do they only have one?
No, I'm checking my own discord account
You don't have a status so it doesn't show anything
When I'm testing it I have visual studio code playing status + spotify
I'm not stupid to test it when I literally don't have any status else

sooo
@amber charm?>
no clue
you have this on right?
yeah
(<CustomActivity name='dygoty dygoty dygoty dygoty dygoty dygoty dygoty dygoty dygoty dygoty dygoty dygoty dygoty dygoty dygoty dygoty dygoty dygoty' emoji=None>,)
only thing that is returned @amber charm
That's what you're doing though
for the guild that you are running the bot from, check Privacy Settings > Activity Status is that enabled for you?
You can find Privacy Settings by right-clicking the guild icon
Did this solve your issue?
Yeah