-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
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
fix(cli) fix close websocket with code is not working (recreated) #8776
Conversation
@crowlKats please take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Preta-Crowz @crowlKats can we get some test case for this PR? |
@bartlomieju const cases = [
1000, // 1000, valid
3000, // 3000, valid
5000, // 5000, invalid
3141, // in range, valid
1024, // lower than 3000 and not 1000, invalid
6000 // higher than 5000 and not 1000, invalid
]
for (const code of cases) {
console.log(code + " on old code : " +
((code && (code !== 1000 && !(3000 <= code > 5000))) ? "\u001b[31minvalid" : "\u001b[32mvalid") + "\u001b[0m\t" +
code + " on new code : " +
((code && !(code === 1000 || (3000 <= code && code < 5000))) ? "\u001b[31minvalid" : "\u001b[32mvalid") + "\u001b[0m"
);
} output
|
I. Hate. Conflicts. |
Any ETA on this? |
ETA on this ? Thanks in advance |
Once conflicts are resolved and tests are provided |
Yes I know, but I'm talking to author Have a good day |
I already made this pr once and someone moved files to other folders and I got conflicts. Then I recreated it. I'll fix it soon. Also, changed code was tested. P.S. I'm not he/him. I'm she/her. |
We need actual test cases. Look at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
merge before pr
merged main to patch once because file was moved |
@Preta-Crowz Thank you for your fix! Note: we can add test cases for this fix later. It's tracked in #9001. |
* Adding missing await and updating some deps * Adding missing await and updating some deps * Adding missing await and updating some deps * Fix close code 4009 until deno fixes the issue: denoland/deno#8776 * Fix heartbeating * Add await for the requestGuildMembers in requestAllMembers * Change body && body.file to body?.file * Fix lint #1 * Change body && body.file to body?.file * Fix lint * Deno lint * Update request.ts * Fix deno lint error * Update src/ws/shard_manager.ts Co-authored-by: ayntee <ayyantee@gmail.com> * Fix fetchMembers * Fix getMembersByQuery * Try to fix RequestMembersQueue processing * Deno lint * Fix requestGuildMembers * Fix requestGuildMembers * Fix requestAllMembers * Undo useless changes * Fix merge conflict * Fix merge conflict * Change for loop to Promise.all * Deno fmt Co-authored-by: ayntee <ayyantee@gmail.com> Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
* Adding missing await and updating some deps * Adding missing await and updating some deps * Adding missing await and updating some deps * Fix close code 4009 until deno fixes the issue: denoland/deno#8776 * Fix heartbeating * Add await for the requestGuildMembers in requestAllMembers * Change body && body.file to body?.file * Fix lint #1 * Change body && body.file to body?.file * Fix lint * Deno lint * Update request.ts * Fix deno lint error * Update src/ws/shard_manager.ts Co-authored-by: ayntee <ayyantee@gmail.com> * Fix fetchMembers * Fix getMembersByQuery * Try to fix RequestMembersQueue processing * Deno lint * Fix requestGuildMembers * Fix requestGuildMembers * Fix requestAllMembers * Undo useless changes * Fix merge conflict * Fix merge conflict * Change for loop to Promise.all * Deno fmt Co-authored-by: ayntee <ayyantee@gmail.com> Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> 602a745
original pr : #8611
original pr has conflict with #8640 and that was merged first.
so I created this pull request again.