Merge pull request #1780 from discordeno/issue-1779

change(getApplicationInfo): returns Application with flags
This commit is contained in:
ITOH
2021-11-15 14:06:47 +00:00
committed by GitHub
+1 -5
View File
@@ -4,9 +4,5 @@ import { SnakeCasedPropertiesDeep } from "../../types/util.ts";
/** Get the applications info */
export async function getApplicationInfo(bot: Bot) {
return await bot.rest.runMethod<Omit<Application, "flags">>(
bot.rest,
"get",
bot.constants.endpoints.OAUTH2_APPLICATION
);
return await bot.rest.runMethod<Application>(bot.rest, "get", bot.constants.endpoints.OAUTH2_APPLICATION);
}