|  | @ -83,8 +83,6 @@ class Notification { | 
			
		
	
		
		
			
				
					|  |  |             return await Notification.smtp(notification, msg) |  |  |             return await Notification.smtp(notification, msg) | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  |         } else if (notification.type === "discord") { |  |  |         } else if (notification.type === "discord") { | 
			
		
	
		
		
			
				
					|  |  |             let kumaURL = notification.discorduptimekumaUrl || "https://github.com/louislam/uptime-kuma"; |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             let dashboardURL = notification.discorduptimekumaUrl + '/dashboard/' + monitorJSON["id"]; |  |  |  | 
			
		
	
		
		
			
				
					|  |  |             try { |  |  |             try { | 
			
		
	
		
		
			
				
					|  |  |                 // If heartbeatJSON is null, assume we're testing.
 |  |  |                 // If heartbeatJSON is null, assume we're testing.
 | 
			
		
	
		
		
			
				
					|  |  |                 if (heartbeatJSON == null) { |  |  |                 if (heartbeatJSON == null) { | 
			
		
	
	
		
		
			
				
					|  | @ -120,14 +118,6 @@ class Notification { | 
			
		
	
		
		
			
				
					|  |  |                                 name: "Error", |  |  |                                 name: "Error", | 
			
		
	
		
		
			
				
					|  |  |                                 value: heartbeatJSON["msg"], |  |  |                                 value: heartbeatJSON["msg"], | 
			
		
	
		
		
			
				
					|  |  |                             }, |  |  |                             }, | 
			
		
	
		
		
			
				
					|  |  |                             { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                                 name: "Visit Service Dashboard", |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                                 value: "[Visit Dashboard]("+ dashboardURL + ")", |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                             }, |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                             { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                                 name: "Visit Uptime Kuma", |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                                 value: "[Visit]("+ kumaURL +")", |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                             }, |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                         ], |  |  |                         ], | 
			
		
	
		
		
			
				
					|  |  |                     }], |  |  |                     }], | 
			
		
	
		
		
			
				
					|  |  |                 } |  |  |                 } | 
			
		
	
	
		
		
			
				
					|  | @ -158,10 +148,6 @@ class Notification { | 
			
		
	
		
		
			
				
					|  |  |                                 name: "Ping", |  |  |                                 name: "Ping", | 
			
		
	
		
		
			
				
					|  |  |                                 value: heartbeatJSON["ping"] + "ms", |  |  |                                 value: heartbeatJSON["ping"] + "ms", | 
			
		
	
		
		
			
				
					|  |  |                             }, |  |  |                             }, | 
			
		
	
		
		
			
				
					|  |  |                             { |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                                 name: "Visit Uptime Kuma", |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                                 value: "[Visit]("+ kumaURL +")", |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                             }, |  |  |  | 
			
		
	
		
		
			
				
					|  |  |                         ], |  |  |                         ], | 
			
		
	
		
		
			
				
					|  |  |                     }], |  |  |                     }], | 
			
		
	
		
		
			
				
					|  |  |                 } |  |  |                 } | 
			
		
	
	
		
		
			
				
					|  | 
 |