utility.presence: async moment
This commit is contained in:
parent
2eaeb5c583
commit
c87d1e1422
1 changed files with 2 additions and 2 deletions
|
@ -816,7 +816,7 @@ presence.callback = async function (msg, line) {
|
|||
const smallImage = await fetch(smallUrl)
|
||||
.then((res) => res.arrayBuffer())
|
||||
.then((b) => Buffer.from(b));
|
||||
const smallImageBuffer = sharp(smallImage)
|
||||
const smallImageBuffer = await sharp(smallImage)
|
||||
.resize(20, 20)
|
||||
.toBuffer();
|
||||
|
||||
|
@ -829,7 +829,7 @@ presence.callback = async function (msg, line) {
|
|||
}
|
||||
|
||||
files.push({
|
||||
content: presenceImage.toBuffer(),
|
||||
content: await presenceImage.toBuffer(),
|
||||
name: `${index}.png`,
|
||||
});
|
||||
embed.thumbnail = {
|
||||
|
|
Loading…
Reference in a new issue