Skip to content

Commit

Permalink
small fix for discord invites
Browse files Browse the repository at this point in the history
  • Loading branch information
LevaniVashadze committed Dec 5, 2023
1 parent 62e8af6 commit bbc5770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/Tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def create(
elif re.match(
"(https|http)://(dsc\.gg|discord\.gg|discord\.io|dsc\.lol)/?[\S]+/?",
content,
):
) or re.match("(dsc\.gg|discord\.gg|discord\.io|dsc\.lol)/?[\S]+/?", content):
return await errorEmb(inter, "You can't make a tag with an invite")
# if content contains slurs or severe profanity
elif profanity.contains_profanity(content):
Expand Down

0 comments on commit bbc5770

Please sign in to comment.