 
     self.id = json["id"] as! String
 
-    if let _ = json["webhook_id"] as? NSNull {
+    if json["webhook_id"] == nil {
       for (_, guild) in sword.guilds {
         if guild.channels[self.channelId] != nil {
           self.member = guild.members[self.author!.id]

      self.mentionedRoles.append(Role(mentionedRole))
    }

    self.reactions = json["reactions"] as! [[String: Any]]
    self.pinned = json["pinned"] as! Bool
    self.timestamp = (json["timestamp"] as! String).date
    self.tts = json["tts"] as! Bool

      self.attachments.append(Attachment(attachment))
    }

    if json["webhook_id"] == nil {
      self.author = User(sword, json["author"] as! [String: Any])
    }else {
      self.author = nil
