-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
SocialLinksService.ts
61 lines (58 loc) · 1.19 KB
/
SocialLinksService.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { SocialLink } from "../models/SocialLink";
import type { BaseHttpRequest } from "../core/BaseHttpRequest";
import type { CancelablePromise } from "../core/CancelablePromise";
export class SocialLinksService {
constructor(
public readonly httpRequest: BaseHttpRequest,
) {}
/**
* Retrieves a member's public social links
* @returns any Success
* @throws ApiError
*/
public memberSocialLinkRead({
serverId,
userId,
socialLinkType,
}: {
serverId: string;
userId:
| string
| "@me";
/**
* The type of social link to retrieve
*/
socialLinkType:
| "twitch"
| "bnet"
| "psn"
| "xbox"
| "steam"
| "origin"
| "youtube"
| "twitter"
| "facebook"
| "switch"
| "patreon"
| "roblox"
| "epic";
}): CancelablePromise<{
socialLink: SocialLink;
}> {
return this.httpRequest.request(
{
method: "GET",
url: "/servers/{serverId}/members/{userId}/social-links/{socialLinkType}",
path: {
serverId: serverId,
userId: userId,
socialLinkType: socialLinkType,
},
},
);
}
}