discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

New released application emojis sometimes (like about 1/25 requests) in components, polls are not parse able by the application

Open Tomato6966 opened this issue 1 year ago • 5 comments

Description

I send the same message about 100 times, and got 2-4 times an error, stating that the button component has an invalid emoji (invalid payload) Tbhe other 98-96 times, it worked just fine, without changing the payload.

image

Steps to Reproduce

With my application i sent following components array data while patching (update) an interaction

  {
    "type": 1,
    "components": [
      {
        "type": 2,
        "emoji": {
          "id": "1277679484459290757",
          "name": "e_Tick",
          "animated": false
        },
        "custom_id": "antinuke_AntiLink_enabled",
        "label": "Enabled -> Disabled",
        "style": 3
      },
      {
        "type": 2,
        "emoji": {
          "id": "1277679484459290757",
          "name": "e_Tick",
          "animated": false
        },
        "custom_id": "antinuke_AntiLink_deleteMessage",
        "label": "Prevention Delete-Msg: Yes -> No",
        "style": 1
      },
      {
        "type": 2,
        "emoji": {
          "id": "1277679484459290757",
          "name": "e_Tick",
          "animated": false
        },
        "custom_id": "antinuke_AntiLink_allowInviteLinksOfThisGuild",
        "label": "Allow Invites of this Guild: Yes -> No",
        "style": 1
      },
      {
        "type": 2,
        "emoji": {
          "id": "1277679442105204808",
          "name": "e_List",
          "animated": false
        },
        "custom_id": "antinuke_AntiLink_whitelistedChannelIds",
        "label": "Set Whitelisted Channels",
        "style": 1
      },
      {
        "type": 2,
        "emoji": {
          "id": "1277679443703238777",
          "name": "e_List2",
          "animated": false
        },
        "custom_id": "antinuke_AntiLink_whitelistedRoleIds",
        "label": "Set Whitelisted Roles",
        "style": 1
      }
    ]
  },
  {
    "type": 1,
    "components": [
      {
        "type": 2,
        "emoji": {
          "id": "1277679491703115909",
          "name": "e_Warning",
          "animated": false
        },
        "custom_id": "antinuke_AntiLink_warnUser",
        "label": "Warn-User Punishment",
        "style": 4
      },
      {
        "type": 2,
        "emoji": {
          "id": "1277679504357195921",
          "name": "e_time",
          "animated": false
        },
        "custom_id": "antinuke_AntiLink_muteUser",
        "label": "Mute-User Punishment",
        "style": 4
      },
      {
        "type": 2,
        "emoji": {
          "id": "1277679425177128981",
          "name": "e_Cross",
          "animated": false
        },
        "custom_id": "antinuke_AntiLink_kickUser",
        "label": "Kick-User Punishment",
        "style": 4
      },
      {
        "type": 2,
        "emoji": {
          "id": "1277679492801888399",
          "name": "e_admin",
          "animated": false
        },
        "custom_id": "antinuke_AntiLink_banUser",
        "label": "Ban-User Punishment",
        "style": 4
      }
    ]
  },
  {
    "type": 1,
    "components": [
      {
        "type": 2,
        "emoji": {
          "id": "1277679441350496296",
          "name": "e_Link",
          "animated": false
        },
        "custom_id": "antinuke_AntiLink_links",
        "label": "Set Links/Domainnames to match",
        "style": 1
      }
    ]
  },
  {
    "type": 1,
    "components": [
      {
        "type": 2,
        "emoji": {
          "id": "1277679435637592125",
          "name": "e_Home",
          "animated": false
        },
        "custom_id": "antinuke_home",
        "label": "Go back to home",
        "style": 2
      }
    ]
  }
]

Expected Behavior

It shouldn't fail and thus still be able to parse the application specific errors,

Current Behavior

As stated in the description, the current behaviour rarly errors on sending stuff related with application emojis that the emoji is invalid / not accessable.

Screenshots/Videos

No response

Client and System Information

I'm using a custom @discord.js/rest on linux ubuntu on a ryzen system. It also happens on my local machine (Windows + WSL with Intel core cpu)

Tomato6966 avatar Sep 05 '24 19:09 Tomato6966

I send the same message about 100 times

are you sending these all to the same channel?

afgiel avatar Sep 05 '24 21:09 afgiel

yes but it also depends, it can be sent to any channel

Tomato6966 avatar Sep 06 '24 08:09 Tomato6966

yes but it also depends, it can be sent to any channel

I am trying to understand if you are claiming this is some sort of indeterminism or if this is determined by some permissions/etc

afgiel avatar Sep 06 '24 18:09 afgiel

@Rodentman87 any thoughts here?

afgiel avatar Sep 06 '24 18:09 afgiel

@Tomato6966 I've been unable to reproduce this behavior at all. Do you have any more details that might help with this?

Rodentman87 avatar Sep 17 '24 17:09 Rodentman87