diff --git a/README.md b/README.md index 719979a..cc6a5ad 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## Voice Manager v4.7.5 +## Voice Manager v4.9.7 Voice Manager diff --git a/libs/storage/lobbies.lua b/libs/storage/lobbies.lua index dd5f3dc..2bcca27 100644 --- a/libs/storage/lobbies.lua +++ b/libs/storage/lobbies.lua @@ -181,7 +181,7 @@ setmetatable(lobbies, { guild = guilds[guildID], isMatchmaking = tonumber(isMatchmaking) == 1, roles = set(roles), - limit = limit, + limit = tonumber(limit) or 500, permissions = botPermissions(tonumber(permissions) or 0), template = template, target = target, diff --git a/libs/utils/set.lua b/libs/utils/set.lua index 562b41b..86fb077 100644 --- a/libs/utils/set.lua +++ b/libs/utils/set.lua @@ -40,7 +40,7 @@ local setMT = { return function (init) local set = setmetatable({n = 0},setMT) if init then - if #init ~= 0 then + if init[1] ~= nil then for _, k in ipairs(init) do set:add(k) end