mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 13:56:43 +02:00
Fix
This commit is contained in:
@@ -42,7 +42,7 @@ module.exports = class MagikCommand extends Command {
|
|||||||
|
|
||||||
toBuffer(magik) {
|
toBuffer(magik) {
|
||||||
return new Promise((res, rej) => {
|
return new Promise((res, rej) => {
|
||||||
magik.toBuffer('PNG', (err, buffer) => {
|
magik.toBuffer((err, buffer) => {
|
||||||
if (err) return rej(err);
|
if (err) return rej(err);
|
||||||
return res(buffer);
|
return res(buffer);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user