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

formatEmoji type doesn't allow an unknown boolean type #8820

Closed
KhafraDev opened this issue Nov 7, 2022 · 0 comments · Fixed by #8823
Closed

formatEmoji type doesn't allow an unknown boolean type #8820

KhafraDev opened this issue Nov 7, 2022 · 0 comments · Fixed by #8823

Comments

@KhafraDev
Copy link
Contributor

Which package is this bug report for?

builders

Issue description

// @ts-check

import { formatEmoji } from 'discord.js'

/** @type {'a' | undefined} */
const a = 'a'

formatEmoji('abc', a === 'a')

error:
image

Code sample

see above

Package version

14.6.0

Node.js version

v18.11.0

Operating system

windows

Priority this issue should have

Low (slightly annoying)

Which partials do you have configured?

Not applicable (subpackage bug)

Which gateway intents are you subscribing to?

Not applicable (subpackage bug)

I have tested this issue on a development release

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants