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

44 lines
1.5 KiB
TypeScript

import type { SoundcloudTrack, SoundcloudUserFilter, SoundcloudUserSearch, SoundcloudUser, SoundcloudWebProfile, SoundcloudPlaylist } from "../types";
import { API } from "../API";
export declare class Users {
private readonly api;
private readonly resolve;
constructor(api: API);
/**
* Searches for users using the v2 API.
*/
search: (params?: SoundcloudUserFilter) => Promise<SoundcloudUserSearch>;
/**
* Fetches a user from URL or ID using Soundcloud v2 API.
*/
get: (userResolvable: string | number) => Promise<SoundcloudUser>;
/**
* Gets all the tracks by the user using Soundcloud v2 API.
*/
tracks: (userResolvable: string | number) => Promise<SoundcloudTrack[]>;
/**
* Gets all of a users liked tracks.
*/
likes: (userResolvable: string | number, limit?: number) => Promise<SoundcloudTrack[]>;
/**
* Gets all the playlists by the user using Soundcloud v2 API.
*/
playlists: (userResolvable: string | number) => Promise<SoundcloudPlaylist[]>;
/**
* Gets all the web profiles on a users sidebar.
*/
webProfiles: (userResolvable: string | number) => Promise<SoundcloudWebProfile[]>;
/**
* Gets a user's followers.
*/
following: (userResolvable: string | number, limit?: number) => Promise<SoundcloudUser[]>;
/**
* Searches for users (web scraping)
*/
searchAlt: (query: string) => Promise<SoundcloudUser[]>;
/**
* Gets a user by URL (web scraping)
*/
getAlt: (url: string) => Promise<SoundcloudUser>;
}