@bot.command() #use @client.command here if you are using client to alternate commands.Bot async def customstatus(ctx): for s in ctx.author.activities: if isinstance(s, discord.CustomActivity): print(s)