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

15 lines
420 B
TypeScript

import type {SoundcloudComment} from "../types"
import {API} from "../API"
export class Comments {
public constructor(private readonly api: API) {}
/**
* Gets a comment from its ID, using the Soundcloud v2 API.
*/
public get = async (commentID: number) => {
const response = await this.api.getV2(`/comments/${commentID}`)
return response as Promise<SoundcloudComment>
}
}