mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -551,6 +551,6 @@ module.exports = class CarRaceCommand extends Command {
|
||||
greyscale(ctx, bg.width - 110 - 125, 50, 125, 125);
|
||||
}
|
||||
}
|
||||
return canvas.toBuffer();
|
||||
return canvas.toBuffer('image/png');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -293,7 +293,7 @@ module.exports = class ChessCommand extends Command {
|
||||
row -= 1;
|
||||
}
|
||||
}
|
||||
return canvas.toBuffer();
|
||||
return canvas.toBuffer('image/png');
|
||||
}
|
||||
|
||||
async loadImages() {
|
||||
|
||||
Reference in New Issue
Block a user