Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
feat: ignore link check for role (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude authored May 16, 2024
1 parent 3ed025b commit 2ec6e00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/links/checkLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export const checkLinks = async (
): Promise<EmbedBuilder | null> => {
const content = message.content;

// ignore link check in message from users who have the "team eddie" role
if (message.member?.roles.cache.some((role) => role.name === 'team eddi')) {
return null;
}

try {
const urlMatch = content?.match(urlPattern);
if (!urlMatch) {
Expand Down

0 comments on commit 2ec6e00

Please sign in to comment.