Renamed BroadcastTypingRequest to SendIsTypingRequest
This commit is contained in:
@@ -245,9 +245,6 @@
|
|||||||
<Compile Include="..\Discord.Net\API\Client\Rest\AddGuildBan.cs">
|
<Compile Include="..\Discord.Net\API\Client\Rest\AddGuildBan.cs">
|
||||||
<Link>API\Client\Rest\AddGuildBan.cs</Link>
|
<Link>API\Client\Rest\AddGuildBan.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="..\Discord.Net\API\Client\Rest\BroadcastTyping.cs">
|
|
||||||
<Link>API\Client\Rest\BroadcastTyping.cs</Link>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="..\Discord.Net\API\Client\Rest\CreateChannel.cs">
|
<Compile Include="..\Discord.Net\API\Client\Rest\CreateChannel.cs">
|
||||||
<Link>API\Client\Rest\CreateChannel.cs</Link>
|
<Link>API\Client\Rest\CreateChannel.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -326,6 +323,9 @@
|
|||||||
<Compile Include="..\Discord.Net\API\Client\Rest\SendFile.cs">
|
<Compile Include="..\Discord.Net\API\Client\Rest\SendFile.cs">
|
||||||
<Link>API\Client\Rest\SendFile.cs</Link>
|
<Link>API\Client\Rest\SendFile.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="..\Discord.Net\API\Client\Rest\SendIsTyping.cs">
|
||||||
|
<Link>API\Client\Rest\SendIsTyping.cs</Link>
|
||||||
|
</Compile>
|
||||||
<Compile Include="..\Discord.Net\API\Client\Rest\SendMessage.cs">
|
<Compile Include="..\Discord.Net\API\Client\Rest\SendMessage.cs">
|
||||||
<Link>API\Client\Rest\SendMessage.cs</Link>
|
<Link>API\Client\Rest\SendMessage.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
namespace Discord.API.Client.Rest
|
namespace Discord.API.Client.Rest
|
||||||
{
|
{
|
||||||
[JsonObject(MemberSerialization.OptIn)]
|
[JsonObject(MemberSerialization.OptIn)]
|
||||||
public sealed class BroadcastTypingRequest : IRestRequest
|
public sealed class SendIsTypingRequest : IRestRequest
|
||||||
{
|
{
|
||||||
string IRestRequest.Method => "POST";
|
string IRestRequest.Method => "POST";
|
||||||
string IRestRequest.Endpoint => $"channels/{ChannelId}/typing";
|
string IRestRequest.Endpoint => $"channels/{ChannelId}/typing";
|
||||||
@@ -12,7 +12,7 @@ namespace Discord.API.Client.Rest
|
|||||||
|
|
||||||
public ulong ChannelId { get; }
|
public ulong ChannelId { get; }
|
||||||
|
|
||||||
public BroadcastTypingRequest(ulong channelId)
|
public SendIsTypingRequest(ulong channelId)
|
||||||
{
|
{
|
||||||
ChannelId = channelId;
|
ChannelId = channelId;
|
||||||
}
|
}
|
||||||
@@ -378,7 +378,7 @@ namespace Discord
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Task SendIsTyping()
|
public Task SendIsTyping()
|
||||||
=> Client.ClientAPI.Send(new BroadcastTypingRequest(Id));
|
=> Client.ClientAPI.Send(new SendIsTypingRequest(Id));
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Permissions
|
#region Permissions
|
||||||
|
|||||||
Reference in New Issue
Block a user