chore: set r2 mime type
This commit is contained in:
2 files changed
+5
-3
No files matched your search
@@ -89,7 +89,7 @@ class FancyBot : OneBotListener {
|
||||
} else {
|
||||
try {
|
||||
if (imagesUrl.size == 1) {
|
||||
val imageByteArray = imagesUrl[0].toURL().readBytes()
|
||||
val imageByteArray = imagesUrl.first().toURL().readBytes()
|
||||
val imageFileType = imageByteArray.getFileType()
|
||||
val imageBedUrl = ImageBed.upload(imageByteArray, imageFileType)
|
||||
val msg = MessageChain.Builder()
|
||||
|
||||
Reference in New Issue
Block a user