We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function
module.exports = [ { name: "whois", code: ` $clientTyping $reply[$messageID;true] $if[$isNumber[$noMentionMessage]==true; true $userTag[$message]; false $userID[$message] ] `, }, ];
v6.8.x
v20.16.0 (LTS)
So the issue is the $if functions (and many others like it iirc) work like this:
The problem is, if ONE side (doesn't matter which since they both run anyway) runs into an error, the ENTIRE thing breaks and doesn't run.
What it should do is NOT run the side that doesn't match the condition, so it never gets that error in the first place.
It should only run one side, the side that matches weather it is True or false, but BOTH sides run and it causes problems.
No response
The text was updated successfully, but these errors were encountered:
Update: this might be relevant to the issue: #559
Sorry, something went wrong.
this is a known issue, related to #559
Leref
No branches or pull requests
Bug Type
Function
Bugged Behavior
Version of aoi.js
v6.8.x
Version of Node.js
v20.16.0 (LTS)
Excepted Output
So the issue is the $if functions (and many others like it iirc) work like this:
The problem is, if ONE side (doesn't matter which since they both run anyway) runs into an error, the ENTIRE thing breaks and doesn't run.
What it should do is NOT run the side that doesn't match the condition, so it never gets that error in the first place.
It should only run one side, the side that matches weather it is True or false, but BOTH sides run and it causes problems.
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: