fix when not in guild

This commit is contained in:
Supositware 2024-06-12 00:51:24 +02:00
parent 454f2c4296
commit ec08c4fa80

View file

@ -112,6 +112,10 @@ async function getVideoSize(urlArg, format = `bestvideo[height<=?${ytdlpMaxResol
async function getMaxFileSize(guild) {
return await new Promise((resolve) => {
if (!guild) {
resolve(25);
}
const tier = guild.premiumTier;
switch (tier) {
case 0: