From b609d3455e9248ef1a9736b7a23bb82fbaeaf40b Mon Sep 17 00:00:00 2001 From: Lala Sabathil Date: Tue, 17 Oct 2023 15:44:26 +0200 Subject: [PATCH] Update DiscordAuditLogEntry.cs --- DisCatSharp/Entities/Guild/AuditLog/DiscordAuditLogEntry.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DisCatSharp/Entities/Guild/AuditLog/DiscordAuditLogEntry.cs b/DisCatSharp/Entities/Guild/AuditLog/DiscordAuditLogEntry.cs index 90bff6110..1d38133be 100644 --- a/DisCatSharp/Entities/Guild/AuditLog/DiscordAuditLogEntry.cs +++ b/DisCatSharp/Entities/Guild/AuditLog/DiscordAuditLogEntry.cs @@ -70,7 +70,7 @@ public override string ToString() /// The type to convert to. Use the type based on the . /// The easy to-use audit log entry. /// Thrown when the is not compatible with the targets type. - public T? As() + public T As() where T : DiscordAuditLogEntry, new() { if (this is T t)