Skip to content
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

Add slowmode flood error #1279

Merged
merged 13 commits into from Sep 24, 2019

Conversation

@Andrebcd4
Copy link
Contributor

commented Sep 23, 2019

No description provided.

Andrebcd4 added 6 commits Sep 23, 2019
Functional slowmode error
Update docs
@Lonami

This comment has been minimized.

Copy link
Member

commented Sep 24, 2019

The changes are good, but I think we should special-case SLOWMODE to become SlowMode and not Slowmode. This is done here:

error_code.replace('FIRSTNAME', 'FIRST_NAME').lower(), suffix='Error')

Simply add another .replace('SLOWMODE', 'SLOW_MODE'), and then update your code to use SlowModeWaitError.

Andrebcd4 added 4 commits Sep 24, 2019
Patch 3
Patch 2
Andrebcd4 and others added 2 commits Sep 24, 2019
Co-Authored-By: Lonami <totufals@hotmail.com>
Co-Authored-By: Lonami <totufals@hotmail.com>
@Andrebcd4

This comment has been minimized.

Copy link
Contributor Author

commented Sep 24, 2019

By the way, error description was taken from FLOOD_WAIT_X. Maybe you want to update it.

Co-Authored-By: Lonami <totufals@hotmail.com>
@Lonami Lonami merged commit 40aa46e into LonamiWebs:master Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.