interactions.py
interactions.py copied to clipboard
refactor: split dispatch in two methods
About
This pull request splits _dispatch_event in two other methods.
Checklist
- [ ] I've ran
pre-committo format and lint the change(s) made. - [x] I've checked to make sure the change(s) work on
3.8.6and higher. - [ ] This fixes/solves an Issue (If existent):.
- resolves #
- I've made this pull request for/as: (check all that apply)
- [ ] Documentation
- [ ] Breaking change
- [ ] New feature/enhancement
- [ ] Bugfix
Can I include #1004 into this pr?
Resolved merge conflict lol. Why it shows changes which already in unstable?
oh damn... rebase in third time
oh damn... rebase in third time
Wait until #1022
okay
Will mark as draft
I hate this pr
I hate this pr
Perfect
Its fine now
I will reopen this fucking pr
fine
Can you resolve conflicts and re-test?
Can you resolve conflicts and re-test?
Resolved and it works
Merge it pls. Every new rebase takes more time than previous
Merge it pls. Every new rebase takes more time than previous
I find it satisfying for how long this PR is already opened without being merged and how it just gets worse and worse xD
This pr does not changes code or logic of dispatching. Im just moved code in function. I know its impossible to review this pr and better just look at my branch
Merge it pls. Every new rebase takes more time than previous
I find it satisfying for how long this PR is already opened without being merged and how it just gets worse and worse xD
This pr contain absolutely same code we have on unstable branch soooo do you mean our code gets worse and worse then lol?
Merge it pls. Every new rebase takes more time than previous
I find it satisfying for how long this PR is already opened without being merged and how it just gets worse and worse xD
This pr contain absolutely same code we have on unstable branch soooo do you mean our code gets worse and worse then lol?
Fine but has it been tested enough to ensure that you did everything correctly? So we know that you did not indent something wrong etc
I tested it right now and yes, it works fineee (as expected).
_dispatch_event properly calls methods to dispatch interactions and discord events.
Review it here https://github.com/Damego/library/blob/ref-split-dispatch/interactions/api/gateway/client.py#L362
looks like it needs another rebase (sorry)