Commit 55c5eb4
authored
Chatter cache fix and typo corrections (#208)
* Replace if statement with if expression
* Simplify conditional into return statement
* Inline variable that is immediately returned
* Comparison moved to the right
Use set when checking membership of a collection of literals
* Inline variable that is immediately returned
* remove none from dict.get returns none by default
* Replace if statement with if expression
Replace multiple comparisons of same variable with `in` operator
Remove redundant conditional
* Merge nested if conditions
Remove none from dict.get returns none by default
* Lift code into else after jump in control flow, Merge else clause's nested if statement into elif
Remove redundant pass statements
Simplify logical expression
* Inline variable that is immediately returned
* Merge nested if conditions
Inline variable that is immediately returned
* Merge nested if conditions
* Swap if/else branches, Remove unnecessary else after guard condition
* Replace unneeded comprehension with generator
* added fetch_channel to client
* formatting
* remove typehint of User
* Added fetch_follow method
Removed for loop for fetch_channel
* Update README.rst
Added myself....just because
* fix remove_cog
* Fixed remove_cog
* changed from list to set
* Moved fetch_follow to user from client
Fixed black formatting to 120
* Added ChannelInfo class in models
Changed fetch_channel to return the ChannelInfo object
* Removed except from remove_cog
Issue was in unload_module
Missing .items() for callsbacks
Missing .__name__ for comparison
* fixed reload_module
* added created_at to User class
* Routine fix where after task run completion
iterations would set to 0 and run infinitely.
* Add typehint for PartialUser in fetch_follow
* Removed duplicate fetch_channel
Updated docstring fetch_channel
* Changed badges to a property
returns a dict
* change to more obvious wording
* fetch duplicate fetch_channel
update docstring
* added founder to is_subscriber
* Update websocket to fix chatters
Correct some typos
Update badges docstring
Fix eventsub BanData key
* reverted changes to ChannelBanData model
* changed payload key to is_permanent for ChannelBanData1 parent 8b555f5 commit 55c5eb4
4 files changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
| 388 | + | |
| 389 | + | |
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
| |||
425 | 426 | | |
426 | 427 | | |
427 | 428 | | |
| 429 | + | |
428 | 430 | | |
429 | | - | |
| 431 | + | |
430 | 432 | | |
431 | 433 | | |
432 | 434 | | |
| |||
0 commit comments