Skip to content

Commit

Permalink
tweaked set init, fixed lobby not initializing properly, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
BestMordaEver committed Aug 21, 2024
1 parent c5fc909 commit 9d14d9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Voice Manager v4.7.5
## Voice Manager v4.9.7

<a href="https://top.gg/bot/601347755046076427">
<img src="https://top.gg/api/widget/status/601347755046076427.svg" alt="Voice Manager" />
Expand Down
2 changes: 1 addition & 1 deletion libs/storage/lobbies.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion libs/utils/set.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d14d9d

Please sign in to comment.