discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.95k stars 1.26k forks source link

Forum Tag Emoji ID is 0 #5603

Closed ImDarkDiamond closed 1 year ago

ImDarkDiamond commented 1 year ago

Description

Docs state that emoji_id and emoji_name will not be both set. See: https://discord.com/developers/docs/resources/channel#forum-tag-object-forum-tag-structure

The gateway seems to send the tag with emoji_id: 0

image

Fetching the channel in Postman (GET https://discord.com/api/v10/channels/961365597344657458) from the REST API returns the forum tag correctly. (emoji_id: null)

image

Steps to Reproduce

Connect to the gateway and wait for GUILD_CREATES to be sent after identifying.

Expected Behavior

When emoji_name is set emoji_id should be null and not 0. (See images above)

Current Behavior

When emoji_name is set emoji_id is being returned as 0. (See images above)

Screenshots/Videos

No response

Client and System Information

Used Postman for fetching from REST and Twilight for connecting to the gateway.

ajpalkovic commented 1 year ago

I reloaded guild 961365597344657458 so it should be fixed once you reconnect to it

ImDarkDiamond commented 1 year ago

Unfortunately I am still seeing the same behavior. I've also checked with Eris & its rawWS event.

image
MinnDevelopment commented 1 year ago

This has also been repeatedly reported with JDA. I've implemented a fix in the library to mitigate the issue.

yonilerner commented 1 year ago

We've made some changes in the last couple months, is this still an issue?

yonilerner commented 1 year ago

Closing for now since we believe the issue is resolved.

ImDarkDiamond commented 1 year ago

It is! Meant to respond yesterday but got busy. Thanks ❤️

AEnterprise commented 1 year ago

@yonilerner i'm still getting this for guild 410479299347480576 (forum tag id 1027892492105941023)

ajpalkovic commented 1 year ago

I reloaded that guild, if you restart your bot (just to force it to get a new GUILD_CREATE), do you still have the bad forum tag id?

AEnterprise commented 1 year ago

I no longer get the bad forum tag, thanks!

circuitsacul commented 1 year ago

I'm getting this problem on one of the guilds my bot is in (638540406577037332) on forum tags 1021805861808648193, 1021805910647119902, 1021805961826029598, 1021806027127148624, and 1021806142273364039.

ajpalkovic commented 1 year ago

@CircuitSacul I think you need to reconnect your bot You probably didn't reconnect since we fixed the problem so you have stale state cache in memory We just pulled the emoji_id values for each of these tags, and they are all nil, not 0