Skip to content

feat(RESTJSONErrorCodes): add 160009 &160010 (forward message errors) - #1697

Open
RiskyMH wants to merge 3 commits into
discordjs:mainfrom
The-Fiery-Fire:riskymh/error-code-160009
Open

feat(RESTJSONErrorCodes): add 160009 &160010 (forward message errors)#1697
RiskyMH wants to merge 3 commits into
discordjs:mainfrom
The-Fiery-Fire:riskymh/error-code-160009

Conversation

@RiskyMH

@RiskyMH RiskyMH commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Please describe the changes this PR makes and why it should be merged:

I saw this error code and wanted to be able to use it in my code without magic number

DiscordAPIError[160009]: Cannot reference a message without permission to read message history
DiscordAPIError[160010]: NSFW channel message reference not allowed

If applicable, please reference Discord API Docs PRs or commits that influenced this PR:

@RiskyMH
RiskyMH requested a review from a team as a code owner June 23, 2026 00:44
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

@RiskyMH is attempting to deploy a commit to the discordjs Team on Vercel.

A member of the Team first needs to authorize it.

@RiskyMH RiskyMH changed the title feat(RESTJSONErrorCodes): add CannotReferenceMessageWithoutPermissionToReadMessageHistory feat(RESTJSONErrorCodes): add 160009 &160010 (forward message errors) Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant