Fix random errors
This commit is contained in:
parent
69a8452574
commit
08e9ae5218
|
@ -10,11 +10,11 @@ export default new NamedCommand({
|
||||||
const attachment = message.attachments.first()!;
|
const attachment = message.attachments.first()!;
|
||||||
const gif = await petPetGif(attachment.url);
|
const gif = await petPetGif(attachment.url);
|
||||||
const file = new MessageAttachment(gif, "pat.gif");
|
const file = new MessageAttachment(gif, "pat.gif");
|
||||||
send({attachments: [file]});
|
send({files: [file]});
|
||||||
} else {
|
} else {
|
||||||
const gif = await petPetGif(author.displayAvatarURL({format: "png"}));
|
const gif = await petPetGif(author.displayAvatarURL({format: "png"}));
|
||||||
const file = new MessageAttachment(gif, "pat.gif");
|
const file = new MessageAttachment(gif, "pat.gif");
|
||||||
send({attachments: [file]});
|
send({files: [file]});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
id: "user",
|
id: "user",
|
||||||
|
@ -24,7 +24,7 @@ export default new NamedCommand({
|
||||||
const user: User = args[0];
|
const user: User = args[0];
|
||||||
const gif = await petPetGif(user.displayAvatarURL({format: "png"}));
|
const gif = await petPetGif(user.displayAvatarURL({format: "png"}));
|
||||||
const file = new MessageAttachment(gif, "pat.gif");
|
const file = new MessageAttachment(gif, "pat.gif");
|
||||||
send({attachments: [file]});
|
send({files: [file]});
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
any: new RestCommand({
|
any: new RestCommand({
|
||||||
|
@ -36,7 +36,7 @@ export default new NamedCommand({
|
||||||
else {
|
else {
|
||||||
const gif = await petPetGif(user.displayAvatarURL({format: "png"}));
|
const gif = await petPetGif(user.displayAvatarURL({format: "png"}));
|
||||||
const file = new MessageAttachment(gif, "pat.gif");
|
const file = new MessageAttachment(gif, "pat.gif");
|
||||||
send({attachments: [file]});
|
send({files: [file]});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue