Implement ISnowflakeEntity for Audit Log entries
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Linq;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
using Model = Discord.API.AuditLog;
|
||||
using EntryModel = Discord.API.AuditLogEntry;
|
||||
@@ -26,6 +27,8 @@ namespace Discord.Rest
|
||||
return new RestAuditLogEntry(discord, fullLog, model, user);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id);
|
||||
/// <inheritdoc/>
|
||||
public ActionType Action { get; }
|
||||
/// <inheritdoc/>
|
||||
|
||||
Reference in New Issue
Block a user