Upgrade discord.net

This commit is contained in:
Daan Boerlage 2021-03-18 12:23:18 +01:00
parent c1b8394e1b
commit 6c142f41d3
Signed by: daan
GPG key ID: FCE070E1E4956606
2 changed files with 4 additions and 2 deletions

View file

@ -13,7 +13,7 @@
<ItemGroup>
<PackageReference Include="Anemonis.RandomOrg" Version="1.14.0" />
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="Discord.Net" Version="2.2.0" />
<PackageReference Include="Discord.Net" Version="2.3.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.0-rc.1.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="5.0.0-rc.1.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="5.0.0-rc.1.*" />

View file

@ -13,6 +13,7 @@ namespace Geekbot.Core.Polyfills
public IActivity Activity { get; }
public UserStatus Status { get; set; }
public IImmutableSet<ClientType> ActiveClients { get; }
public IImmutableList<IActivity> Activities { get; }
public string AvatarId { get; set; }
public string AvatarUrl { get; set; }
public string Discriminator { get; set; }
@ -20,6 +21,7 @@ namespace Geekbot.Core.Polyfills
public bool IsBot { get; set; }
public bool IsWebhook { get; set; }
public string Username { get; set; }
public UserProperties? PublicFlags { get; }
public string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)
{