From 08e9ae521850d6b68f9919166d8a4d8563ebc5b5 Mon Sep 17 00:00:00 2001 From: smartfridge <37928912+smartfrigde@users.noreply.github.com> Date: Mon, 13 Dec 2021 00:39:32 +0100 Subject: [PATCH] Fix random errors --- src/commands/fun/pat.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/fun/pat.ts b/src/commands/fun/pat.ts index a1e91fb..18cff34 100644 --- a/src/commands/fun/pat.ts +++ b/src/commands/fun/pat.ts @@ -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]}); } } })