diff --git a/client.d.ts b/client.d.ts index a2501ab..5bb674b 100644 --- a/client.d.ts +++ b/client.d.ts @@ -268,6 +268,11 @@ export declare namespace workshop { current: bigint total: bigint } + export interface UserItemVote { + votedUp: boolean + votedDown: boolean + voteSkipped: boolean + } export const enum UpdateStatus { Invalid = 0, PreparingConfig = 1, @@ -296,6 +301,30 @@ export declare namespace workshop { * {@link https://partner.steamgames.com/doc/api/ISteamUGC#UnsubscribeItem} */ export function unsubscribe(itemId: bigint): Promise + /** + * Sets the current user's vote (up or down) on a workshop item. + * + * {@link https://partner.steamgames.com/doc/api/ISteamUGC#SetUserItemVote} + */ + export function voteItem(itemId: bigint, voteUp: boolean): Promise + /** + * Adds a workshop item to the current user's favorites list. + * + * {@link https://partner.steamgames.com/doc/api/ISteamUGC#AddItemToFavorites} + */ + export function addFavorite(appId: number, itemId: bigint): Promise + /** + * Removes a workshop item from the current user's favorites list. + * + * {@link https://partner.steamgames.com/doc/api/ISteamUGC#RemoveItemFromFavorites} + */ + export function removeFavorite(appId: number, itemId: bigint): Promise + /** + * Gets the current user's existing vote (if any) on a workshop item. + * + * {@link https://partner.steamgames.com/doc/api/ISteamUGC#GetUserItemVote} + */ + export function getUserVote(itemId: bigint): Promise /** * Gets the current state of a workshop item on this client. States can be combined. * @@ -336,6 +365,7 @@ export declare namespace workshop { * @returns an array of subscribed workshop item ids */ export function getSubscribedItems(): Array + export function deleteItem(itemId: bigint): Promise export const enum UGCQueryType { RankedByVote = 0, RankedByPublicationDate = 1,