-
-
Notifications
You must be signed in to change notification settings - Fork 9
Add paste service utility #179
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
Conversation
✅ Deploy Preview for bot-core ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
801e1e5
to
574f451
Compare
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.
A couple of things that might make sense to have but aren't blockers:
- Enable the "Use a longer URI" option, although I don't see it in the API docs.
- Return the deletion URL. This would allow us to cache it and potentially use it via a command if we find that a paste contains sensitive information.
I like both of these, added in a force push. |
pydis_core/utils/paste_service.py
Outdated
http_session (aiohttp.ClientSession): The session to use when POSTing the content to the paste service. | ||
file_name: The name of the file to save to the paste service. | ||
lexer: The lexer to save the content with. | ||
max_size: The maximum number of bytes to be allowed. Anything larger that 256kB will be rejected. |
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.
This needs to be updated.
max_size: The maximum number of bytes to be allowed. Anything larger that 256kB will be rejected. | |
max_size: The maximum number of bytes to be allowed. Anything larger that 128kB will be rejected. |
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.
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 🌟.
Good ol' reliable Chris. |
Docs:

changelog:
