Readded IMessageChannel.TriggerTypingAsync

This commit is contained in:
RogueException
2016-10-06 04:24:24 -03:00
parent 98475302af
commit 472412e232
11 changed files with 28 additions and 9 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}