Skip to content

Commit

Permalink
Merge branch 'develop' into mentionDisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
RishiChaubey31 authored Oct 26, 2024
2 parents 51ff5f6 + 28636d7 commit 7f5885a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controllers/mentionEachUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export async function mentionEachUser(
const msgToBeSent = transformedArgument?.displayMessageObj?.value;
const dev = transformedArgument?.dev?.value || false;
const showroles = transformedArgument?.showroles?.value || false;
// optional chaining here only because display message obj is optional argument
const usersWithMatchingRole = filterUserByRoles(
getMembersInServerResponse as UserArray[],
roleId
Expand All @@ -50,6 +51,7 @@ export async function mentionEachUser(
}
return discordTextResponse(responseMessage);
} else if (!dev || usersWithMatchingRole.length === 0) {
if (!dev || usersWithMatchingRole.length === 0) {
const responseData = checkDisplayType({
usersWithMatchingRole,
msgToBeSent,
Expand Down

0 comments on commit 7f5885a

Please sign in to comment.