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
Fixed the code snippets limits #1551
Conversation
dolphingarlic
commented
Apr 27, 2021
- Made the line limit 15 (including lines between two snippets)
- Halved the char limit to be 1000
Merge pull request python-discord#1028 from dolphingarlic/master
I'd like to suggest before this gets reviewed that perhaps instead of halving the limit which may cut off stuff people want to see, if it gets past 1k characters the output is redirect to #bot-commands instead (line limit should stay) |
Whoops, approved, but I agree with @vcokltfre's comment. |
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.
Looks great!
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.
You can get None from bot.get_channel
if the cache isn't ready yet. Usually this problem is circumvented by awaiting the wait_until_guild_available
event on the bot instance.
I don't think you'd receive the message event if the cache wasn't ready yet. |
Are you sure about that? I thought message events are still emitted while the cache is filling? |
I guess it would be fine to just wait until the guild is ready just in case. |
Yep, message events can still be received before the ready event is received |