Skip to content

Commit

Permalink
fix: ensure joinable settings are set on legacy roles
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Aug 9, 2018
1 parent 521db98 commit 426798c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/settings/DatabaseQueries/PrivateRoomQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ class PrivateRoomQueries {
joinable.isLeaveable = typeof parsed.leaveable !== 'undefined' ? parsed.leavable : true;
return joinable;
} if (typeof parsed === 'string') {
return new JoinableRole(guild.roles.get(parsed));
const joinable = new JoinableRole(guild.roles.get(parsed));
joinable.requiredRole = undefined;
joinable.isLeaveable = true;
return joinable;
}
return undefined;
})
Expand Down

0 comments on commit 426798c

Please sign in to comment.