Browse Source

Update ChannelHelper.cs

pull/2034/head
quin lynch 3 years ago
parent
commit
12c572ae78
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs

+ 1
- 1
src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs View File

@@ -374,7 +374,7 @@ namespace Discord.Rest

if (channel is ITextChannel guildTextChannel)
{
var contentSize = (ulong)attachments.Sum(x => x.Stream.Length);
ulong contentSize = (ulong)attachments.Where(x => x.Stream.CanSeek).Sum(x => x.Stream.Length);

if (contentSize > guildTextChannel.Guild.MaxUploadLimit)
{


Loading…
Cancel
Save