Skip to content

gateway - received exception when parsing ActivityButton #166

@chrissound

Description

@chrissound

Using 1.12.5 (will try upgrade - just need to upgrade the all the code first)

gateway - received exception [Error in $: Error in $.activities[0].buttons[0]: parsing ActivityButton failed, expected Object, but encountered String] while decoding:

(I've redacted the sensitive values of a user).

{
  "t": "PRESENCE_UPDATE",
  "s": 91,
  "op": 0,
  "d": {
    "user": {
      "id": "****************"
    },
    "status": "online",
    "guild_id": "************************",
    "client_status": {
      "web": "idle",
      "mobile": "online",
      "desktop": "idle"
    },
    "activities": [
      {
        "type": 0,
        "timestamps": {
          "start": *********************8
        },
        "state": "🎮 Connected: ❌ | 🔋 N/A",
        "session_id": "*****************",
        "name": "*******",
        "id": "**********************",
        "details": "Home Page | v2.4.2",
        "created_at": **************8,
        "buttons": [
          "DSX - View On Steam",
          "DSX - Join Discord Server"
        ],
        "assets": {
          "large_image": "*********************"
        },
        "application_id": "*****************************"
      }
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions