7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!regexPatterns is array with more then 1 regex
/discord(?:app\\.com\\/invite|\\.(?:(?:com\\/invit|m)e|li|io|gg))|\\u0645\\u062E(?:\\u0627\\u0646\\u064A|\\u0646)\\u062B|\\u0627(?:\\u0632\\u063A\\u0628|\\u0645)\\u0643|\\u062C\\u0631\\u0627\\u0631|\\u0642(?:\\u0648\\u0627\\u062F|\\u062D\\u0628)|\\u0646\\u064A\\u0643|\\u0643\\u0633/|ـ
this is one of the regex'sEnsure that your regex patterns are correct because the above regex pattern seems to be invalid
if i put one it work fine
2 it stop working
What I would recommend is putting them one by one into your array until an error pops up (unless there is a very high amount of expressions in the array)
And ensure that you follow the following rule in the regexPatterns property.
![No description](https://cdn.answeroverflow.com/1159164208307503114/image.png)
If you read the error code properly, it says: "has invalid syntax" and displays which one does, which is what I have highlighted in my first answer. Please check your regex expression and try again