feat: add correct error about guild boost file size limit
This commit is contained in:
@@ -200,7 +200,7 @@ namespace PluralKit.Bot
|
||||
|
||||
foreach (var attachment in attachments)
|
||||
{
|
||||
if (attachment.Size >= sizeThreshold) throw Errors.AttachmentTooLarge;
|
||||
if (attachment.Size >= sizeThreshold) throw Errors.AttachmentTooLarge(sizeThreshold);
|
||||
|
||||
if (list.Sum(a => a.Size) + attachment.Size >= sizeThreshold)
|
||||
{
|
||||
|
Reference in New Issue
Block a user