mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
Merge branch 'main' of https://github.com/discordeno/discordeno into main
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user