Created
February 25, 2017 14:13
-
-
Save devsnek/88c474272bcb81ee5bbea320a6633b47 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exports.Endpoints = { | |
| APPLICATIONS: '/applications', | |
| APPLICATION_ICON: (n, t) => `/applications/${n}/icons/${t}.jpg`, | |
| APPLICATION_RPC: (n) => `/oauth2/applications/${n}/rpc`, | |
| AUTHORIZE_IP: '/auth/authorize-ip', | |
| AVATAR: (n, t, e = t.startsWith('a_') ? 'gif' : 'webp') => `/users/${n}/avatars/${t}.${e}`, | |
| BILLING: '/users/@me/billing', | |
| BILLING_HISTORY: '/users/@me/billing/payments', | |
| BILLING_PAYMENT_SOURCE: '/users/@me/billing/payment-source', | |
| BILLING_PREMIUM_SUBSCRIPTION: '/users/@me/billing/premium-subscription', | |
| CALL: (n) => `/channels/${n}/call`, | |
| CALL_RING: (n) => `/channels/${n}/call/ring`, | |
| CALL_STOP_RINGING: (n) => `/channels/${n}/call/stop-ringing`, | |
| CHANNELS: '/channels', | |
| CHANNEL_CONVERT: (n) => `/channels/${n}/convert`, | |
| CHANNEL_ICON: (n, t) => `/channels/${n}/icons/${t}.jpg`, | |
| CHANNEL_PERMISSIONS: (n) => `/channels/${n}/permissions`, | |
| CHANNEL_RECIPIENTS: (n) => `/channels/${n}/recipients`, | |
| CHANNEL_WEBHOOKS: (n) => `/channels/${n}/webhooks`, | |
| CONNECTION: (n, t) => `/users/@me/connections/${n}/${t}`, | |
| CONNECTIONS: '/users/@me/connections', | |
| CONNECTIONS_CALLBACK: (n) => `/connections/${n}/callback`, | |
| DEVICES: '/users/@me/devices', | |
| DISABLE_EMAIL_NOTIFICATIONS: '/users/disable-email-notifications', | |
| EMOJI: (n) => `/emojis/${n}.png`, | |
| EXPERIMENTS: '/experiments', | |
| FORGOT_PASSWORD: '/auth/forgot', | |
| FRIEND_SUGGESTIONS: '/friend-suggestions', | |
| GATEWAY: '/gateway', | |
| GUILDS: '/guilds', | |
| GUILD_ACK: (n) => `/guilds/${n}/ack`, | |
| GUILD_BANS: (n) => `/guilds/${n}/bans`, | |
| GUILD_CHANNELS: (n) => `/guilds/${n}/channels`, | |
| GUILD_EMBED: (n) => `/guilds/${n}/embed`, | |
| GUILD_EMOJI: (n, t) => `/guilds/${n}/emojis/${t}`, | |
| GUILD_EMOJIS: (n) => `/guilds/${n}/emojis`, | |
| GUILD_ICON: (n, t, e) => `/guilds/${n}/icons/${t}.${e}`, | |
| GUILD_INSTANT_INVITES: (n) => `/guilds/${n}/invites`, | |
| GUILD_INTEGRATIONS: (n) => `/guilds/${n}/integrations`, | |
| GUILD_MEMBER: (n, t) => `/guilds/${n}/members/${t}`, | |
| GUILD_MEMBERS: (n) => `/guilds/${n}/members`, | |
| GUILD_MFA: (n) => `/guilds/${n}/mfa`, | |
| GUILD_PRUNE: (n) => `/guilds/${n}/prune`, | |
| GUILD_ROLE: (n, t) => `/guilds/${n}/roles/${t}`, | |
| GUILD_ROLES: (n) => `/guilds/${n}/roles`, | |
| GUILD_SPLASH: (n, t) => `/guilds/${n}/splashes/${t}.jpg`, | |
| GUILD_VANITY_URL: (n) => `/guilds/${n}/vanity-url`, | |
| GUILD_WEBHOOKS: (n) => `/guilds/${n}/webhooks`, | |
| ICE: '/voice/ice', | |
| INSTANT_INVITES: (n) => `/channels/${n}/invites`, | |
| INTEGRATIONS: '/integrations', | |
| INTEGRATIONS_JOIN: (n) => `/integrations/${n}/join`, | |
| INVITE: '/invite', | |
| LOGIN: '/auth/login', | |
| LOGIN_MFA: '/auth/mfa/totp', | |
| LOGOUT: '/auth/logout', | |
| ME: '/users/@me', | |
| MENTIONS: '/users/@me/mentions', | |
| MENTIONS_MESSAGE_ID: (n) => `/users/@me/mentions/${n}`, | |
| MESSAGES: (n) => `/channels/${n}/messages`, | |
| MESSAGES_ACK: (n, t) => `/channels/${n}/messages/${t}/ack`, | |
| MFA_CODES: '/users/@me/mfa/codes', | |
| MFA_TOTP_DISABLE: '/users/@me/mfa/totp/disable', | |
| MFA_TOTP_ENABLE: '/users/@me/mfa/totp/enable', | |
| MOBILE_TEXT_LINK: '/download/sms', | |
| NOTES: '/users/@me/notes', | |
| OAUTH2_AUTHORIZE: '/oauth2/authorize', | |
| OAUTH2_AUTHORIZE_WEBHOOK_CHANNELS: '/oauth2/authorize/webhook-channels', | |
| OAUTH2_CURRENT_AUTH: '/oauth2/@me', | |
| OAUTH2_RPC_TOKEN: '/oauth2/token/rpc', | |
| OAUTH2_TOKEN: (n) => `/oauth2/tokens/${n}`, | |
| OAUTH2_TOKENS: '/oauth2/tokens', | |
| OAUTH2_WHITELIST_ACCEPT: '/oauth2/whitelist/accept', | |
| PIN: (n, t) => `/channels/${n}/pins/${t}`, | |
| PINS: (n) => `/channels/${n}/pins`, | |
| PINS_ACK: (n) => `/channels/${n}/pins/ack`, | |
| REACTION: (n, t, e, d) => `/channels/${n}/messages/${t}/reactions/${e}/${d}`, | |
| REACTIONS: (n, t, e) => `/channels/${n}/messages/${t}/reactions/${e}`, | |
| REGIONS: (n) => n !== null ? `/guilds/${n}/regions` : '/voice/regions', | |
| REGISTER: '/auth/register', | |
| REMOVE_REACTIONS: (n, t) => `/channels/${n}/messages/${t}/reactions`, | |
| REPORT: '/report', | |
| RESET_PASSWORD: '/auth/reset', | |
| SEARCH_CHANNEL: (n) => `/channels/${n}/messages/search`, | |
| SEARCH_GUILD: (n) => `/guilds/${n}/messages/search`, | |
| SETTINGS: '/users/@me/settings', | |
| SSO: '/sso', | |
| TRACK: '/track', | |
| TUTORIAL: '/tutorial', | |
| TUTORIAL_INDICATORS: '/tutorial/indicators', | |
| TYPING: (n) => `/channels/${n}/typing`, | |
| USERS: '/users', | |
| USER_CHANNELS: (n) => `/users/${n}/channels`, | |
| USER_GUILD_SETTINGS: (n) => `/users/@me/guilds/${n}/settings`, | |
| USER_PROFILE: (n) => `/users/${n}/profile`, | |
| USER_RELATIONSHIPS: (n = '@me') => `/users/${n}/relationships`, | |
| VERIFY: '/auth/verify', | |
| VERIFY_RESEND: '/auth/verify/resend', | |
| WEBHOOK: (n) => `/webhooks/${n}`, | |
| WEBHOOK_INTEGRATION: (n, t) => `/webhooks/${n}/${t}`, | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment