Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Izocel committed May 14, 2024
1 parent 3154842 commit 8635303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configs/guildsConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ export function hasCs2DockerAccess(member: GuildMember) {
return true;
}

const accesses: String[] = getDefaultConfigs().cs2.dockerAccess
.concat(config.cs2.dockerAccess ?? []);
const accesses: String[] = getDefaultConfigs().cs2?.dockerAccess
.concat(config.cs2?.dockerAccess ?? []);

for (const role of member.roles.cache.values()) {
const name: string = role.name.toLowerCase();
Expand Down

0 comments on commit 8635303

Please sign in to comment.