Skip to content

Commit

Permalink
fixed cat command
Browse files Browse the repository at this point in the history
  • Loading branch information
raluvy95 committed Oct 5, 2024
1 parent 0b53c75 commit 4330e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/fun/cat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ function generator(msg: Message, _args: string[]) {
try {

const j = await r.blob();
const imgLink = URL.createObjectURL(j);
const buff = Buffer.from(await j.arrayBuffer())
client.createMessage(
msg.channel.id, imgLink
msg.channel.id, "here's a kitty 🐱", { name: "kitty.png", file: buff }
);
} catch {
client.createMessage(msg.channel.id, err);
Expand Down

0 comments on commit 4330e38

Please sign in to comment.