[Feature] Per file attachement size limits (#3090)

* `SendFilesAsync` check file size per attachment instead of combined

* add `AttachmentSizeLimit` to interaction entites
This commit is contained in:
Mihail Gribkov
2025-04-05 16:44:33 +03:00
committed by GitHub
parent fb90701149
commit 649f52b491
5 changed files with 22 additions and 9 deletions

View File

@@ -90,6 +90,9 @@ namespace Discord.WebSocket
/// <inheritdoc cref="IDiscordInteraction.Entitlements" />
public IReadOnlyCollection<RestEntitlement> Entitlements { get; private set; }
/// <inheritdoc/>
public ulong AttachmentSizeLimit { get; private set; }
/// <inheritdoc/>
public IReadOnlyDictionary<ApplicationIntegrationType, ulong> IntegrationOwners { get; private set; }
@@ -194,6 +197,8 @@ namespace Discord.WebSocket
_ => null
};
}
AttachmentSizeLimit = model.AttachmentSizeLimit;
}
/// <summary>