From 5597521cacc5fdea498d74ab20fe95a23095147d Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Mon, 12 Apr 2021 21:04:05 +0200 Subject: [PATCH 1/2] rest: runMethod add T back --- src/rest/run_method.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, From b51611e0ed2981951e224c185a98bc9b5106bcc5 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Mon, 12 Apr 2021 21:09:48 +0200 Subject: [PATCH 2/2] fix(structures/gu8ild): add shardId to interface --- src/structures/guild.ts | 2 ++ 1 file changed, 2 insertions(+) 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 */