mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
change: prettier code
This commit is contained in:
@@ -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<GetGatewayBot> {
|
||||
const result = await bot.rest.runMethod<GetGatewayBot>(
|
||||
bot.rest,
|
||||
"get",
|
||||
bot.constants.endpoints.GATEWAY_BOT
|
||||
);
|
||||
const result = await bot.rest.runMethod<GetGatewayBot>(bot.rest, "get", bot.constants.endpoints.GATEWAY_BOT);
|
||||
|
||||
return {
|
||||
url: result.url,
|
||||
|
||||
@@ -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<User>(
|
||||
bot.rest,
|
||||
"get",
|
||||
bot.constants.endpoints.USER(userId)
|
||||
);
|
||||
return await bot.rest.runMethod<User>(bot.rest, "get", bot.constants.endpoints.USER(userId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user