-
Notifications
You must be signed in to change notification settings - Fork 3
/
glob.types.ts
37 lines (33 loc) · 937 Bytes
/
glob.types.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
export interface DataProps {
client_id: string
client_secret: string
grant_type: string
redirect_uri: string
code: string | string[]
scope: string
}
export interface ReturnTokens {
access_token: string
expires_in: number
refresh_token: string
scope: string
token_type: string
}
export interface ReturnUser {
id: string
username: string
avatar: string
discriminator: string
public_flags: number
flags: number
locale: string
mfa_enabled: boolean
}
export enum URLS {
BASE = 'https://discord.com/api/oauth2/authorize',
TOKEN = 'https://discord.com/api/oauth2/token',
REVOKE = 'https://discord.com/api/oauth2/token/revoke',
USER = 'https://discord.com/api/users/@me',
GUILDS = 'https://discord.com/api/users/@me/guilds'
}
export const scopes: Array<string> = ['identify', 'guilds']