Upgrade discord.net
This commit is contained in:
parent
c1b8394e1b
commit
6c142f41d3
2 changed files with 4 additions and 2 deletions
|
@ -13,7 +13,7 @@
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Anemonis.RandomOrg" Version="1.14.0" />
|
<PackageReference Include="Anemonis.RandomOrg" Version="1.14.0" />
|
||||||
<PackageReference Include="CommandLineParser" Version="2.8.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" Version="5.0.0-rc.1.*" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" 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.*" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="5.0.0-rc.1.*" />
|
||||||
|
|
|
@ -13,6 +13,7 @@ namespace Geekbot.Core.Polyfills
|
||||||
public IActivity Activity { get; }
|
public IActivity Activity { get; }
|
||||||
public UserStatus Status { get; set; }
|
public UserStatus Status { get; set; }
|
||||||
public IImmutableSet<ClientType> ActiveClients { get; }
|
public IImmutableSet<ClientType> ActiveClients { get; }
|
||||||
|
public IImmutableList<IActivity> Activities { get; }
|
||||||
public string AvatarId { get; set; }
|
public string AvatarId { get; set; }
|
||||||
public string AvatarUrl { get; set; }
|
public string AvatarUrl { get; set; }
|
||||||
public string Discriminator { get; set; }
|
public string Discriminator { get; set; }
|
||||||
|
@ -20,7 +21,8 @@ namespace Geekbot.Core.Polyfills
|
||||||
public bool IsBot { get; set; }
|
public bool IsBot { get; set; }
|
||||||
public bool IsWebhook { get; set; }
|
public bool IsWebhook { get; set; }
|
||||||
public string Username { get; set; }
|
public string Username { get; set; }
|
||||||
|
public UserProperties? PublicFlags { get; }
|
||||||
|
|
||||||
public string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)
|
public string GetAvatarUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)
|
||||||
{
|
{
|
||||||
return AvatarUrl ?? "https://discordapp.com/assets/6debd47ed13483642cf09e832ed0bc1b.png";
|
return AvatarUrl ?? "https://discordapp.com/assets/6debd47ed13483642cf09e832ed0bc1b.png";
|
||||||
|
|
Loading…
Reference in a new issue