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) {
|
||||
components.add(ComponentUtil.fromAPI(
|
||||
discordSRV.componentFactory().textBuilder(attachmentFormat)
|
||||
.applyPlaceholderService()
|
||||
.addPlaceholder("file_name", attachment.fileName())
|
||||
.addPlaceholder("file_url", attachment.url())
|
||||
.build()
|
||||
|
Loading…
Reference in New Issue
Block a user