Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tomato6966 opened this issue Sep 5, 2024 · 5 comments
Labels
bug synced Synced to internal tracker

Comments

@Tomato6966
Copy link

Tomato6966 commented Sep 5, 2024

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 Tomato6966 added the bug label Sep 5, 2024
@afgiel
Copy link
Contributor

afgiel commented Sep 5, 2024

I send the same message about 100 times

are you sending these all to the same channel?

@Tomato6966
Copy link
Author

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

@afgiel
Copy link
Contributor

afgiel commented Sep 6, 2024

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 afgiel added the synced Synced to internal tracker label Sep 6, 2024
@afgiel
Copy link
Contributor

afgiel commented Sep 6, 2024

@Rodentman87 any thoughts here?

@Rodentman87
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug synced Synced to internal tracker
Projects
None yet
Development

No branches or pull requests

3 participants