discordjs / builders

A collection of builders that you can use when creating your bot.
Apache License 2.0
97 stars 37 forks source link

Types: embed.setColor() not showing ColorResolvable or number[] #62

Closed PythonCoderAS closed 2 years ago

PythonCoderAS commented 2 years ago

Issue description

According to the guide:

The .setColor() method accepts a ColorResolvable, e.g. an integer, HEX color string, an array of RGB values or specific color strings.

However, the typescript decleration file only shows:

setColor(color: number | null): this;

The typings are not representative of what can actually be used.

Code sample

No response

@discordjs/builders version

0.9.0

Node.js version

Node v17.2.0, Typescript v4.5.3

Operating system

MacOS

Priority this issue should have

Low (slightly annoying)

PythonCoderAS commented 2 years ago

Ok, so it turns out discord.js exports its own MessageEmbed class, which is separate from the Embed class in this package. Talk about confusing.