Skip to content

Commit

Permalink
⏪ Attachment editing has been re-enabled, let's push this out again
Browse files Browse the repository at this point in the history
  • Loading branch information
daniwasonline committed Jul 17, 2024
1 parent 73a76f8 commit 89e817d
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/util/models/interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,17 +389,6 @@ export class InteractionMessageEvent {

if (imageGen === null) return await responseMsg.edit({ content: textResponse }).catch(() => null);

responseMsg
.reply({
files: [
{
attachment: imageGen,
name: "generated0.jpg",
},
],
})
.catch(() => {});

return await responseMsg
.edit({
content: final?.trim()?.length >= 2000 ? "" : final,
Expand All @@ -410,6 +399,10 @@ export class InteractionMessageEvent {
name: "response.md",
}
: null,
{
attachment: imageGen,
name: "generated0.jpg",
},
].filter((e) => e !== null),
})
.catch((e) => {
Expand Down

0 comments on commit 89e817d

Please sign in to comment.