for guild in self.client.guilds:
for member in guild.members:
if member.activities == None:
return
else:
print(member.activities)
()
()
()
(<Activity type=<ActivityType.playing: 0> name='New World' url=None details=None application_id=8924807015832042 session_id=None emoji=None>,)
name
с определенной игрой? После чего подсчитать и вывести число?games = []
for guild in self.client.guilds:
for member in guild.members:
if member.activities == None:
return
else:
if member.activities[0].name in games:
games[member.activities[0].name] += 1
else:
games[member.activities[0].name] = 1
print(member.activities)
print(games)