Reimnop / Discord4Fabric

A beautiful Discord bot client for Fabric
MIT License
37 stars 20 forks source link

Advancement not granting #96

Open InstSnipe opened 10 months ago

InstSnipe commented 10 months ago

I run a fabric 1.20.1 server, and the advancement event isn't working (using a custom advancement from a datapack)

{
  "player_join": {
    "requires": [
      "linked_account"
    ],
    "actions": [
      {
        "id": "grant_role",
        "value": {
          "user": "%linked_account:id%",
          "role": "1182740657073311885"
        }
      }
    ]
  },
  "advancement": {
    "requires": [
      "linked_account",
      "advancement_name('draft:specialgrade')"
    ],
    "actions": [
      {
        "id": "grant_role",
        "value": {
          "user": "%linked_account:id%",
          "role": "1182019814697484308"
        }
      }
    ]
  },
  "player_leave": {
    "requires": [
      "linked_account"
    ],
    "actions": [
      {
        "id": "revoke_role",
        "value": {
          "user": "%linked_account:id%",
          "role": "1182740657073311885"
        }
      }
    ]
  }
}

when advancement is granted or earned, role does not give in discord (the discord bot's role is the highest and has administrator, role id is taken straight from the discord)

InstSnipe commented 10 months ago

@Reimnop