Skip to content

Commit

Permalink
Update auto-join.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
zuuring committed Oct 28, 2024
1 parent 41fe037 commit b64ac57
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions discord-scripts/thread-management/auto-join.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ async function autoJoinThread(
)
.reverse()

const matchingRole = server.roles.cache.find((role) =>
roleMatchPrefixes?.some(
(channelPrefixRole) => role.name.toLowerCase() === channelPrefixRole,
),
const matchingRole = server.roles.cache.find(
(role) =>
roleMatchPrefixes?.some(
(channelPrefixRole) => role.name.toLowerCase() === channelPrefixRole,
),
)

if (matchingRole !== undefined) {
Expand Down

0 comments on commit b64ac57

Please sign in to comment.