Track
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new Track(data
)
Parameters
Name | Type |
---|---|
data | ITrack |
Defined in
Properties
identifier
• Readonly
identifier: string
Defined in
uri
• Readonly
uri: string
Defined in
title
• Readonly
title: string
Defined in
author
• Readonly
author: string
Defined in
duration
• Readonly
duration: Timestamp
Defined in
source
• Readonly
source: string
Defined in
isSeekable
• Readonly
isSeekable: boolean
Defined in
isStream
• Readonly
isStream: boolean
Defined in
requester
• requester: User
| null
discord.js 的 User 類型
Defined in
position
• Optional
position: number
Defined in
encodedTrack
• encodedTrack: string
Defined in
metadata
• Optional
metadata: Metadata
Defined in
Accessors
thumbnail
• get
thumbnail(): null
| string
Returns
null
| string
Defined in
Methods
setRequester
▸ setRequester(requester
): void
Parameters
Name | Type |
---|---|
requester | User |
Returns
void