Skip to content

Commit

Permalink
Update packages/builders/src/messages/embed/UnsafeEmbed.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
  • Loading branch information
suneettipirneni and ImRodry committed Feb 15, 2022
1 parent be642cd commit 7694013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/builders/src/messages/embed/UnsafeEmbed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class UnsafeEmbed implements Equatable<APIEmbed | UnsafeEmbed> {
*/
public get hexColor() {
if (!this.data.color) return undefined;
return `#${this.data.color}` as const;
return typeof this.data.color === 'number' ? `#${this.data.color.toString(16).padStart(6, '0')}` : null;
}

/**
Expand Down

0 comments on commit 7694013

Please sign in to comment.