mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-11-01 08:39:31 +01:00
Fix attachments not getting placeholders replaced
This commit is contained in:
parent
4613e821e2
commit
c7466202b9
@ -335,6 +335,7 @@ public class ReceivedDiscordMessageImpl implements ReceivedDiscordMessage {
|
|||||||
for (Attachment attachment : attachments) {
|
for (Attachment attachment : attachments) {
|
||||||
components.add(ComponentUtil.fromAPI(
|
components.add(ComponentUtil.fromAPI(
|
||||||
discordSRV.componentFactory().textBuilder(attachmentFormat)
|
discordSRV.componentFactory().textBuilder(attachmentFormat)
|
||||||
|
.applyPlaceholderService()
|
||||||
.addPlaceholder("file_name", attachment.fileName())
|
.addPlaceholder("file_name", attachment.fileName())
|
||||||
.addPlaceholder("file_url", attachment.url())
|
.addPlaceholder("file_url", attachment.url())
|
||||||
.build()
|
.build()
|
||||||
|
Loading…
Reference in New Issue
Block a user