This commit is contained in:
Mihail Gribkov
2023-11-19 00:08:51 +03:00
committed by GitHub
parent b988a18625
commit 89bebc361a
7 changed files with 66 additions and 18 deletions

View File

@@ -130,7 +130,7 @@ namespace Discord.WebSocket
{
foreach (var attachment in resolved.Attachments.Value)
{
var discordAttachment = Attachment.Create(attachment.Value);
var discordAttachment = Attachment.Create(attachment.Value, discord);
Attachments.Add(ulong.Parse(attachment.Key), discordAttachment);
}

View File

@@ -87,7 +87,7 @@ namespace Discord.WebSocket
{
var attachments = ImmutableArray.CreateBuilder<Attachment>(value.Length);
for (int i = 0; i < value.Length; i++)
attachments.Add(Attachment.Create(value[i]));
attachments.Add(Attachment.Create(value[i], Discord));
_attachments = attachments.ToImmutable();
}
else