Skip to content

Conversation

@Jiralite
Copy link
Member

@Jiralite Jiralite commented Nov 19, 2025

Following discord/discord-api-docs#6543 (comment), CREATE_GUILD_EXPRESSIONS also returns an emoji's user (author in discord.js), regardless of who created it.

Code sample
import { API } from "@discordjs/core";
import { REST } from "@discordjs/rest";

const DISCORD_TOKEN = "" as const;
const GUILD_ID = "" as const;
const EMOJI_ID = "" as const;

const api = new API(new REST({ version: "10" }).setToken(DISCORD_TOKEN));
const emoji = await api.guilds.getEmoji(GUILD_ID, EMOJI_ID);

console.log(emoji);

@vercel
Copy link

vercel bot commented Nov 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
discord-js Ignored Ignored Preview Nov 20, 2025 11:07pm
discord-js-guide Ignored Ignored Preview Nov 20, 2025 11:07pm

@Jiralite Jiralite marked this pull request as draft November 19, 2025 22:57
BREAKING CHANGE: `MissingManageGuildExpressionsPermission` has become `MissingGuildExpressionsPermission`.
@vercel vercel bot temporarily deployed to Preview – discord-js November 19, 2025 23:00 Inactive
@vercel vercel bot temporarily deployed to Preview – discord-js-guide November 19, 2025 23:00 Inactive
@Jiralite Jiralite changed the title fix(GuildEmojiManager): Allow CreateGuildExpressions for retrieving author data fix(GuildEmojiManager)!: Allow CreateGuildExpressions for retrieving author data Nov 19, 2025
@Jiralite Jiralite marked this pull request as ready for review November 19, 2025 23:01
@github-project-automation github-project-automation bot moved this from Todo to Review Approved in discord.js Nov 20, 2025
@Jiralite Jiralite merged commit 0b12263 into main Nov 20, 2025
27 checks passed
@github-project-automation github-project-automation bot moved this from Review Approved to Done in discord.js Nov 20, 2025
@Jiralite Jiralite deleted the fix/author-emoji-fetch branch November 20, 2025 23:16
Jiralite added a commit that referenced this pull request Nov 20, 2025
…g author data (#11283)

* fix(GuildEmojiManager): allow `CreateGuildExpressions`
Jiralite added a commit that referenced this pull request Nov 21, 2025
… author data (#11288)

* fix(GuildEmojiManager)!: Allow `CreateGuildExpressions` for retrieving author data (#11283)

* fix(GuildEmojiManager): allow `CreateGuildExpressions`

* fix: tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants