This commit is contained in:
ayntee
2021-04-12 23:12:53 +04:00
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -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<T = any>(
method: "get" | "post" | "put" | "delete" | "patch",
url: string,
body?: unknown,
retryCount = 0,
bucketId?: string
) {
): Promise<T> {
rest.eventHandlers.debug?.("requestCreate", {
method,
url,
+2
View File
@@ -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 */