I want to send a screenshot over a discord webhook. I am using the dhooks module for this. To send a file, I need a "file-like object" so I want to get a file-like object without having the need to store the screenshot as a file. Any idea how to do this?
Can I get the screenshot data as a file-like object or the image in bytes without saving any file?
572 views Asked by Mark Mikealson At
1
I just added an example in the documentation: