Pull.
J'ai juste update le cutie.js, CONNARD Ah oui, j'ai aussi add le info.js, qui est merdique d'ailleurs
This commit is contained in:
20
node_modules/@discordjs/rest/dist/web.mjs
generated
vendored
20
node_modules/@discordjs/rest/dist/web.mjs
generated
vendored
@@ -18,7 +18,7 @@ import { CDNRoutes } from "discord-api-types/v10";
|
||||
// src/lib/utils/constants.ts
|
||||
import { getUserAgentAppendix } from "@discordjs/util";
|
||||
import { APIVersion } from "discord-api-types/v10";
|
||||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.5.1)`;
|
||||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.6.0)`;
|
||||
var DefaultUserAgentAppendix = getUserAgentAppendix();
|
||||
var DefaultRestOptions = {
|
||||
agent: null,
|
||||
@@ -434,6 +434,16 @@ var CDN = class {
|
||||
soundboardSound(soundId) {
|
||||
return `${this.cdn}${CDNRoutes.soundboardSound(soundId)}`;
|
||||
}
|
||||
/**
|
||||
* Generates a URL for a guild tag badge.
|
||||
*
|
||||
* @param guildId - The guild id
|
||||
* @param badgeHash - The hash of the badge
|
||||
* @param options - Optional options for the badge
|
||||
*/
|
||||
guildTagBadge(guildId, badgeHash, options) {
|
||||
return this.makeURL(`/guild-tag-badges/${guildId}/${badgeHash}`, options);
|
||||
}
|
||||
/**
|
||||
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
||||
*
|
||||
@@ -454,7 +464,8 @@ var CDN = class {
|
||||
allowedExtensions = ALLOWED_EXTENSIONS,
|
||||
base = this.cdn,
|
||||
extension = "webp",
|
||||
size
|
||||
size,
|
||||
animated
|
||||
} = {}) {
|
||||
extension = String(extension).toLowerCase();
|
||||
if (!allowedExtensions.includes(extension)) {
|
||||
@@ -466,6 +477,9 @@ Must be one of: ${allowedExtensions.join(", ")}`);
|
||||
Must be one of: ${ALLOWED_SIZES.join(", ")}`);
|
||||
}
|
||||
const url = new URL(`${base}${route}.${extension}`);
|
||||
if (animated !== void 0) {
|
||||
url.searchParams.set("animated", String(animated));
|
||||
}
|
||||
if (size) {
|
||||
url.searchParams.set("size", String(size));
|
||||
}
|
||||
@@ -1360,7 +1374,7 @@ var REST = class _REST extends AsyncEventEmitter {
|
||||
};
|
||||
|
||||
// src/shared.ts
|
||||
var version = "2.5.1";
|
||||
var version = "2.6.0";
|
||||
|
||||
// src/web.ts
|
||||
setDefaultStrategy(fetch);
|
||||
|
||||
Reference in New Issue
Block a user