Switched runtime to .Net 4.5
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Discord</RootNamespace>
|
||||
<AssemblyName>Discord.Net</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
@@ -21,6 +21,7 @@
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
@@ -29,6 +30,7 @@
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
|
||||
@@ -453,8 +453,15 @@ namespace Discord
|
||||
.FirstOrDefault();
|
||||
}
|
||||
|
||||
public Message GetMessage(string id) => _messages[id];
|
||||
public Role GetRole(string id) => _roles[id];
|
||||
public Role FindRole(string name)
|
||||
{
|
||||
return _roles
|
||||
.Where(x => string.Equals(x.Name, name, StringComparison.InvariantCultureIgnoreCase))
|
||||
.FirstOrDefault();
|
||||
}
|
||||
|
||||
public Message GetMessage(string id) => _messages[id];
|
||||
|
||||
//Auth
|
||||
public async Task Connect(string email, string password)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Discord.API;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
|
||||
namespace Discord
|
||||
@@ -13,7 +14,9 @@ namespace Discord
|
||||
public string AvatarId { get; internal set; }
|
||||
public string AvatarUrl { get { return Endpoints.UserAvatar(Id, AvatarId); } }
|
||||
public string Discriminator { get; internal set; }
|
||||
[JsonIgnore]
|
||||
public string Email { get; internal set; }
|
||||
[JsonIgnore]
|
||||
public bool IsVerified { get; internal set; } = true;
|
||||
public string GameId { get; internal set; }
|
||||
public string Status { get; internal set; }
|
||||
|
||||
Reference in New Issue
Block a user