diff --git a/src/helpers/misc/getGatewayBot.ts b/src/helpers/misc/getGatewayBot.ts index 2572043b9..7fa01739f 100644 --- a/src/helpers/misc/getGatewayBot.ts +++ b/src/helpers/misc/getGatewayBot.ts @@ -4,11 +4,7 @@ import { SnakeCasedPropertiesDeep } from "../../types/util.ts"; /** Get the bots Gateway metadata that can help during the operation of large or sharded bots. */ export async function getGatewayBot(bot: Bot): Promise { - const result = await bot.rest.runMethod( - bot.rest, - "get", - bot.constants.endpoints.GATEWAY_BOT - ); + const result = await bot.rest.runMethod(bot.rest, "get", bot.constants.endpoints.GATEWAY_BOT); return { url: result.url, diff --git a/src/helpers/misc/getUser.ts b/src/helpers/misc/getUser.ts index b925deba5..8b6a170c6 100644 --- a/src/helpers/misc/getUser.ts +++ b/src/helpers/misc/getUser.ts @@ -4,9 +4,5 @@ import { SnakeCasedPropertiesDeep } from "../../types/util.ts"; /** This function will return the raw user payload in the rare cases you need to fetch a user directly from the API. */ export async function getUser(bot: Bot, userId: bigint) { - return await bot.rest.runMethod( - bot.rest, - "get", - bot.constants.endpoints.USER(userId) - ); + return await bot.rest.runMethod(bot.rest, "get", bot.constants.endpoints.USER(userId)); }