Readded IMessageChannel.TriggerTypingAsync
This commit is contained in:
@@ -30,7 +30,9 @@ namespace Discord
|
||||
/// <summary> Bulk deletes multiple messages. </summary>
|
||||
Task DeleteMessagesAsync(IEnumerable<IMessage> messages, RequestOptions options = null);
|
||||
|
||||
/// <summary> Broadcasts the "user is typing" message to all users in this channel, lasting 10 seconds.</summary>
|
||||
/// <summary> Broadcasts the "user is typing" message to all users in this channel, lasting 10 seconds. </summary>
|
||||
Task TriggerTypingAsync(RequestOptions options = null);
|
||||
/// <summary> Continuously broadcasts the "user is typing" message to all users in this channel until the returned object is disposed. </summary>
|
||||
IDisposable EnterTypingState(RequestOptions options = null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Discord.Extensions
|
||||
{
|
||||
public static class SnowflakeEntityExtensions
|
||||
{
|
||||
//TODO: C#7 Candidate for Extension Property.
|
||||
//TODO: C#7 Candidate for extension property.
|
||||
public static DateTimeOffset GetCreatedAt(this ISnowflakeEntity entity) => DateTimeUtils.FromSnowflake(entity.Id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user