diff --git a/src/rest/run_method.ts b/src/rest/run_method.ts index 74999b16c..0616194c2 100644 --- a/src/rest/run_method.ts +++ b/src/rest/run_method.ts @@ -1,13 +1,13 @@ import { API_VERSION, BASE_URL, IMAGE_BASE_URL } from "../util/constants.ts"; import { rest } from "./rest.ts"; -export async function runMethod( +export async function runMethod( method: "get" | "post" | "put" | "delete" | "patch", url: string, body?: unknown, retryCount = 0, bucketId?: string -) { +): Promise { rest.eventHandlers.debug?.("requestCreate", { method, url, diff --git a/src/structures/guild.ts b/src/structures/guild.ts index b7dc6a75c..c2abd3f61 100644 --- a/src/structures/guild.ts +++ b/src/structures/guild.ts @@ -216,6 +216,8 @@ export interface DiscordenoGuild extends | "owner" | "emojis" > { + /** The id of the shard this guild is bound to */ + shardId: number; /** Total number of members in this guild */ memberCount: number; /** The roles in the guild */