SpotifyApiSpotify LogoJS

User src/structures/User.ts#L50

Spotify api's user object.


Properties:

displayName externalURL id images totalFollowers type uri

Methods:

makeCodeImage

constructor(data) src/structures/User.ts#L50

No documentation found.

NameTypeDescription
dataPublicUser

.displayName src/structures/User.ts#L12

Type:

"null" | string

The name displayed on the user’s profile. null if not available.

.externalURL src/structures/User.ts#L42

Type:

ExternalUrl

Known external URLs for this user.

.id src/structures/User.ts#L17

Type:

string

The Spotify user ID for the user.

.images src/structures/User.ts#L32

Type:

Image[]

The user’s profile image.

.totalFollowers src/structures/User.ts#L37
OPTIONAL

Type:

number

Information about the followers of the user.

.type src/structures/User.ts#L27

Type:

SpotifyType

The Spotify object type which will be 'user'.

.uri src/structures/User.ts#L22

Type:

string

The Spotify URI for the user.

.makeCodeImage(color) src/structures/User.ts#L63

Returns a code image url from the spotify uri.

Returns:

string

Parameters:

NameTypeDescription
colorstringThe color code in hex.