fix when not in guild

Slash-V14
Supositware 1 month ago
parent 454f2c4296
commit ec08c4fa80

@ -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:

Loading…
Cancel
Save