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
@@ -5,7 +5,7 @@ export async function validDiscoveryTerm(bot: Bot, term: string) {
const result = await bot.rest.runMethod<DiscordValidateDiscoverySearchTerm>(
bot.rest,
"get",
bot.constants.endpoints.DISCOVERY_VALID_TERM,
bot.constants.endpoints.DISCOVERY_VALID_TERM(),
{ term },
);