* 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:
VinceC
2025-07-07 21:38:19 -05:00
committed by GitHub
parent 0c86148835
commit 3453be6947
1742 changed files with 28844 additions and 67711 deletions

View File

@@ -12,10 +12,13 @@ function getDefaultStrategy() {
}
__name(getDefaultStrategy, "getDefaultStrategy");
// src/lib/CDN.ts
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.4.0)`;
var DefaultUserAgent = `DiscordBot (https://discord.js.org, 2.5.1)`;
var DefaultUserAgentAppendix = getUserAgentAppendix();
var DefaultRestOptions = {
agent: null,
@@ -53,7 +56,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"
@@ -336,7 +349,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.
@@ -413,6 +426,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}${CDNRoutes.soundboardSound(soundId)}`;
}
/**
* Constructs the URL for the resource, checking whether or not `hash` starts with `a_` if `dynamic` is set to `true`.
*
@@ -1339,7 +1360,7 @@ var REST = class _REST extends AsyncEventEmitter {
};
// src/shared.ts
var version = "2.4.0";
var version = "2.5.1";
// src/web.ts
setDefaultStrategy(fetch);