Flatlogic Bot ca3a32f23e V 4
2026-02-16 06:55:36 +00:00

14 lines
431 B
TypeScript

import type {SoundcloudOembed, SoundcloudOembedFilter} from "../types"
import {API} from "../API"
export class Oembed {
public constructor(private readonly api: API) {}
/**
* Gets the Oembed for a track, playlist, or user.
*/
public get = async (params: SoundcloudOembedFilter) => {
const response = await this.api.getWebsite("/oembed", params)
return response as Promise<string>
}
}