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

15 lines
367 B
TypeScript

import type {SoundcloudUser} from "../types"
import {API} from "../API"
export class Me {
public constructor(private readonly api: API) {}
/**
* Gets your own profile, using the Soundcloud v2 API.
*/
public get = async () => {
const response = await this.api.getV2("/me")
return response as Promise<SoundcloudUser>
}
}