Skip to content

Commit

Permalink
fix(discord): Fix map submission images expiring
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Dec 6, 2023
1 parent d6fdc6b commit 97e197b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ class MapCommand(instances: InstanceManager) : ImperiumApplication.Listener {
.first()
.toBuilder()
.addField("Reviewer", actor.user.mentionTag)
// Avoids the image expiring, I think...
.setImage(actor.message.embeds.first().image.get().url.toString())
.setImage(actor.message.embeds.first().image.get().asInputStream(discord.api))
.setColor(color),
)
.removeAllComponents()
Expand Down

0 comments on commit 97e197b

Please sign in to comment.