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

Newly created emojis aren't added to cache #10432

Closed
ImRodry opened this issue Aug 6, 2024 · 4 comments
Closed

Newly created emojis aren't added to cache #10432

ImRodry opened this issue Aug 6, 2024 · 4 comments
Labels

Comments

@ImRodry
Copy link
Contributor

ImRodry commented Aug 6, 2024

Which package is this bug report for?

discord.js

Issue description

When an emoji is created on a guild the bot is in (given that the cache has not been limited or disabled for that manager) it is not added to cache and a restart or fetch is needed for that to happen. Though discord.js has events for guildEmojiCreate and guildEmojiDelete I can't seem to find any mention of those in the documentation, only guildEmojiUpdate, so maybe that's the reason? Not sure.

P.S. if any of the maintainers could let me know, either here or through DM on Discord, why I was banned from the server I would appreciate it.

Code sample

No response

Versions

  • discord.js 14.14.1
  • Node.js v20.16.0
  • Typescript 5.4.5

Issue priority

Low (slightly annoying)

Which partials do you have configured?

User, Channel, GuildMember, Message

Which gateway intents are you subscribing to?

Guilds, GuildMembers, GuildMessages, MessageContent

I have tested this issue on a development release

No response

@jaw0r3k
Copy link
Contributor

jaw0r3k commented Aug 6, 2024

They are not an actual ws events but ones that should be handled by GuildEmojisUpdate.js

@ImRodry
Copy link
Contributor Author

ImRodry commented Aug 6, 2024

That's the conclusion I came to, but that doesn't seem to be working since they're not getting cached

@Qjuh
Copy link
Contributor

Qjuh commented Aug 8, 2024

This is not a bug, you‘re simply missing the intent needed to receive those events: GuildEmojisAndStickers.

https://discord.com/developers/docs/topics/gateway#list-of-intents

@ImRodry
Copy link
Contributor Author

ImRodry commented Aug 8, 2024

Ah my bad, since I had them cached I didn’t think that would be needed. Thanks

@ImRodry ImRodry closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants