fix when not in guild
This commit is contained in:
parent
454f2c4296
commit
ec08c4fa80
1 changed files with 4 additions and 0 deletions
|
@ -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…
Reference in a new issue