From 679796a910a2b0de2db531a6aadaf998c15b0f36 Mon Sep 17 00:00:00 2001
From: Toastie <toastie@toastiet0ast.com>
Date: Tue, 4 Feb 2025 21:51:52 +1300
Subject: [PATCH] Catch NRE when user can be found but a dm channel cannot be
 created Regardless of DM permission

---
 Commands/CloseCommand.cs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Commands/CloseCommand.cs b/Commands/CloseCommand.cs
index 3071a5f..2ce8747 100644
--- a/Commands/CloseCommand.cs
+++ b/Commands/CloseCommand.cs
@@ -202,6 +202,7 @@ public class CloseCommand
                 }
                 catch (NotFoundException) { /* ignore */ }
                 catch (UnauthorizedException) { /* ignore */ }
+                catch (NullReferenceException) { /* ignore */ }
             }
 
             Database.ArchiveTicket(ticket);