mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
Fix random errors
This commit is contained in:
parent
69a8452574
commit
08e9ae5218
1 changed files with 4 additions and 4 deletions
|
@ -10,11 +10,11 @@ export default new NamedCommand({
|
|||
const attachment = message.attachments.first()!;
|
||||
const gif = await petPetGif(attachment.url);
|
||||
const file = new MessageAttachment(gif, "pat.gif");
|
||||
send({attachments: [file]});
|
||||
send({files: [file]});
|
||||
} else {
|
||||
const gif = await petPetGif(author.displayAvatarURL({format: "png"}));
|
||||
const file = new MessageAttachment(gif, "pat.gif");
|
||||
send({attachments: [file]});
|
||||
send({files: [file]});
|
||||
}
|
||||
},
|
||||
id: "user",
|
||||
|
@ -24,7 +24,7 @@ export default new NamedCommand({
|
|||
const user: User = args[0];
|
||||
const gif = await petPetGif(user.displayAvatarURL({format: "png"}));
|
||||
const file = new MessageAttachment(gif, "pat.gif");
|
||||
send({attachments: [file]});
|
||||
send({files: [file]});
|
||||
}
|
||||
}),
|
||||
any: new RestCommand({
|
||||
|
@ -36,7 +36,7 @@ export default new NamedCommand({
|
|||
else {
|
||||
const gif = await petPetGif(user.displayAvatarURL({format: "png"}));
|
||||
const file = new MessageAttachment(gif, "pat.gif");
|
||||
send({attachments: [file]});
|
||||
send({files: [file]});
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue