Dev (#12)
* health check * Update Dockerfile * simplifying the deployment * Update Bot.js makes the find team command public * test (#9) * Dev (#7) * health check * Update Dockerfile * simplifying the deployment * Dev (#8) * health check * Update Dockerfile * simplifying the deployment * Update Bot.js makes the find team command public * Update PlayerService.js * massive update???? could break stuff * Update Bot.js update
This commit is contained in:
29
node_modules/@discordjs/rest/dist/index.js
generated
vendored
29
node_modules/@discordjs/rest/dist/index.js
generated
vendored
@@ -121,10 +121,13 @@ async function resolveBody(body) {
|
||||
}
|
||||
__name(resolveBody, "resolveBody");
|
||||
|
||||
// src/lib/CDN.ts
|
||||
var import_v102 = require("discord-api-types/v10");
|
||||
|
||||
// src/lib/utils/constants.ts
|
||||
var import_util = require("@discordjs/util");
|
||||
var import_v10 = require("discord-api-types/v10");
|
||||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.4.0)`;
|
||||
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.5.1)`;
|
||||
var DefaultUserAgentAppendix = (0, import_util.getUserAgentAppendix)();
|
||||
var DefaultRestOptions = {
|
||||
agent: null,
|
||||
@@ -162,7 +165,17 @@ var RESTEvents = /* @__PURE__ */ ((RESTEvents2) => {
|
||||
})(RESTEvents || {});
|
||||
var ALLOWED_EXTENSIONS = ["webp", "png", "jpg", "jpeg", "gif"];
|
||||
var ALLOWED_STICKER_EXTENSIONS = ["png", "json", "gif"];
|
||||
var ALLOWED_SIZES = [16, 32, 64, 128, 256, 512, 1024, 2048, 4096];
|
||||
var ALLOWED_SIZES = [
|
||||
16,
|
||||
32,
|
||||
64,
|
||||
128,
|
||||
256,
|
||||
512,
|
||||
1024,
|
||||
2048,
|
||||
4096
|
||||
];
|
||||
var OverwrittenMimeTypes = {
|
||||
// https://github.com/discordjs/discord.js/issues/8557
|
||||
"image/apng": "image/png"
|
||||
@@ -445,7 +458,7 @@ var CDN = class {
|
||||
* @param options - Optional options for the banner
|
||||
*/
|
||||
guildMemberBanner(guildId, userId, bannerHash, options) {
|
||||
return this.dynamicMakeURL(`/guilds/${guildId}/users/${userId}/banner`, bannerHash, options);
|
||||
return this.dynamicMakeURL(`/guilds/${guildId}/users/${userId}/banners/${bannerHash}`, bannerHash, options);
|
||||
}
|
||||
/**
|
||||
* Generates an icon URL, e.g. for a guild.
|
||||
@@ -522,6 +535,14 @@ var CDN = class {
|
||||
guildScheduledEventCover(scheduledEventId, coverHash, options) {
|
||||
return this.makeURL(`/guild-events/${scheduledEventId}/${coverHash}`, options);
|
||||
}
|
||||
/**
|
||||
* Generates a URL for a soundboard sound.
|
||||
*
|
||||
* @param soundId - The soundboard sound id
|
||||
*/
|
||||
soundboardSound(soundId) {
|
||||
return `${this.cdn}${import_v102.CDNRoutes.soundboardSound(soundId)}`;
|
||||
}
|
||||
/**
|
||||
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
|
||||
*
|
||||
@@ -1448,7 +1469,7 @@ var REST = class _REST extends import_async_event_emitter.AsyncEventEmitter {
|
||||
};
|
||||
|
||||
// src/shared.ts
|
||||
var version = "2.4.0";
|
||||
var version = "2.5.1";
|
||||
|
||||
// src/index.ts
|
||||
globalThis.FormData ??= import_undici2.FormData;
|
||||
|
||||
Reference in New Issue
Block a user