feat(handlers): add getGatewayBot() & getApplicationInformation() (#428)

* feat(handlers): add getGatewayBot()

* refactor(bot): use getGatewayBot() to get gateway data

* feat(handlers): add getApplicationInformation

* add(handlers): getApplicationInformation jsdoc

* Add oauth required types

* create separate file

* delete misc

* OAuthApplication

* forgot to update import

* idk why that was here
This commit is contained in:
ITOH
2021-01-23 11:51:35 +01:00
committed by GitHub
parent 62af388820
commit 8beb036741
6 changed files with 95 additions and 8 deletions
+3
View File
@@ -164,4 +164,7 @@ export const endpoints = {
USER_DM: `${baseEndpoints.BASE_URL}/users/@me/channels`,
USER_CONNECTIONS: `${baseEndpoints.BASE_URL}/users/@me/connections`,
USER_NICK: (guildID: string) => `${GUILDS_BASE(guildID)}/members/@me/nick`,
// oAuth2
OAUTH2_APPLICATION: `${baseEndpoints.BASE_URL}/oauth2/applications/@me`,
};