Skip to content

Commit

Permalink
Fix Attachment signatures.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihlus committed Apr 4, 2021
1 parent 938932b commit c05608b
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 38 deletions.
7 changes: 1 addition & 6 deletions .idea/.idea.Remora.Discord/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/.idea.Remora.Discord/.idea/riderModule.iml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ public interface IAttachment
/// <summary>
/// Gets the height of the file (if image).
/// </summary>
int? Height { get; }
Optional<int?> Height { get; }

/// <summary>
/// Gets the width of the file (if image).
/// </summary>
int? Width { get; }
Optional<int?> Width { get; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>12.0.2</Version>
<Version>13.0.0</Version>
<Description>
$(BaseDescription)

Expand All @@ -14,8 +14,7 @@
API.
</Description>
<PackageReleaseNotes>
Update dependencies.
Enable SourceLink.
Fix Attachment signature.
</PackageReleaseNotes>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions Backend/Remora.Discord.API/API/Objects/Messages/Attachment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public record Attachment
int Size,
string Url,
string ProxyUrl,
int? Height,
int? Width
Optional<int?> Height,
Optional<int?> Width
) : IAttachment;
}
5 changes: 2 additions & 3 deletions Backend/Remora.Discord.API/Remora.Discord.API.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
</PropertyGroup>

<PropertyGroup>
<Version>12.0.2</Version>
<Version>13.0.0</Version>
<Description>
$(BaseDescription)

This package contains the default implementations for the abstract API definitions, provided by
Remora.Discord.API.Abstractions.
</Description>
<PackageReleaseNotes>
Update dependencies.
Enable SourceLink.
Fix Attachment signature.
</PackageReleaseNotes>
</PropertyGroup>

Expand Down
3 changes: 1 addition & 2 deletions Backend/Remora.Discord.Caching/Remora.Discord.Caching.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.1.8</Version>
<Version>1.1.9</Version>
<Description>
$(BaseDescription)

This package contains memory cache functionality for the gateway and REST API.
</Description>
<PackageReleaseNotes>
Update dependencies.
Enable SourceLink.
</PackageReleaseNotes>
</PropertyGroup>

Expand Down
3 changes: 1 addition & 2 deletions Backend/Remora.Discord.Gateway/Remora.Discord.Gateway.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.1.9</Version>
<Version>3.1.10</Version>
<Description>
$(BaseDescription)

Expand All @@ -14,7 +14,6 @@
</Description>
<PackageReleaseNotes>
Update dependencies.
Enable SourceLink.
</PackageReleaseNotes>
</PropertyGroup>

Expand Down
3 changes: 1 addition & 2 deletions Backend/Remora.Discord.Rest/Remora.Discord.Rest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>7.0.4</Version>
<Version>7.0.5</Version>
<Description>
$(BaseDescription)

Expand All @@ -14,7 +14,6 @@
</Description>
<PackageReleaseNotes>
Update dependencies.
Enable SourceLink.
</PackageReleaseNotes>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Remora.Discord.Commands/Remora.Discord.Commands.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.7.4</Version>
<Version>3.7.5</Version>
<Description>
$(BaseDescription)

Expand Down
3 changes: 1 addition & 2 deletions Remora.Discord.Hosting/Remora.Discord.Hosting.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.0.17</Version>
<Version>3.0.18</Version>
<Description>
$(BaseDescription)

This package provides a simple implementation of a hosted service.
</Description>
<PackageReleaseNotes>
Update dependencies.
Enable SourceLink.
</PackageReleaseNotes>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion Remora.Discord/Remora.Discord.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.0.23</Version>
<Version>3.0.24</Version>
<Description>
$(BaseDescription)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"id": "828277590506340435",
"filename": "booga.pdf",
"size": 1643,
"url": "https://fake.url/booga.pdf",
"proxy_url": "https://fake.url/booga.pdf"
}

0 comments on commit c05608b

Please sign in to comment.