fix: constant urls endpoints need to be functions

This commit is contained in:
Skillz4Killz
2022-03-25 19:23:44 +00:00
committed by GitHub
parent 18bf53ac6b
commit fbbac43053
12 changed files with 27 additions and 22 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ export async function getApplicationInfo(bot: Bot) {
const result = await bot.rest.runMethod<DiscordApplication>(
bot.rest,
"get",
bot.constants.endpoints.OAUTH2_APPLICATION,
bot.constants.endpoints.OAUTH2_APPLICATION(),
);
return bot.transformers.application(bot, result);